Obtain server version information with scripting

 

+

Search Tips   |   Advanced Search

 

 

Overview

Use the wsadmin tool and scripting to obtain server version information.

To run, have write permission to...

app_server_root/properties/version/
app_server_root/properties/version/history

Script...

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

Example output...

IBM WAS VReport
   ---------------------------------------------------------------------------

        Platform Information
        ------------------------------------------------------------------------

                Name: IBM WAS
                Version: 5.0


        Product Information
        ------------------------------------------------------------------------

                ID: BASE
                Name: IBM WAS
                Build Date: 9/11/02
                Build Level: r0236.11
                Version: 5.0.0


        Product Information
        ------------------------------------------------------------------------

                ID: ND
                Name: IBM WAS for ND
                Build Date: 9/11/02
                Build Level: r0236.11
                Version: 5.0.0

   ---------------------------------------------------------------------------
   End Report
   ---------------------------------------------------------------------------




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

 

Related Reference

Commands for the AdminControl object