Need help to execute CLW Commands - get historical events

book

Article ID: 207827

calendar_today

Updated On:

Products

CA Application Performance Management (APM / Wily / Introscope)

Issue/Introduction

Please share some samples for the below CLW commands.

/opt/caapm/apm-install/jre/bin/java -Xmx128M -Duser=admin -Dpassword=password -Dhost=serverA -Dport=5001 -jar ../lib/CLWorkstation.jar get historical events matching '(*EPAgent%1*)' for past 60 minutes

Environment

Release : 10.7.0

Component : Integration with APM

Resolution

"get historical events" retrieves a full event XML output file from the Transactions Events Database.  That means there has to be actual transaction traces in the Transactions Trace Database which is separate from regular metrics.

To find historical transaction traces, in Workstation go to Workstation -> Query Historical Events.  See the screenshot below.

I used my Tomcat Agent as a test.  

You can obtain the information based on the below.

Using Hostname that Agent resides on:

C:\Introscope10.7.0.197\lib>java -Xmx128M -jar CLWorkstation.jar get historical events matching "ZTesting"
Writing Transaction Trace Data to C:\Introscope10.7.0.197\lib\TransactionTraceData-20210127112547.xml

Using Agent Process Name:

C:\Introscope10.7.0.197\lib>java -Xmx128M -jar CLWorkstation.jar get historical events matching "Tomcat"
Writing Transaction Trace Data to C:\Introscope10.7.0.197\lib\TransactionTraceData-20210127112540.xml

Using Agent Name:

C:\Introscope10.7.0.197\lib>java -Xmx128M -jar CLWorkstation.jar get historical events matching "Tomcat Agent"
Writing Transaction Trace Data to C:\Introscope10.7.0.197\lib\TransactionTraceData-20210127112513.xml