( ** Go back to PARENTPAGE ../Script-wasreaper-aspl.html)
( ** Go back to HOMESITE https://www.tcnd.com)
( ** Go back to SetSphere https://www.setsphere.com)

Inspect WebSphere environment JVM processes by reaping the processes started by wsadmin and startServer

In this example we reap WebSphere processes started by wsadmin.sh and startServer.sh run on the UNIX system. The script wasreaper2.aspl calls ASPL grouping function ggreapenvbypid() to reap and collect the environment started by JVM processes.

ASPL 1> ks varname varvalue chksum ppdd ffl
set ks vector to varname varvalue chksum ppdd ffl

ASPL 2> displayoff
turn off display

ASPL 3> printblock *** REAPING ENV OF WebSphere wsadmin.sh ***

ASPL 4> v1 = ggreapenvbypid(program,/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/wsadmin.sh -conntype NONE -lang jython -username bassem -password bassem,onlychanged,1)
reap wsadmin.sh and assign the group of environment variables to set variable v1

ASPL 5> printblock *** REAPING ENV OF WebSphere startServer.sh ***

ASPL 6> v2 = ggreapenvbypid(program,/opt/IBM/WebSphere/AppServer/bin/startServer.sh server1,onlychanged,1)
reap startServer.sh and assign the group of environment variables to set variable v2

ASPL 7> displayon
turn on display

ASPL 8> printblock *** COMPARING WEBSPHERE wsadmin.sh AND startServer.sh PROCESSES INTERNALS ***

ASPL 9> gU v1 v2
display the union of environment variables between wsadmin.sh AND startServer.sh

ASPL 10> printblock *** ENV VAR SAME FOR WEBSPHERE wsadmin.sh AND startServer.sh PROCESSES INTERNALS ***

ASPL 11> fU,`ks= v1 v2
display the environment variables that are similar in both wsadmin.sh AND startServer.sh

ASPL 12> printblock *** ENV VAR DIFFER FOR WEBSPHERE wsadmin.sh AND startServer.sh PROCESSES INTERNALS ***

ASPL 13> fU,`ks~ v1 v2
display the environment variables that are different in both wsadmin.sh AND startServer.sh