ASPL Manual v 1.00
© 2024 by SetSphere.COM


12-17

   Script wasreaper.aspl

Reap the environment of WebSphere JVM startup processes and compare them using ASPL set operations. The script wasreaper.aspl reaps the environment of WebSphere startNode.sh and stopNode.sh then compares them by showing their union.


       [Top Text]

 -L- Listing. 12.17.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.     ;;   wasreaper.aspl
6.     ;;   Reap WebSphere startNode.sh and stopNode.sh then compare the 
7.     ;;   environment variables used by their processes and show the difference
8.     ;;   Copyright © 2024 Bassem W. Jamaleddine
9.     ;;
10.    ;;***********************************************************************
11.    
12.    ks varname varvalue chksum ppdd ffl
13.    displayoff
14.    print ###################################################################
15.    print # REAPING ENV OF WebSphere startNode.sh and stopNode.sh
16.    print ###################################################################
17.    w1 = 
      ggreapenvbypid(program,/opt/IBM/WebSphere/AppServer/bin/startNode.sh,onlychanged,1) 
18.    w2 = 
      ggreapenvbypid(program,/opt/IBM/WebSphere/AppServer/bin/stopNode.sh,onlychanged,1) 
19.    displayon
20.    print ###################################################################
21.    print # COMPARING WebSphere startNode.sh and stopNode.sh Processes Internals
22.    print ###################################################################
23.    gU,`ks~ w1 w2
24.    
25.    endscript
26.    

ASPL(C) 2024 Bassem Jamaleddine




This example is shown in the following terminal.

       display or terminal for Example: Script wasreaper.aspl
viewme

 -E- Display. 12.17.1   [Script wasreaper.aspl][Script wasreaper.aspl]
run for wasreaper-aspl-links


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

 -L- Listing. 12.17.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.     ;;   wasreaper.aspl
6.     ;;   Reap WebSphere wsadmin.sh and startServer.sh then compare and show the
7.     ;;   difference between the environment variables used by their processes
8.     ;;   Copyright © 2024 Bassem W. Jamaleddine
9.     ;;
10.    ;;***********************************************************************
11.    
12.    ks varname varvalue chksum ppdd ffl
13.    displayoff
14.    print ###################################################################
15.    print # REAPING ENV OF WebSphere wsadmin.sh and startServer.sh
16.    print ###################################################################
17.    v1 = 
      ggreapenvbypid(program,/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/wsadmin.sh 
      -conntype NONE  -lang jython -username bassem -password bassem,onlychanged,1) 
18.    v2 = ggreapenvbypid(program,/opt/IBM/WebSphere/AppServer/bin/startServer.sh 
      server1,onlychanged,1) 
19.    displayon
20.    print ###################################################################
21.    print # COMPARING WebSphere wsadmin.sh and startServer.sh Processes 
      Internals 
22.    print ###################################################################
23.    gU,`ks~ v1 v2
24.    
25.    endscript
26.    

ASPL(C) 2024 Bassem Jamaleddine


       display or terminal for Example: Script wasreaper2.aspl
viewme

 -E- Display. 12.17.2   [Script wasreaper2.aspl][Script wasreaper2.aspl]
run for wasreaper2-aspl-links