Previous Topic: ASSIGN Statement—Assign a Logical File Name to a Physical FileNext Topic: ATTRIBUTESFILTER Statement—Specify the Attribute Notifications to Subscribe to


ATTRIBUTE Statement—Specify the MBean Attribute to Query or Set

The ATTRIBUTE statement specifies the name of the MBean attribute you want to query or set in a JMX-MBean Attribute job. You specify the ATTRIBUTE statement to query a JMX server for the value of an MBean attribute or to change the value of an MBean attribute on a JMX server. You can change the value of an MBean attribute using a set value for the attribute or using a serialized Java object passed by another job.

Supported Job Types

This statement is required for the following job types:

Syntax

This statement has the following format:

ATTRIBUTE attribute
attribute

Specifies the name of the MBean attribute that you want to query or set.

Limits: Up to 1024 characters; case-sensitive

Note: Enclose values that contain delimiters (such as spaces) in double quotation marks.

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