Name
activemq-admin query — queries the for broker information on specific objects
Synopsis
activemq-admin query
[-QMBeanType
=name
] [-xQMBeanType
=name
] [--objname query
] [--xobjname query
] [--view {attr
...}] [--jmxurl JMXUrl
] [-jmxuser userName
] [-jmxpassword password
] [-Dname
=value
...] [--version] [[--help] | [-h] | [-?]]
Arguments
Argument | Description |
---|---|
-Q | Adds to the search list the specific object type matched by the defined object identifier. |
-xQ
| Removes from the search list the specific object type matched by the object identifier. |
--objname
| Adds to the search list objects matched by the query similar. |
--xobjname
| Removes from the search list objects matched by the query. |
--view
| Selects the specific attribute of the object to view. By default, all attributes are displayed. |
--jmxurl
| Sets the JMX URL to connect to. |
--jmxuser
| Sets the JMX user, used for authentication. |
--jmxpassword
| Sets the JMX password, used for authentication. |
--jmxlocal
| Use the local JMX server instead of a remote server. |
-D | Sets a Java system property. For example,
-Dactivemq.home=C:/ActiveMQ . |
--version
| Displays the version information. |
-h, -?, --help
| Displays the online help for this command. |
Examples
The following command displays all attributes and object name information for all registered MBeans in the default JMX context:
%
activemq-admin query
The following command displays all attributes and object name information of the
destination topic TEST.FOO
:
%
activemq-admin query -QTopic=TEST.FOO
The following command displays all the brokers in a context whose name ends in
host
:
%
activemq-admin query -QBroker=*host
the Following command displays all attributes and object name information for all registered queues:
%
activemq-admin query -QQueue=*
The following command displays all attributes and object name information for all
topics ending with .FOO
except those that also begin with
ActiveMQ.Advisory.
:
%
activemq-admin query -QTopic=*.FOO -xQTopic=ActiveMQ.Advisory.*