The following example queries the product version information.
Using Jacl:
set server [$AdminControl completeObjectName type=Server,name=server1,node=mynode,*]
Example output:
WebSphere:cell=mycell,name=server1,mbeanIdentifier=server.xml#Server_1,type=Server,node=mynode,process=server1,processType=ManagedProcess
Using Jacl:
$AdminControl getAttribute $server1 serverVersion
Using Jacl:
print AdminControl.getAttribute(server1, 'serverVersion')
Example output for a Network Deployment installation follows:
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 ---------------------------------------------------------------------------