How to determine the version of an installed WebSphere application server

This post explains how to determine the version of an installed WebSphere application server using wsadmin tool.
The commands mentioned in this post contain variable names. Replace the variables names with environment-specific values while executing these commands. Following are the names and descriptions of the variables used in the commands:
%WAS_HOME% –             the directory where the application server is installed
%SERVER_HOST% –       the host where the application server is installed
%SOAP_PORT% –           the SOAP_CONNECTOR_ADDRESS port of the application server
%ADMIN_USER% –           the user having administrative privileges for the application server
%ADMIN_PASSWORD% – the password of the user with administrative privileges
%NODE_NAME% –           the name of the node
%SERVER_NAME% –      the name of the server
(The steps below were tested on WebSphere application server version 8.5 and  wsadmin tool installed on Windows 7 machine )
Step 1: Start the WebSphere application server. See this post for more help.
Step 2: Start wsadmin command-line tool
Execute the following command on Windows command-prompt:

%WAS_HOME%\bin\wsadmin.bat -conntype SOAP -host %SERVER_HOST% -port %SOAP_PORT% -user %ADMIN_USER% -password %ADMIN_PASSWORD%

Note: The name of the executable will be different on other platforms.
Step 3: Identify the server and assign it to a variable.
Execute the following command on wsadmin command-prompt:

wsadmin>set server [$AdminControl completeObjectName type=Server,name=%SERVER_NAME%,node=%NODE_NAME%,*]

The output of the above command will be as follows:

WebSphere:name=server1,process=server1,platform=proxy,node=MyNode01, j2eeType=J2EEServer,version=8.5.0.0,type=Server,mbeanIdentifier=cells/MyNode01Cell/nodes/MyNode01/servers/server1/server.xml#Server_1183122130078,cell=MyNode01Cell,spec=1.0, processType=UnManagedProcess

Step 4: Query the server version.
Execute the following command on wsadmin command-prompt:

wsadmin>$AdminControl getAttribute $server serverVersion

The output of the above command, which will be as follows, will contain information about the installation of the WebSphere application Server. The version is a part of this information.

--------------------------------------------------------------------------------
IBM WebSphere Product Installation Status Report
--------------------------------------------------------------------------------
Report at date and time January 20, 2013 3:11:58 PM ICTInstallation
--------------------------------------------------------------------------------
Product Directory C:\root\softwares\installed\IBM\WebSphere\AppServer
Version Directory C:\root\softwares\installed\IBM\WebSphere\AppServer\properties\version
DTD Directory C:\root\softwares\installed\IBM\WebSphere\AppServer\properties\version\dtd
Log Directory C:\ProgramData\IBM\Installation Manager\logsProduct List
--------------------------------------------------------------------------------
BASE installedInstalled Product
--------------------------------------------------------------------------------
Name IBM WebSphere Application Server
Version 8.5.0.0
ID BASE
Build Level gm1218.01
Build Date 5/1/12
Package com.ibm.websphere.DEVELOPERSILAN.v85_8.5.0.20120501_1108
Architecture x86-64 (64 bit)
Installed Features IBM 64-bit WebSphere SDK for Java
WebSphere Application Server Full Profile
EJBDeploy tool for pre-EJB 3.0 modules
Embeddable EJB container
Sample applications
Stand-alone thin clients and resource adapters
--------------------------------------------------------------------------------
End Installation Status Report
--------------------------------------------------------------------------------

Advertisements
This entry was posted in Application Server, Java, Java EE, WebSphere and tagged , , . Bookmark the permalink.

One Response to How to determine the version of an installed WebSphere application server

  1. Pingback: How to fix ‘javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection’ error in WebSphere Application Server V8.5 | blakboard

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s