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 version information:
Steps for this task
set server [$AdminControl completeObjectName type=Server,name=server1,node=mynode,*]
server = AdminControl.completeObjectName('type=Server,name=server1,node=mynode,*') print server
WebSphere:cell=mycell,name=server1,mbeanIdentifier=server.xml#Server_1, type=Server,node=mynode,process=server1,processType=ManagedProcess
$AdminControl getAttribute $server1 serverVersion
print AdminControl.getAttribute(server1, 'serverVersion')
IBM WebSphere Application Server Version Report --------------------------------------------------------------------------- Platform Information ------------------------------------------------------------------------ Name: IBM WebSphere Application Server Version: 5.0 Product Information ------------------------------------------------------------------------ ID: BASE Name: IBM WebSphere Application Server Build Date: 9/11/02 Build Level: r0236.11 Version: 5.0.0 Product Information ------------------------------------------------------------------------ ID: ND Name: IBM WebSphere Application Server for Network Deployment Build Date: 9/11/02 Build Level: r0236.11 Version: 5.0.0 --------------------------------------------------------------------------- End Report ---------------------------------------------------------------------------
Related concepts
AdminControl object for scripted administration
Related tasks
Using scripting (wsadmin)
Getting started with scripting
Related reference
Commands for the AdminControl object