Has anyone gotten McAfee Agent (epolicy) to deploy on a Mac OSX. I've tried repackaging it in composer. Running the sh script from a kscript, running the shell script as an online script but I can't seem to get it to work.





0 Comments   [ + ] Show Comments


Please log in to comment



I think it was either because of the types of script that needed to be run or I think I found that when you combined the scripts it didn't work because the chmod couldn't find the epolicy folder.  There was something wierd, but I can't remember what exactly it was.

Answered 03/05/2013 by: ms01ak
Tenth Degree Black Belt

Please log in to comment

I've figured out how to get McAfee Agent working on a Mac OSX and thought I'd share it.


There's two scripts:


Script 1:

1) Create a script, add the dependency file which contains a zipped version of mcafee agent (install.sh)

     -The install.sh contains zip data itself, so I wanted to avoid corrupting the file and felt it was best to zip it.

2) The script should unzip the dependecy file ($(KACE_DEPENDENCY_DIR)/install.zip to stanard location such as /library or /application


Script 2:


1) Create a online shell script it should contain:


chmod +x /directory of the unzipped/install.sh
exec directory of the unzipped file/install.sh -i


Now you must run script 1) before script 2) but when script 2 runs it will either install correctly or send back the mcafee error codes. If you receive error code 126 it means that the file could not be found and that the first script wasn't run.







Answered 04/24/2012 by: ms01ak
Tenth Degree Black Belt

  • Thanks for sharing. I tried it and it worked, though I'm wondering why it has to be split into two separate scripts/steps and why doesn't it work to call the shell script directly from the dependency dir? Just curious if you, or anyone, had any ideas about that. Again, thanks for sharing - it works!
Please log in to comment
Answer this question or Comment on this question for clarity