Display SEP 12 Version in Inventory

llitz123
Contributor III

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.

1 ACCEPTED SOLUTION

dpertschi
Valued Contributor

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

View solution in original post

3 REPLIES 3

dpertschi
Valued Contributor

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

llitz123
Contributor III

Excellent. Now I know where to look.
Thanks.

llitz123
Contributor III

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.