Posted on 07-21-2017 10:19 AM
Does anyone have an EA for FireEye to detect which version of the agent is installed on macOS?
Posted on 07-21-2017 03:24 PM
This is what I use :
#!/bin/sh
#
############################################################################
#
# Extension Attribute checks to display FireEye HX installed version number.
#
#
############################################################################
FireEyeVersion=`/usr/bin/defaults read /Library/FireEye/xagt/xagt.app/Contents/Info CFBundleVersion`
echo "<result> $FireEyeVersion </result>"
exit 0
Posted on 09-20-2017 11:53 AM
I combined @Mhomar info and the logic that Jamf uses for their Patch Reporting EAs to come up with this:
#!/bin/bash
##############################################################################
# A script to collect the version of FireEye currently installed. #
# If FireEye is not installed then "Not Installed" is the result#
##############################################################################
RESULT="Not Installed"
if [ -f "/Library/FireEye/xagt/xagt.app/Contents/Info.plist" ] ; then
RESULT=$( defaults read /Library/FireEye/xagt/xagt.app/Contents/Info CFBundleVersion )
fi
echo "<result>$RESULT</result>"
Posted on 06-25-2019 03:32 PM
This is exactly what I'm looking for, thank you! Took a while to populate the EA data once implemented but it is slowly but surely capturing the version information.
Posted on 12-04-2019 03:06 AM
Thank you, works like a charm!