ASPL Manual v 1.00
© 2024 by SetSphere.COM
12-17
[Top 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.
This example is shown in the following terminal.
display or terminal for Example: Script wasreaper.aspl
The following script wasreaper2.aspl reaps the environment of WebSphere wsadmin.sh and startServer.sh: [Top 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.
display or terminal for Example: Script wasreaper2.aspl