Need help to execute CLW Commands - get historical data

book

Article ID: 207533

calendar_today

Updated On:

Products

CA Application Performance Management (APM / Wily / Introscope)

Issue/Introduction

We are trying to pull transaction trace data using CLW commands. I am running into some issues in executing the below CLW commands. 

[[email protected]]# /opt/caapm/apm-install/jre/bin/java -Xmx128M -Duser=admin -Dpassword=admin -Dhost=serverA -Dport=5001 -jar ../lib/CLWorkstation.jar get historical data from agents matching '(.*)' and metrics matching 'CPU\|Processor\s.*' between "2021-01-27 00:00:00" and "2021-01-27 11:00:00" with frequency of 600 seconds

Domain, Host, Process, AgentName, Resource, MetricName, Record Type, Period, Intended End Timestamp, Actual Start Timestamp, Actual End Timestamp, Value Count, Value Type, Integer Value, Integer Min, Integer Max, Float Value, Float Min, Float Max, String Value, Date Value
[[email protected]]#

I can see data metrics in TeamCenter and WebView but when executing the CLW command, I am seeing an empty response without any data. Can you please help me in to running this command?

Environment

Release : 10.7.0

Component : APM Agents

Resolution

So what looks like is happening is that you need to tweak the data that you are trying to match. I have included a link to the documentation below.

I have tried this out in my environment and got the same result that you did. What I did was tweak the agents matching and metrics matching and I started receiving data.

For testing purposes, please try this command below exactly as you see it here. The reason I put CPU into a wildcard is just to see if you get a printout of any CPU metrics. Once we find that you do indeed get some output, then we can tweak the metrics to match what you are looking for.

java -Xmx128M -jar CLWorkstation.jar get historical data from agents matching (.*) and metrics matching (.*CPU.*) between "2021-01-27 00:00:00" and "2021-01-27 11:00:00" with frequency of 600 seconds


https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/application-performance-management/10-7/using/apm-command-line-workstation/clw-command-reference.html