If I invoke Command Line Workstation in interactive mode in the following manner:
"cat input.txt | java $MY_OPTIONS -jar CLWorkstation.jar > output.txt
The output file contains the correct result for the first command contained in the input file followed by:
"Unable to connect to the Enterprise Manager XYZ"
input.txt:
list agents matching (.*)Agent1(.*)
list agents matching (.*)Agent2(.*)
----------------------------------------------
output.txt:
Host|Process|Agent1
Unable to connect to the Enterprise Manager XYZ:5001
DEBUG mode logging indicates that CLW is trying to connect a new Workstation instance instead of "re-using" the old connection :
Caused by: com.wily.isengard.messageprimitives.MaxMomsExceededException: MOM connection from Node=Workstation_1223, Address=Blah, Type=socket was rejected since the clamp value of 1 has been reached
Hi Richard,
Did you leave off "-i" from your command in your original post?
Sorry my bad I had not used the interactive mode "-i" option before and with that added I now have it working and I am seeing the expected 2 results:
# echo $MY_OPTIONS
-Duser=admin_local -Dhost=willy03-i2438.ca.com -Dport=5001
# cat input.txt
list agents matching .*EPAgent.*
list agents matching .*Tomcat.*
# cat input.txt | java $MY_OPTIONS -jar CLWorkstation.jar -i
willy03-I2438|EPAgentProcess|EPAgent
willy03-I2438|Tomcat|Tomcat Agent
I can only find "Caused by: com.wily.isengard.messageprimitives.MaxMomsExceededException: MOM connection from Node=Workstation...." previously reported for MOM-Collector handshake connection failures.
I am using a standalone EM and not a cluster, but will try to test on that next.
Regards,
Lynn