How get a list of all APM agents version in 10.x
search cancel

How get a list of all APM agents version in 10.x

book

Article ID: 278107

calendar_today

Updated On:

Products

CA Application Performance Management (APM / Wily / Introscope) DX Application Performance Management CA Application Performance Management Agent (APM / Wily / Introscope)

Issue/Introduction

Is there any way to get a list of all the Agents and theirs versions?

Environment

APM 10.x

Resolution

1. Copy the below snippet into the IntroscopeEnterpriseManager.properties on the MOM and all collectors. This will write the output from the script AgentVersions.js into the file logs/agentVersions.log (instead of the default IntroscopeEnterpriseManager.log). You can change the path according to you environment.

# copythis snippet into your IntroscopeEnterpriseManager.properties
# on the MOM and every collector
log4j.logger.Manager.JavaScript|AgentVersions.js=INFO,avlogfile1

# change the file path according to your environment
log4j.appender.avlogfile1.File=logs/agentVersions.log
log4j.appender.avlogfile1=com.wily.org.apache.log4j.RollingFileAppender
log4j.appender.avlogfile1.layout=com.wily.org.apache.log4j.PatternLayout
log4j.appender.avlogfile1.layout.ConversionPattern=%d{M/dd/yy hh:mm:ss.SSS a z} [%-3p] %m%n
log4j.appender.avlogfile1.MaxBackupIndex=4
log4j.appender.avlogfile1.MaxFileSize=10MB

2. Copy the attached AgentVersions.js to EM_HOME/scripts/ on the MOM. The MOM will send it to the collectors.

3. Below is an example of the expected output in the agentVersions.log:

8/04/23 09:29:30.013 AM UTC [INFO] AgentVersions.js started with 3 agents
8/04/23 09:29:30.013 AM UTC [INFO] ,SuperDomain|..| tomcat | agent,Release 10.7.0.310 ( 997200 ) 
8/04/23 09:29:30.014 AM UTC [INFO] ,SuperDomain|..| EPAgentProcess| EPAgent, Release 10.7.0.310 ( 997200 ) 
8/04/23 09:29:30.014 AM UTC [INFO] ,SuperDomain|...| Jbos | agent,Release, 10.7.0.310 ( 997200 ) 
8/04/23 09:29:30.014 AM UTC [INFO] AgentVersions.js finished

4. Delete the script on the MOM after the log file contains the line “AgentVersions.js finished”. Otherwise, it will continue running and writing to the log file.

Additional Information

https://knowledge.broadcom.com/external/article/93176/apm-introscope-enterprise-manager-troub.html 

Attachments

AgentVersions.js get_app