forked from jamf/Jamf-Nation-Extension-Attributes
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Computrace - Last Call Time & Date.xml
21 lines (19 loc) · 1 KB
/
Computrace - Last Call Time & Date.xml
1
<?xml version="1.0" encoding="UTF-8"?><extensionAttribute> <displayName>Computrace - Last Call Time & Date</displayName> <displayInCategory>Security</displayInCategory> <dataType>string</dataType> <description>This will report on the last call time and date from client to Absolute, based on the modification time and date to the /Library/Preferences/com.absolute.settings file.</description> <scriptContentsMac>#!/bin/sh#This script has been tested to work on OS X 10.5.x-10.7.2.#Check to see if Computrace call in Date and Time.#Date and time reported reflect the Computrace servers, and might be different then your local time zone..#Sean Gallagher - [email protected] [ -f "/Library/Preferences/com.absolute.settings" ]; then result=`/usr/bin/mdls -name kMDItemFSContentChangeDate -raw /Library/Preferences/com.absolute.settings | awk '{print $1, $2}'` echo "<result>$result</result>"else echo "<result>Not installed</result>"fi </scriptContentsMac></extensionAttribute>