Skip to main content
Question

How Run a .Sh file in the remote machine

  • December 6, 2017
  • 4 replies
  • 28 views

Forum|alt.badge.img+1

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

justin_smith
Forum|alt.badge.img+8
  • New Contributor
  • 23 replies
  • December 6, 2017

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.


Forum|alt.badge.img+15
  • Valued Contributor
  • 382 replies
  • December 6, 2017

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.


Forum|alt.badge.img+10
  • Contributor
  • 126 replies
  • December 13, 2017

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?


Forum|alt.badge.img+10
  • Contributor
  • 126 replies
  • December 14, 2017

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