Identify running objects
MBean servers can be queryed using AdminControl queryNames. For example...
$AdminControl queryNames *The queryNames method takes one argument, ObjectName. In the example above, the asterisk (*) is a wildcard that returns all objects.
ObjectName has two parts...
Within WAS, the default domain is "WebSphere". The query above is equivalent to...
$AdminControl queryNames WebSphere:*Common key properties include...
- name
- type
- cell
- node
- process
- mbeanIdentifier
For example...
$AdminControl queryNames WebSphere:type=Server,node=node,*...returns a list of all MBeans that represent server objects running on node node, with the * at the end of the ObjectName object a JMX wildcard. For example, if you enter the following...
$AdminControl queryNames WebSphere:type=Server,node=node...you get an empty list back because the argument to queryNames is not a wildcard. There is no Server MBean running that has exactly these key properties and no others.If you want to see all the MBeans representing applications running on a particular node, invoke the following example...
$AdminControl queryNames WebSphere:type=Application,node=node,*