Skip to main content

Having trouble figuring out how to deploy cisco AMP via Jamf. I know there are a few threads out there but I cant even find the .XML file everyone keeps mentioning. Not sure if things changed since then but I need help.

I repack using composer, place the pkg in tmp and use a pre and post install script: 

preinstall:

#!/bin/sh ## preinstall BASE="/private/tmp/camp" if [ -d "$BASE" ]; then ## Cleanup an old installation directory if found rm -Rfd "$BASE" fi

postinstall:

#!/bin/sh ## postinstall BASE="/private/tmp/camp" PKG="${BASE}/ciscoampmac_connector.pkg" XML="${BASE}/.policy.xml" if [[ -e "$PKG" && -e "$XML" ]]; then /usr/sbin/installer -pkg "$PKG" -tgt / RES=$? else echo "Package or XML was missing. Aborting installation…" exit 1 fi if [ $RES == 0 ]; then ## Cleanup folder payload rm -Rfd "$BASE" exit 0 else echo "Installation may have failed with exit code $RES" exit $RES fi

 I may have borrowed / adapted from someone other code many moons ago.. but.. it works.. 

Policy XML is hidden in finder with dot prefix.. open terminal and ls -la the dmg 


I repack using composer, place the pkg in tmp and use a pre and post install script: 

preinstall:

#!/bin/sh ## preinstall BASE="/private/tmp/camp" if [ -d "$BASE" ]; then ## Cleanup an old installation directory if found rm -Rfd "$BASE" fi

postinstall:

#!/bin/sh ## postinstall BASE="/private/tmp/camp" PKG="${BASE}/ciscoampmac_connector.pkg" XML="${BASE}/.policy.xml" if [[ -e "$PKG" && -e "$XML" ]]; then /usr/sbin/installer -pkg "$PKG" -tgt / RES=$? else echo "Package or XML was missing. Aborting installation…" exit 1 fi if [ $RES == 0 ]; then ## Cleanup folder payload rm -Rfd "$BASE" exit 0 else echo "Installation may have failed with exit code $RES" exit $RES fi

 I may have borrowed / adapted from someone other code many moons ago.. but.. it works.. 

Policy XML is hidden in finder with dot prefix.. open terminal and ls -la the dmg 


Okay, I will try this. Thank you.