FreeKB - Command Line Workstation (CLW) - get labels for agents
Introscope - Command Line Workstation (CLW) - get labels for agents

If you are not familar with the basic usage of Command Line Workstation (CLW), check out our getting started article. The get labels for agents command is used to get the status of agents that are mounted in Introscope. If you are not familiar with how an agent gets added to Introscope, check out our articles on how to add a Tomcat JVM to Introscope or how to add a WebSphere JVM to Introscope. The "list historical agents" command is used to list agents that are unmounted from Introscope.

Let's say you've a couple servers with a couple JVMs.

 

In this example, the label of an agent can be obtained like this.

java -Duser=<your username> -Dpassword=<your password> -Dhost=<hostname> -jar CLWorkstation.jar get labels for agents matching .*JVM1.*

 

Which will write the results to a file named DynamicInstrumentationData-yyyymmddhhmmss.xml. The XML file will contain something like this. In this example, the JVM has no label.

<map>
  <entry>
    <string>server001|Tomcat|JVM1</string>
    <com.wily.introscope.spec.agent.beans.dynamicinstrumentation.InstrumentationInfoResult>
      <status>0</status>
      <labels/>
    </com.wily.introscope.spec.agent.beans.dynamicinstrumentation.InstrumentationInfoResult>
  </entry>
</map>

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter d914f in the box below so that we can be sure you are a human.




Comments