Posted on 12-07-2018 04:48 AM
We are beginning to evaluate Cisco AMP for our Antivirus needs.
In connection with that I need to deploy the app via Jamf.
In the newest release, Cisco has made AMP a notarised app, and changed the way they distribute it from a .pkg to a .dmg.
They state that I need to do this to install the .dmg:
• Push amp_mac_connector.dmg to your endpoints
• Mount the .dmg file:
$ hdiutil attach ampmac_connector.dmg
• Execute the Apple notarized Mac Connector package file:
$ sudo installer -pkg /Volumes/ampmac_connector/ciscoampmac_connector.pkg -target /
• Un-mount the .dmg file:
$ hdiutil detach /Volumes/ampmac_connector
So, my question is:
Do I need to do the above or can I just extract the .pkg from the .dmg and deploy that like normal, or will that somehow not work because it is notarised?
Thanks for any insights anyone might have on this, as I am not entirely certain about the new notarised concept.
Regards
Jesper
Posted on 12-10-2018 02:51 PM
I wasn't able to successfully deploy v.1.9.0.x without actually following the directions
#!/bin/sh
#####
#Mount the .dmg file
#####
hdiutil attach /private/tmp/ampmac_connector.dmg
######
#Execute the Apple notarized Mac Connector package file
######
/usr/sbin/installer -pkg /Volumes/ampmac_connector/ciscoampmac_connector.pkg -target /
#####
#Un-mount the .dmg file
######
hdiutil detach /Volumes/ampmac_connector
exit 0 ## Success
Everything should work perfectly with that workflow
Posted on 12-11-2018 12:05 AM
Thanks a lot @Dr_Jones .
Ill utilise that to deploy it.
Posted on 03-20-2019 10:37 AM
@Dr_Jones Ok slightly confused on your instructions.
I created your script in Jamf, but how do I make an installer?
Should I be uploading the DMG to Jamf and creating a policy?
Currently, I have a policy that installs the cisco amp from a . PKG but it recently just stopped working. It just says "installer failed" in terminal. No real helpful information. That same PKG installs just fine on a computer if I put it on the machine locally. It just won't work from Jamf.
Any information you could provide would be very helpful. Thanks!
Posted on 03-20-2019 11:04 AM
You have a few different options @misenberg
Upload script to Jamf Pro and create a policy that deploys ampmac_connector.dmg to the local machine, I chose the /private/tmp/ folder in my case, the script should be attached to the newly created policy to run after ampmac_connector.dmg has been installed somewhere.
I created an pkg that places ampmac_connector.dmg into /private/tmp/ampmac_connector.dmg and includes the script as a postinstall function so the installer isn't so dependent on Jamf Pro.
Let me know if you still run into issues!
Ronnie
Posted on 03-20-2019 01:20 PM
@Dr_Jones I see what you are saying. How do I tell the policy where to put the DMG (i.e. /private/tmp). I did this for Mojave and I can't remember what we did haha!
Posted on 03-20-2019 02:01 PM
Nevermind, we did it with composer and did a snapshot! Now we are trying to figure out our smart groups and how to scope the policy
Posted on 03-20-2019 03:17 PM
Awesome @misenberg! Composer is definitely the easiest way to go, I'd skip the snapshot part next time and just open up composer to drag and drop the files that have on your local machine/check file permissions in to create your installer, otherwise you might catch unwanted files during the snapshot period.
Sounds like you got it figured out : )