Posted on 06-20-2010 06:10 AM
As per subject, save the below & you’ll get either the version of the BigFix Client installed.. Or you’ll get a message of Not Installed.
This is Mac only for now, I’ll have an attempt at the VBScript when I can... Unless someone else wants to finish that bit :)
#!/bin/sh
#This script has been verified to work on BESAgent 7.2.6.4
#Check to see if BESAgent is installed
if [ -d "/Library/BESAgent/BESAgent.app" ]; then
result="$(defaults read /Library/BESAgent/BESAgent.app/Contents/Version CFBundleVersion)"
echo "<result>$result</result>"
else
echo "<result>Not installed</result>"
fi
Posted on 05-23-2024 07:47 AM
Updated this Extension Attribute for Big Fix:
#!/bin/sh
result=`defaults read /Library/BESAgent/BESAgent.app/Contents/version CFBundleVersion`
if [ $result == "" ]; then
echo "<result>Not Installed</result>"
else
echo "<result>$result</result>"
fi