You can define a JMX-MBean Attribute Get (JMXB_JOB) job to query a JMX server for the value of an MBean attribute. The returned value is stored on the computer where the agent resides. You can specify a success pattern to determine the job's success or failure. If the returned attribute value matches the success pattern, the job completes successfully; otherwise, it fails.
Note: To run these jobs, your system requires CA WA Agent for UNIX, Linux, or Windows and CA WA Agent for Application Services.
Required Statements
To define a JMX-MBean Attribute Get job, you must specify the following statements:
Optional Statements
You can specify the following optional statements for a JMX-MBean Attribute Get job:
Example: Query a JMX Server for the Value of an MBean Attribute
Suppose that you want to know the value of the cachesize attribute for the Config MBean. The URL for the JMX server is service:jmx:rmi:///jndi/rmi://localhost:9999/server, where localhost is the host name and 9999 is the port number.
AGENT APPAGENT URL service:jmx:rmi:///jndi/rmi://localhost:9999/server MBEAN 'DefaultDomain:index=1,type=Config' ATTRIBUTE cachesize
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|