Network Deployment (Distributed operating systems), v8.0 > Scripting the application serving environment (wsadmin) > Use the wsadmin scripting AdminControl object for scripted administration


Identify attributes and operations for running objects using wsadmin.sh

Use the attributes or operations commands of the Help object to find information on a running MBean in the server.


Procedure

  1. Specify a running object.

  2. Display the attributes of the running object:
    ### Jacl
    $Help attributes MBeanObjectName
    
    ### Jython
    Help.attributes(MBeanObjectName)
    

  3. Find the operations that are supported by the MBean:
    ### Jacl
    $Help operations MBeanObjectname
    
    ### ...or...
    
    $Help operations MBeanObjectname operationName
    
    
    ### Jython
    
    Help.operations(MBeanObjectname)
    
    ### ...or...
    
    Help.operations(MBeanObjectname, operationName)
    

    If you do not provide the operationName value, all the operations that are supported by the MBean return with the signature for each operation. If you specify the operationName value, 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:

    ### Jacl
    
    set server [$AdminControl completeObjectName type=Server,name=server1,*]
    $Help operations $server
    
    ### Jython
    
    server = AdminControl.completeObjectName('type=Server,name=server1,*')
    print Help.operations(server)
    

    To display detailed information about the stop operation:

    ### Jacl
    $Help operations $server stop
    
    ### Jython
    print Help.operations(server, 'stop')
    

Help object for scripted administration using wsadmin.sh
Start the wsadmin scripting client using wsadmin.sh
Use the wsadmin scripting AdminControl object for scripted administration
Commands for the AdminControl object using wsadmin.sh
Commands for the Help object using wsadmin.sh

+

Search Tips   |   Advanced Search