Identify attributes and operations for running objects with the wsadmin tool
Use the Help object attributes or operations commands to find information on a running MBean in the server.
- Invoke the AdminControl object commands interactively, in a script, or use the wsadmin -c tool from an operating system command prompt.
- Specify a running object.
- Use the attributes command to display the attributes of the running object:
where:$Help attributes MBeanObjectName
$Help is the object that provides general help and information for running MBeans in the connected server process attributes is a $Help command MBeanObjectName is the string representation of the MBean object name obtained in step 2
- Use the operations command to find out the operations supported by the MBean:
or$Help operations MBeanObjectname
where:$Help operations MBeanObjectname operationName
$Help is the object that provides general help and information for running MBeans in the connected server process operations is a $Help command MBeanObjectname is the string representation of the MBean object name obtained in step number 2 operationName (optional) is the specified operation for which you want to obtain detailed information
If you do not provide the operationName , all operations supported by the MBean return with the signature for each operation. If you specify operationName , only the operation that you specify returns and it contains details which include the input parameters and the return value. To display the operations for the server MBean:
set server [$AdminControl completeObjectName type=Server,name=servername,*] $Help operations $servTo display detailed information about the stop operation, use the following example:
$Help operations $server stop
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.