BigFix Client version extension attribute

bentoms
Release Candidate Programs Tester

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

1 REPLY 1

la79
New Contributor

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