WebLogic Server Command Reference
Searches for WebLogic Server MBeans whose WebLogicObjectName
matches a pattern that you specify.
All MBeans that are created from a WebLogic Server MBean type are registered in the MBean Server under a name that conforms to the weblogic.management.WebLogicObjectName
conventions. You must know an MBean's WebLogicObjectName
if you want to use weblogic.Admin
commands to retrieve or modify specific MBean instances. For more information, refer to "WebLogic Server Management Namespace" in the Programming WebLogic Management Services with JMX guide.
The output of the command is as follows:
{
MBeanName
object-name
{property1
value
} {property2
value
}. . .}
. . .
Note that the properties and values are expressed as name-value pairs, each of which is returned within curly brackets. This format facilitates parsing of the output by a script.
If -pretty
is specified, each property-value pair is displayed on a new line and curly brackets are not used to separate the pairs:
MBeanName:
object-name
property1:
value
property2:
value
.
.
.
MBeanName:object-name
property1:
value
abbribute2:
value
java [ SSL Arguments ] weblogic.Admin
[ {-urlURL
} |
[
{-adminurlprotocol
://
]Admin-Server-listen-address:listen-port
}
[ User Credentials Arguments ]
]
QUERY -pretty -patternobject-name-pattern
{-url [
|
To search for Administration MBean object names, use To search for the object names of Local Configuration or Runtime MBeans, use one of the following:
For more information, refer to the -url and |
A partial For the For the You can specify these property-value pairs in any order. Within a given naming property-value pair, there is no pattern matching. Only complete property-value pairs are used in pattern matching. However, you can use the * wildcard character in the place of one or more property-value pairs. For example, If you provide at least one property-value pair in the |
The following example searches for all JDBCConnectionPoolRuntime
MBeans that are on a server instance that listens at ManagedHost:8001:
java weblogic.Admin -url ManagedHost:8001 -username weblogic
-password weblogic QUERY
-pattern *:Type=JDBCConnectionPoolRuntime,*
If the command succeeds, it returns the following:
Ok
For more information about the environment in which this example runs, refer to Example Environment.
The following example searches for all instances of MedRecPool
MBeans on all servers in the current domain. It uses -adminurl
, which instructs the Administration Server to query the Administration MBeanHome
interface (This interface has access to all MBeans in the domain):
java weblogic.Admin -adminurl AdminHost:7001 -username weblogic
-password weblogic QUERY -pattern *:Name=MedRecPool,*
If the command succeeds, it returns an instance of the JDBCConnectionPool
Administration MBean that is named MedRecPool
, along with all corresponding Local Configuration and Runtime MBeans.