Hello!
I'm looking for a way to check when a device has moved from one smart group to another. In this case I am using an integer Extension Attribute to track a devices vulnerability compliance. If a device reports that a specific file is >0 it is put in a group that says there is a vulnerability. Once that EA drops to 0, that device is good. Is there a way to check which devices HAD an EA >0 but are now at 0 so I can track that the vulns are being remediated?
Thank you!
Is there a way to track active group changes? When a device moves from one smart group to another?
Best answer by Danolman
We also like to track or log historical data of machines. We would normally write a script to touch a hidden file to that machine and name it appropriately so that the file name describes what we're trying to track. The script would be delivered by a policy scoped to the smart group that contains the >0 machines or whatever smart group you designate.
We create a repository that holds all of these hidden files that we can search later if necessary. Extension Attributes can also be created that search for those hidden files, but we try to limit the use of EA's to reduce overhead.
#!/bin/bash
if [[ -e /Library/CompanyName/.Vulnerability15 ]]; then
echo "<result>V15</result>"
else
echo "<result>NotV15</result>"
fi
Over time, the machine will have a history of work in that file repository!
Hope this helps.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
