Skip to main content
Question

Trend Micro Security Extended Attributes

  • May 31, 2013
  • 7 replies
  • 28 views

Forum|alt.badge.img+9

Been working on some of my own Extended Attributes, and thought I might share for anyone else who needs it/feedback.

It's a bit all over the place, but it works.

#!/bin/sh
# Returns the "Product Version" of the installed client, if found

if [ -f /Library/Application Support/TrendMicro/TmccMac/UIMgmt.app/Contents/Info.plist ]; then
    VERSION=`defaults read /Library/Application Support/TrendMicro/TmccMac/UIMgmt.app/Contents/Info CFBundleShortVersionString`
else
    VERSION="Not Installed"
fi

echo "<result>$VERSION</result>"
#!/bin/sh
# Returns the "Parent Server" of the installed client, if found
# We had multiple servers at one point, so this was useful

if [ -f /Library/Application Support/TrendMicro/common/conf/ServerInfo.plist ]; then
    SERVER=`defaults read /Library/Application Support/TrendMicro/common/conf/ServerInfo DisplayName`
else
    SERVER="Not Found"
fi

echo "<result>$SERVER</result>"
#!/bin/sh

if [ -f /Library/Application Support/TrendMicro/common/conf/tmccmac.conf.plist ]; then
    DATE=`/usr/libexec/PlistBuddy -c "print :ACTIVEUPDATE:LastUpdateDatePatternV" /Library/Application Support/TrendMicro/common/conf/tmccmac.conf.plist`
    DATE=`date -r $DATE | awk '{ print $3,$2,$4}'`
else
    DATE="Not Found"
fi

echo "<result>$DATE</result>"

7 replies

RobertHammen
Forum|alt.badge.img+29
  • Esteemed Contributor
  • May 31, 2013

Thanks for these! I have a couple of clients using Trend, so just emailed them links to this thread.


ImAMacGuy
Forum|alt.badge.img+23
  • Esteemed Contributor
  • May 31, 2013

Thank you!


Forum|alt.badge.img+12
  • Employee
  • May 31, 2013

Awesome! Thanks for sharing


Forum|alt.badge.img+9
  • Author
  • Valued Contributor
  • June 3, 2013

It just occurred to me that the 3rd one I made is wrong, and it will always return the current date regardless of the pattern version. Turns out you can't pipe through the "date" command like that. So I've fixed it up a bit. Should work now.


Forum|alt.badge.img+5
  • Contributor
  • September 18, 2015

Hi all,

Seems that there is no tmccmac.conf.plist file when installing version 2.0. There is a TmUpdate.conf.plist, but I believe that's only covering the service modules, not virus definitions. Any ideas?


Forum|alt.badge.img+26
  • Honored Contributor
  • March 29, 2016

I am interested in an EA for the version of Trend Micro Security, which is available as a "plug-in" for OfficeScan. The version information is located in many places on the Mac. Is one a better representation of the actual version than the other?

This the version of the GUI application "Trend Micro Security.app" located in

/Applications/MainUI.app/Contents/Info.plist

But there's also version information here:

/Library/Application Support/TrendMicro/common/var/package_ver.plist
/Library/Application Support/TrendMicro/TmccMac/UIMgmt.app/Contents/Info.plist

I currently have an EA created for each, but haven't witnessed any differences as e've gone through upgrades. Currently the clients are reporting 2.0.3061


Forum|alt.badge.img+11
  • Valued Contributor
  • August 13, 2021

the file paths have changed yet again.  /Library/App Support/Trend does not contain those files.