Skip to main content
Question

Extension Attribute for Trend Version issue

  • March 25, 2021
  • 4 replies
  • 40 views

jimmyb
Forum|alt.badge.img+3

I tweaked out an EA to show the Trend Apex One AV version, however, out of 80+ machines it only returns the version value for one. What am I missing here?

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


if [ -d /Library/Application Support/TrendMicro/TmccMac/UIMgmt.app ]; then
    AppVersion=`/Library/Application Support/TrendMicro/TmccMac/UIMgmt.app/Contents/Info.plist CFBundleShortVersionString`
    echo "<result>$AppVersion</result>"
else
    echo "<result>Not installed</result>"
fi

exit 0

4 replies

Forum|alt.badge.img+11
  • Valued Contributor
  • March 25, 2021

following... what other trend EAs can we use?


jimmyb
Forum|alt.badge.img+3
  • Author
  • New Contributor
  • March 25, 2021

There are quite a few if you look under Resources > JAMFPro addons > Extension Attributes from the menu at the top of the JAMF Nation page. I modified a MS Word EA for this but it isn't working properly. You can build your own if you know a bit of scripting. I'm no pro by any means but I can make my way around most scripts. EDIT: I missed "Trend" in your post. There are none in the EA pages. I'll post the latest update EA I found momentarily.


jimmyb
Forum|alt.badge.img+3
  • Author
  • New Contributor
  • March 26, 2021

Trend EA for latest update date:

!/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>"

Forum|alt.badge.img+11
  • Valued Contributor
  • November 9, 2021

Is there an update to this?  All of mine return "not found".  I have asked Trend numerous times for EA tips like last update or last scan or version and they always reply trend can't do that.