Query server state using scripting

 

+

Search Tips   |   Advanced Search

 

Procedure

  1. Start wsadmin

  2. Using Jacl

    set server [$AdminControl completeObjectName cell=mycell,node=mynode,name=server1,type=Server,*]

    ### Query for the state attribute.
    $AdminControl getAttribute $server state

    Jython

    server = AdminControl.completObjectName('cell=mycell,node=mynode,name=server1,type=Server,*')
    print server
    print AdminControl.getAttribute(server, 'state')


 

See Also


AdminControl object for scripted administration

 

See Also


Commands for the AdminControl object