Skip to main content
Question

McAfee ePO agent

  • May 30, 2018
  • 8 replies
  • 15 views

Forum|alt.badge.img+5

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

Forum|alt.badge.img+4
  • New Contributor
  • 9 replies
  • May 30, 2018

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


Forum|alt.badge.img+15
  • Valued Contributor
  • 382 replies
  • May 30, 2018

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.


Forum|alt.badge.img+10
  • Contributor
  • 126 replies
  • May 30, 2018

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
Forum|alt.badge.img+12
  • Valued Contributor
  • 131 replies
  • May 30, 2018

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.


Forum|alt.badge.img+15
  • Contributor
  • 589 replies
  • May 30, 2018

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

Forum|alt.badge.img+5
  • Author
  • Contributor
  • 20 replies
  • May 30, 2018

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


Forum|alt.badge.img+5
  • Author
  • Contributor
  • 20 replies
  • May 30, 2018

@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?


Forum|alt.badge.img+5

@jconte Thank you for that script! Works great!