Before you begin
Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.Why and when to perform this task
Perform the following steps to query the server state:
Steps for this task
set server [$AdminControl completeObjectName cell=mycell,node=mynode, name=server1,type=Server,*]
server = AdminControl.completObjectName('cell=mycell,node=mynode, name=server1,type=Server,*') print server
WebSphere:cell=mycell,name=server1,mbeanIdentifier=server.xml#Server_1, type=Server,node=mynode,process=server1,processType=ManagedProcess
$AdminControl getAttribute $server state
print AdminControl.getAttribute(server, 'state')
STARTED
Related concepts
AdminControl object for scripted administration
Related reference
Commands for the AdminControl object