Use wsadmin to obtain server version information

 

+

Search Tips   |   Advanced Search

 

Query server version

Start wsadmin.sh|bat and execute...

Jacl

### Identify the server and assign it to the server variable.
set server [$AdminControl completeObjectName type=Server,name=server1,node=mynode,*]

### Get value of serverVattribute...
$AdminControl getAttribute $server1 serverVersion

Jython

server = AdminControl.completeObjectName('type=Server,name=server1,node=mynode,*') print server
print AdminControl.getAttribute(server1, 'serverVersion')


 

See Also

AdminControl object for scripted administration
Using scripting (wsadmin)
Getting started with scripting
Commands for the AdminControl object