ASPL User Manual v 1.00
© 2025 SetSphere.com
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.
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.
This example is shown in the following terminal.
The following script wasreaper2.aspl reaps the environment of WebSphere wsadmin.sh and startServer.sh:
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.