How can I report total number of metrics per agent

Document ID : KB000122187
Last Modified Date : 30/11/2018
Show Technical Document Details
The number of metrics for an agent used to be on the investigator tree. The value is now available on a tab when you click the agent. I want to extract this metric in a script, for example using the CLW. Is this metric available via this route
The metric count for an agent is still held in a metric that is stored against generic virtual agents

Custom Metric Host (virtual)
- Custom Metric Process (virtual)
- Custom Metric Agent (virtual)(collector_host@port)(SuperDomain)
- Agents
- Host
- Process
- AgentName

and then looks at the value for

- Metric Count

You can extract this using CLW as in the following example to get the count for all Infrastructure Agents

java -Xmx128M -Duser=admin -Dhost=localhost -Dport=5001 -jar CLWorkstation.jar "get historical data from agents matching \".*Custom Metric Agent.*\" and metrics matching \"Agents\|.*\|Infrastructure.*Metric Count\" for past 1 minutes with frequency of 60 seconds"