Query the product identification using wsadmin
Using Jacl
### Identify the server and assign it to the server variable. set server [$AdminControl completeObjectName type=Server,name=server,node=node,*] ### Query the server version. WAS information is stored in the serverVersion ### attribute. The getAttribute command returns the attribute value of ### a single attribute, passing in the attribute name. $AdminControl getAttribute $server serverVersion
Using Jython
server = AdminControl.completeObjectName('type=Server,name=server,node=node,*') print server print AdminControl.getAttribute(server, 'serverVersion')