Skip to main content
Question

Extension Attribute Not Running Automatically

  • November 16, 2016
  • 1 reply
  • 0 views

Forum|alt.badge.img+3

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

1 reply

Forum|alt.badge.img+16
  • Legendary Contributor
  • 7880 replies
  • November 16, 2016

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.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings