How Run a .Sh file in the remote machine

MongoMasood
New Contributor

Hey Guys,

I'm still exploring JAMF.

I want to have McAfee package available in Self Service portal. There are 2 components.

  1. McAfee Agent (For this to install, I will have to run a .Sh file)
  2. McAfee Antivirus ( For this to install, I will have to run a .PKG file)

Both the above needs to be run in the client machine. Do we have any clean way to do that. I'm already looking for all the way as like utilizing Scripts tab under the New policy. Package tab etc etc.

4 REPLIES 4

justin_smith
New Contributor III

The quickest way to do that would be adding the pkg and script to Jamf via casper admin and running them via policy as you suggested.

Another way would be to use Composer, Packager, etc. first to add the script as a post install script in the package itself and deploy that through a policy that you can make available in self service.

Taylor_Armstron
Valued Contributor

FWIW, the process described by Justin is exactly what we do to deploy McAfee:

Create a package (.pkg) that simply puts the McAfee script into a location of your choosing (like /tmp). Then create a policy which distributes the .pkg, and then have the policy issue the command to run it.

I've tried going the post-install route and usually ended up with issues, but just calling the script afterwards works well.

ammonsc
Contributor II

Running 10.13.2 I am having an issue where I can run the install.sh and it says Install Succeeded but the actual agent that should be in /Library/Application Support/McAfee/ is not there. Any ideas?

ammonsc
Contributor II

Turns out McAfee had a hot fix for 10.13 so we are all good now.