Share

Tuesday, March 15, 2016

WASPS -Websphere Application Server Process Status

WASPS is basically a shell script which will replace your traditional "ps -eaf" command.

It will search & find the running WAS Jvms on the local unix servers and displays it with a nice formatting with more detailed info like NodeName/CellName .

Just Download the zip file here and put it in your unix server where WAS processes are running. Its recommended to have  Java environment variables declared already (JAVA_HOME & PATH), for efficient and ease usage.

If Java Environment has not been set . User will be prompted for the JAVA_HOME location.

For example: If you have your java and jps in the location "/opt/oracle/java/bin/java(or)jps", you can pass "/opt/oracle/java/" as JAVA_HOME value to WASPS

Alternatively, you can set up environment variables from the command line something like this.

export PATH=$PATH:<Java bin directory where java&jps resides>

WASPS developed using two base command line tools , "JPS" and "JMXterm".



bash-3.00# ./WASPS
__________________________________________________________________________
WASPS-Websphere Application Server Process Status
Version:1.0|Designed by mwinventory.in
ServerName:mwilinux01|Date:Mon Mar 14 18:41:30 IST 2016
__________________________________________________________________________
JAVA_HOME Variable may not be set or <jps> not found in the PATH
Please provide Alternate 'JAVA_HOME' location and enter to continue:
/var/tmp/
Searching for jps in new JAVA_HOME /var/tmp/ Please Wait!!!
Failed to find jps in "/var/tmp/"
Please Press (c) to cancel and try again -or-(j) to use the JMX method instead
Note-> JMX Method does not require jps to be available it can run with Java/Jre
Waiting for UserInput:
(c) cancel
(j) Invoke JMX
__________________________________________________________________________

In some JDK versions JPS will not be available, where WASPS provides you an another option , which is JMX. 

As shown above, If you Key in "j" It will take you to the JMX method.

JMX methodology does not require JPS. It can manage with your JRE/JDK. So still, Java path is required.

Once you have selected the JMX method. WASPS will again look for JAVA and prompts you the path if Java environment is not already set


Waiting for UserInput:
(c) cancel
(j) Invoke JMX
j
__________________________________________________________________________
WASPS-Websphere Application Server Process Status
Version:1.0|Designed by mwinventory.in
ServerName:mwilinux01|Date:Mon Mar 14 19:45:06 IST 2016
__________________________________________________________________________
WASPS Finding local running JVMs.. Please Wait!!!.
......

Finally here comes the result we were looking for.


Content of Zip file:
















How to execute:

Download the Zip  and unzip into some directory on the server where WAS processes are running. After Unzip. you will get 4 files created as shown above.

Now start WASPS  as follows  

./WASPS

That's it.

Hope it helps.

Feel free to feedback via comments.

Cheers,
Sarav




1 comment :