a week ago
Hi there, is there a way to get an extension attribute in Jamf to report a target file's last modified date?
Solved! Go to Solution.
a week ago
You need to wrap the output for all extension attributes with <result> & </result>
So your last command should be: echo "<result>$datemodified</result>"
a week ago
Use stat -x
eg: stat -x /Applications/Box.app | grep "Modify" | awk '{print $2,$3,$4,$5,$6}'
a week ago
Appears to be working when ran from terminal or from script/policy in Jamf but as an extension attribute it doesn't collect any data.
a week ago
You need to wrap the output for all extension attributes with <result> & </result>
So your last command should be: echo "<result>$datemodified</result>"
a week ago
Thank, that seemed to be the icing on the cake