Query server state using scripting
Procedure
- Start wsadmin
- Using Jacl
set server [$AdminControl completeObjectName cell=mycell,node=mynode,name=server1,type=Server,*]### Query for the state attribute.
$AdminControl getAttribute $server state
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