Posted on 01-18-2013 07:45 AM
Hello,
I'm unsure how exactly to display the version of Symantec Endpoint Protection 12.x in my Inventory.
I'm guessing I need extension attributes to accomplish this and I have a few that I hacked together or was given, yet I'm unsure how to exactly form the necessary script for SEP.
Thanks for any assistance.
Solved! Go to Solution.
Posted on 01-18-2013 09:04 AM
I don't use SEP, but if it's a normal application bundle, look inside for an info.plist and then read out the CFBundleShortVersionString. This is what I use to report my McAfee Security.app
#!/bin/sh
#
############################################################################
# Extension Attribute to display Security for Mac application version.
#
############################################################################
McAfeeSecurityVersion=`/usr/bin/defaults read /Applications/McAfee Security.app/Contents/Info CFBundleShortVersionString `
echo "<result> v$McAfeeSecurityVersion </result>"
exit 0
Posted on 01-18-2013 09:04 AM
I don't use SEP, but if it's a normal application bundle, look inside for an info.plist and then read out the CFBundleShortVersionString. This is what I use to report my McAfee Security.app
#!/bin/sh
#
############################################################################
# Extension Attribute to display Security for Mac application version.
#
############################################################################
McAfeeSecurityVersion=`/usr/bin/defaults read /Applications/McAfee Security.app/Contents/Info CFBundleShortVersionString `
echo "<result> v$McAfeeSecurityVersion </result>"
exit 0
Posted on 01-18-2013 12:56 PM
Excellent. Now I know where to look.
Thanks.
Posted on 01-18-2013 01:13 PM
This is what I came up with.
#!/bin/sh
#
############################################################################
# Extension Attribute to display Security for Mac application version.
#
############################################################################
SEPVersion=`/usr/bin/defaults read /Applications/Symantec Solutions/Symantec Endpoint Protection.app/Contents/Info CFBundleShortVersionString `
echo "<result> v$SEPVersion </result>"
exit 0
Added to Inventory search and it's working fine.
Thanks again.