1. #!/usr/bin/env aspl 2. #ENVARG= -wsname CLUSTERED_TESTA_QUEUES -groupingclass IBMMQ_QUEUES_GROUP 3. 4. ;;*********************************************************************** 5. ;; clustered_delta_queues.aspl 6. ;; detect changes in IBM MQ queue attributes in a cluster of qmgrs. 7. ;; Assuming the qmgr TESTA is installed on hosts NYNYMQ and VAVAMQ 8. ;; 9. ;; Copyright © 2021-2026 Bassem W. Jamaleddine 10. ;; All rights reserved. 11. ;; 12. ;;*********************************************************************** 13. 14. ;; Before running the script, a first initialization of group variable 15. ;; captures is required. The script interrogates the set variables 16. ;; detecting changes in an incremental change of data configuration. 17. ;; # aspl -wsname CLUSTERED_TESTA_QUEUES -groupingclass IBMMQ_QUEUES_GROUP 18. ;; aspl > nytesta = ggqmgrqueues(hostname,nynymq,qmgrname,TESTA) 19. ;; aspl > vatesta = ggqmgrqueues(hostname,vavamq,qmgrname,TESTA) 20. ;; NOTE: below fU, is used so to labinate group label, since grp1 is 21. ;; uc(qmgrname) in ggqmgrqueues(), and qmgrnames are the same 22. ;; in a cluster of hosts. 23. ;; aspl > nyvatesta = fU, nytesta vatesta 24. 25. endScriptIfShellArgsLessThan 1 26. 27. ks- TRIGDATA PROCESS INITQ ALTDATE ALTTIME chksum 28. 29. printblock ANY CHANGES IN THE QMGRs ATTRIBUTES OF $1 ARE SHOWN BELOW 30. 31. ?? $1 32. ;; view only these have changed 33. fU,`ks~ @$1 34. 35. ;; view all whether changed or not 36. ;;fU, @$1 37. 38. intermittentarc 1 39. ;; playop on differential group variable showing only these have changed 40. playop fU,`ks~ $1 41. ;; playop showing them all whether changed or not 42. ;;playop fU, $1 43. 44. ;; quietly have labinated union of group variable on top of answer stack 45. displayoff 46. fU,`ks~ @$1 47. displayon 48. 49. setwriteformat MQ_Writer_QueuesColor 50. writeformat 51. ;;writeformatonchanges 52. 53. saveonchanges 54. 55. endscript 56. 57. __END__ 58. 59. $00 detects changes in the queues attributes of IBM MQ qmgr at ACME Co. 60. The qmgr TESTA is created on two hosts: nynymq and vavamq; it is 61. assumed to be a clustered qmgr. Using ASPL group union, we can monitor 62. changes in the clustered queues TESTA. 63. The nyvatesta is the group variable that represents queues in both qmgrs 64. installed on hosts NYNYMQ and VAVAMQ, that is: nyvatesta = fU, nytesta vatesta 65. 66. You must provide the grouping variable for the qmgr or gmgrs 67. nytesta for queues of qmgr TESTA hosted on NYNYMQ 68. vatesta for queues of qmgr TESTA hosted on VAVAMQ 69. nyvatesta for queues of qmgr TESTA hosted on NYNYMQ and VAVAMQ 70.