McAfee ePO agent

hedenstam
New Contributor III

Hi,

How the hell would you package/deploy the Offline version of the ePO-agent (install.sh - 16 Mb)
Would need to install with -I switch (sh install.sh -i)
Anybody working with McAfee? who has been able to make it work?

8 REPLIES 8

Chris_Tavenner
New Contributor II

install.sh -i switch works fine in my experience.

Taylor_Armstron
Valued Contributor

Same here. We package it up, and deploy the directory to /tmp. Then run the install.sh -I and let it move things where it wants. Fairly painless and silent.

ammonsc
Contributor II

I create a package using Composer to dump the install script into a /private/tmp/prodepo/ folder. Then using the Files and Processes I run the command.

sudo /private/tmp/prodepo/MAC_550447_install.sh -I

jconte
Contributor II

We package it up and deploy to a staging folder, then execute with the following script:

#!/bin/bash

# This will uninstall any previously installed McAfee agents

if [ -e /Library/McAfee/cma/uninstall.sh ]
    then
        /Library/McAfee/cma/uninstall.sh
fi

if [ -e /Library/McAfee/cma/scripts/uninstall.sh ]
    then
        /Library/McAfee/cma/scripts/uninstall.sh
fi

# This will uninstall any previously installed McAfee agents
/usr/local/mcafee/uninstall EPM

# This will install the upgraded Virus Protection and updated McAfee Agent
/Library/Staging/Packages/installepo05182018.sh -i
/usr/sbin/installer -package /Library/Staging/Packages/McAfee-Threat-Prevention-for-Mac-10.2.3-ePO-client-package-RTW-6519.pkg -target /
/usr/sbin/installer -package /Library/Staging/Packages/McAfee-Threat-Prevention-for-Mac-10.2.3-283-ePO-client-package-HF1226723.pkg -target /

Been doing this 5+ years now works like a charm for us.

thoule
Valued Contributor II

Note that if Mcafee is already installed, you should use the -u flag (update) instead of (-i).

if [ ! -e /Library/McAfee/cma/bin/cmdagent ]; then
   /tmp/mcafeeInstall/install.sh -i
else
    /tmp/mcafeeInstall/install.sh -u
fi

hedenstam
New Contributor III

Thanks all - that worked fine. Deployed to tmp and then run the script with -I
Beautiful

hedenstam
New Contributor III

@thoule Do you mean the product or agent.
I do have have McAfee ENS 10.2.3 installed before.
And it seems that the installation with -I is working fine, but do you recommend to install it with -u?

achristoforatos
Contributor II

@jconte Thank you for that script! Works great!