1- Goto Computer Management in your Casper Server
2- Select extension attribute
3- Click plus + to create a new attribute
4 - Data type chose integer
5- Inventory type choose extension attribute
6 -input type select script
7 - Paste in the script below and save
#!/bin/sh
#This script has been verified to work on McAfee Security for Mac Anti-malware (v1.0).
#Check to see if McAfee Security is installed
if [ -f "/Library/Preferences/com.mcafee.ssm.antimalware.plist" ]; then
result=`/usr/bin/defaults read /Library/Preferences/com.mcafee.ssm.antimalware Update_DATVersion`
echo "<result>$result</result>"
else
echo "<result>Not installed</result>"
fi
No comments:
Post a Comment