Greetings all,
Until last JAMF Pro update i had no issue with the script below. But as of today, the script returning blank result without error. Any idea ?
APIUsername=""
APIuserpassword=""
JAMFServer=""
EAID1=69
JAMFAPIToken=$(curl -X POST -u $APIUsername:$APIuserpassword -s $JAMFServer/api/v1/auth/token | plutil -extract token raw -)
DeviceSerialNumber=$(system_profiler SPHardwareDataType | awk '/Serial/ {print $4}')
curl -u $APIUsername:$APIuserpassword -H "Accept: application/xml" $JAMFServer/JSSResource/computers/serialnumber/$DeviceSerialNumber/subset/extension_attributes | xpath -e \\
"//*[id=$EAID1]/value/text()" 2>/dev/null