JMX_GET_ATTRIBUTE

Use the JMX_GET_ATTRIBUTE script element to retrieve the value of one or all attributes of an MBean.

Important! In the search_all= parameter of the agent's INI file, the administrator defines whether this function searches for the MBean on all local MBean servers, or only on those to which the agent is connected.

Syntax

JMX_GET_ATTRIBUTE MBEAN=...[,ATTRIBUTE=...]

Parameters

Parameter Description
MBEAN= Object name of the MBean
ATTRIBUTE=

(Optional)

Name of the attribute to retrieve. The values of all MBean attributes are retrieved if you do not use this parameter.

Examples

The following example retrieves the processingTime attribute of the specified MBean.

JMX_GET_ATTRIBUTE MBEAN="Catalina:type=GlobalRequestProcessor,name=http-80", ATTRIBUTE=processingTime

See also: