Hello everyone,
I am trying to implement an extension attribute to pull the version of SafeGuard. Below is my script:
The extension attribute will populate the correct information if I'm physically on the machine running "sudo jamf recon". I enrolled a new machine and it did not pull this extension attribute until I ran "sudo jamf recon"
Also worth mentioning, we do not have SSH open, so Casper Remote's inventory functionality isn't feasible in our environment.
1#!/bin/bash2#determines whether or not SGN is installed on the machine3#if it's installed find the version number45if [[ -e /usr/bin/sgdeadmin ]] || [[ -e /usr/local/bin/sgdeadmin ]]; 6then7 echo "<result>`sgdeadmin --version | grep Version | awk '{print $NF}'`</result>"8else9 echo "<result>SafeGuard Not Installed</result>"10fi