ASPLMQ User Guide v 1.00
© 2026 Bassem W. Jamaleddine
This section explains how to use ASPL to detect changes in IBM MQ queue attributes. The scripting provided here enables visual comparisons that contrast queue attribute modifications, whether they occur within the same queue manager or across distributed queue managers in a cloud environment.
ASPL scripting requires the following prerequisites:
This section is not included in the SAMPLE PREVIEW.
■ Displaying the Queues: queuesdisp.pl
Analyzing and comparing queues across distributed queue managers involves generating set variables dynamically inside the temporary TRANSIENT namedspace. Operating under the IBMMQ_QUEUES_GROUP element grouping class, this transient workspace serves as a volatile memory space that ASPL automatically destroys with all set variables once the script exits.
The queuesdisp.pl script displays the queue configurations for various queue managers running across a cloud environment. For the complete source code of queuesdisp.pl, refer to Appendix Script to Display IBM MQ Channels: queuesdisp.pl. To view the usage syntax for queuesdisp.pl, run the script without arguments at the shell prompt, as shown in Figure 2.2.8.
TESTING THE SCRIPT queuesdisp.pl
![]()
With the QMGRLAB queue manager deployed on both the nynymq and vavamq hosts, introduce a configuration change to a target queue on nynymq. This adjustment provides the modified baseline necessary to demonstrate change detection.
(NYNYMQ's qmgr:QMGRLAB) 23:53 mqm@NYNYMQ: ~ # echo "DEFINE QLOCAL(LQ.TEST.ADMS3NYNY) GET(ENABLED) MAXMSGL(4194304) REPLACE" | runmqsc QMGRLAB
5724-H72 (C) Copyright IBM Corp. 1994, 2009. ALL RIGHTS RESERVED.
Starting MQSC for queue manager QMGRLAB.
1 : DEFINE QLOCAL(LQ.TEST.ADMS3NYNY) GET(DISABLED) MAXMSGL(4194111) REPLACE
AMQ8006: WebSphere MQ queue created.
One MQSC command read.
No commands have a syntax error.
All valid MQSC commands were processed.
To display the queues configured across both hosts based on the attributes mapped in the ks3 ks-vector, execute the following command:
# queuesdisp.pl -hostqmgr nynymq:QMGRLAB -hostqmgr vavamq:QMGRLAB -ks ks3
To print a prettyprint report, add the -report option to the command.
![]()
# queuesdisp.pl -hostqmgr nynymq:QMGRLAB -hostqmgr vavamq:QMGRLAB -ks ks3 -report
This section is not included in the SAMPLE PREVIEW.
■ Comparing the Queues: queuescompare.pl
The queuescompare.pl script compares the queue configurations of multiple queue managers running across a cloud environment. For the complete source code of queuescompare.pl, refer to Appendix Script to Compare IBM MQ Queues: queuescompare.pl. To view the usage syntax for queuescompare.pl, run the script without arguments at the shell prompt, as shown in Figure 2.2.12.
This section is not included in the SAMPLE PREVIEW.