Previous Topic: ULIMIT Statement—Specify UNIX Resource LimitsNext Topic: USER Statement—Specify a User ID


URL Statement—Specify the URL of the JMX Server

The URL statement specifies the URL to connect to the JMX server in a JMX job.

Supported Job Types

This statement is required for the following job types:

Syntax

This statement has the following format:

URL url
url

Specifies the URL to connect to the JMX server using an RMI connector. The format is the following:

service:jmx:rmi:///jndi/rmi://hostName:portNum/jmxServerName
hostName

Specifies the host name or IP address of the JMX server.

portNum

Specifies the port number of the JMX server.

jmxServerName

Specifies the name of the JMX server.

Limits: Up to 1024 characters; case-sensitive

Example: service:jmx:rmi:///jndi/rmi://localhost:9999/server

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