I am unable to run any CLWorkstation commands
java -Xmx128M -Duser=<user> -Dhost=localhost -Dport=5001 -jar CLWorkstation.jar get historical data from agents matching (.*) and metrics matching (Agent Stats:.*) for past 1 minute with frequency of 60 seconds > agent_versions.csv
java -Xmx128M -Duser=<user> -Dhost=localhost -Dport=5001 -jar CLWorkstation.jar list management modules matching (.*)
Output:
[ERROR] [CLW.MessageServiceClient] Exception: java.lang.NullPointerException calling method: com.wily.isengard.messageprimitives.service.MessageServiceCallMessage: {com.wily.introscope.spec.server.beans.clw.ICommandLineWorkstationService.executeAsyncCommand, v1, [null, [Ljava.lang.String;@3391b660, com.wily.introscope.spec.server.beans.clw.CommandNotification@25ede21d, {}], source: Workstation_22.client_main:263, remoteHost: {Unknown}}
com.wily.isengard.messageprimitives.ConnectionException
at com.wily.isengard.messageprimitives.service.MessageServiceClient.sendRequest(MessageServiceClient.java:197)
at com.wily.isengard.messageprimitives.service.MessageServiceClient.invoke(MessageServiceClient.java:359)
at com.sun.proxy.$Proxy3.executeAsyncCommand(Unknown Source)
at com.wily.introscope.clws.CommandLineWorkstation.execute(CommandLineWorkstation.java:478)
at com.wily.introscope.clws.CommandLineWorkstation.run(CommandLineWorkstation.java:405)
at com.wily.introscope.clws.CommandLineWorkstation.main(CommandLineWorkstation.java:91)
Caused by: java.lang.NullPointerException
[ERROR] [CLW.MessageServiceClient] Exception: java.lang.NullPointerException calling method: com.wily.isengard.messageprimitives.service.MessageServiceCallMessage: {com.wily.introscope.spec.server.beans.session.ISessionManager.getUser, v1, [null], source: Workstation_22.client_main:259, remoteHost: {Unknown}}
What could be the cause? How to resolve it?
APM 10.7.0
-Dpassword argument is missing
As per documentation: https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/application-performance-management/10-7/using/apm-command-line-workstation.html
Make sure to pass key important parameters
-Duser=<user name>
-Dpassword=<password>
-Dhost=<Enterprise Manager host / ip address>
-Dport=<Enterprise Manager port number>