Posted on 11-16-2016 08:59 AM
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.
#!/bin/bash
#determines whether or not SGN is installed on the machine
#if it's installed find the version number
if [[ -e /usr/bin/sgdeadmin ]] || [[ -e /usr/local/bin/sgdeadmin ]];
then
echo "<result>`sgdeadmin --version | grep Version | awk '{print $NF}'`</result>"
else
echo "<result>SafeGuard Not Installed</result>"
fi
Posted on 11-16-2016 09:46 AM
Hi @alliehodge I'm not sure why a new thread showed up for this topic, but see my post on your other thread here, so to see if it helps resolve the issue for you.