Posted on 09-17-2013 11:06 AM
Has anybody figured out how to query the definition file's version and display it via an extension attribute?
Posted on 09-17-2013 12:13 PM
I'm using this one on SEP 11.
https://jamfnation.jamfsoftware.com/viewProductFile.html?id=29&fid=145
Posted on 10-22-2015 12:35 PM
I'd just finished updating this for the 3rd time a few days ago and am posting it for the 3rd party EA for SEP. It's ugly, but it works for us. We're likely moving to McAfee soon, so I'll get to start all over again.
EDIT: Noticed an issue with some of our machines running SEPv12 and the number of older def folders kept. This should now just query the 'engine.mfst' file for date info and should be absolute.
if [ -f "/Library/Application Support/Norton Solutions Support/Norton AntiVirus/Engine/WHATSNEW.TXT" ]; then
result=/bin/date -j -f "%b %d, %Y" "$(cat "/Library/Application Support/Norton Solutions Support/Norton AntiVirus/Engine/WHATSNEW.TXT" | grep "Symantec Security Response" | awk '{print $5, $6, $7}')" "+%Y-%m-%d 00:00:00"
SEPinstall="Yes"
fi
if [ -f "/Library/Application Support/Symantec/AntiVirus/Engine/WHATSNEW.TXT" ]; then
result=/bin/date -j -f "%b %d, %Y" "$(cat "/Library/Application Support/Symantec/AntiVirus/Engine/WHATSNEW.TXT" | grep "Symantec Security Response" | awk '{print $5, $6, $7}')" "+%Y-%m-%d 00:00:00"
SEPinstall="Yes"
fi
if [ -f "/Library/Application Support/Symantec/AntiVirus/engine.mfst" ]; then
result=/bin/date -j -f "%Y%m%d" $(cat "/Library/Application Support/Symantec/AntiVirus/engine.mfst" | cut -c 2-12) "+%Y-%m-%d 00:00:00"
SEPinstall="Yes"
fi
if [ $SEPinstall != "Yes" ]; then result="Not Installed" fi
echo "<result>$result</result>"
exit 0