ASPL User Manual v 1.00
© 2025 SetSphere.com


12-23

   Reaping WebSphere JVM Processes: wasreaper.aspl

We want to reap the environment of WebSphere JVM startup processes and compare them by using ASPL set operations.

The script wasreaper.aspl, shown below, reaps the environment variables of WebSphere startNode.sh and stopNode.sh then compares them by showing their union.

The script wasreaper2.aspl reaps the environment variables of WebSphere wsadmin.sh and startServer.sh then compares them by showing their union.


 -LIS- Listing. 12.23.1   [LISTING wasreaper.aspl][ASPL Script wasreaper.aspl]
(raw text)
1.     #!/usr/bin/env aspl
2.     #ENVARG= -groupingclass SYSENVGROUP -wsname TRANSIENT -singlepass 
3.     
4.     ;;***********************************************************************
5.     ;;
6.     ;;   wasreaper.aspl
7.     ;;   Reap WebSphere startNode.sh and stopNode.sh then compare the 
8.     ;;   environment variables used by their processes and show how they differ
9.     ;;   Copyright © 2024 Bassem W. Jamaleddine
10.    ;;
11.    ;;***********************************************************************
12.    
13.    ks varname varvalue chksum ppdd ffl
14.    displayoff
15.    
16.    printblock *** REAPING ENV OF WebSphere startNode.sh ***
17.    w1 = 
      ggreapenvbypid(program,/opt/IBM/WebSphere/AppServer/bin/startNode.sh,onlychanged,1) 
18.    printblock *** REAPING ENV OF WebSphere stopNode.sh ***
19.    w2 = 
      ggreapenvbypid(program,/opt/IBM/WebSphere/AppServer/bin/stopNode.sh,onlychanged,1) 
20.    
21.    displayon
22.    
23.    printblock *** COMPARING WEBSPHERE startNode.sh AND stopNode.sh PROCESSES INTERNALS 
      *** 
24.    gU w1 w2
25.    printblock *** ENV VAR SAME FOR WEBSPHERE startNode.sh AND stopNode.sh PROCESSES 
      INTERNALS *** 
26.    fU,`ks= w1 w2
27.    printblock *** ENV VAR DIFFER FOR WEBSPHERE startNode.sh AND stopNode.sh PROCESSES 
      INTERNALS *** 
28.    fU,`ks~ w1 w2
29.    

ASPL© 2025 Bassem Jamaleddine




This example is shown in the following terminal.

viewme

 -TC- Display. 12.23.1   [Script wasreaper.aspl]
run for wasreaper-aspl-links


The following script wasreaper2.aspl reaps the environment of WebSphere wsadmin.sh and startServer.sh:

 -LIS- Listing. 12.23.2   [LISTING wasreaper2.aspl][ASPL Script wasreaper2.aspl]
(raw text)
1.     #!/usr/bin/env aspl
2.     #ENVARG= -groupingclass SYSENVGROUP -wsname TRANSIENT -singlepass 
3.     
4.     ;;***********************************************************************
5.     ;;
6.     ;;   wasreaper.aspl
7.     ;;   Reap WebSphere startNode.sh and stopNode.sh then compare the 
8.     ;;   environment variables used by their processes and show how they differ
9.     ;;   Copyright © 2024 Bassem W. Jamaleddine
10.    ;;
11.    ;;***********************************************************************
12.    
13.    ks varname varvalue chksum ppdd ffl
14.    displayoff
15.    
16.    printblock *** REAPING ENV OF WebSphere startNode.sh ***
17.    w1 = 
      ggreapenvbypid(program,/opt/IBM/WebSphere/AppServer/bin/startNode.sh,onlychanged,1) 
18.    printblock *** REAPING ENV OF WebSphere stopNode.sh ***
19.    w2 = 
      ggreapenvbypid(program,/opt/IBM/WebSphere/AppServer/bin/stopNode.sh,onlychanged,1) 
20.    
21.    displayon
22.    
23.    printblock *** COMPARING WEBSPHERE startNode.sh AND stopNode.sh PROCESSES INTERNALS 
      *** 
24.    gU w1 w2
25.    printblock *** ENV VAR SAME FOR WEBSPHERE startNode.sh AND stopNode.sh PROCESSES 
      INTERNALS *** 
26.    fU,`ks= w1 w2
27.    printblock *** ENV VAR DIFFER FOR WEBSPHERE startNode.sh AND stopNode.sh PROCESSES 
      INTERNALS *** 
28.    fU,`ks~ w1 w2
29.    

ASPL© 2025 Bassem Jamaleddine


viewme

 -TC- Display. 12.23.2   [Script wasreaper2.aspl]
run for wasreaper2-aspl-links