ASPLMQ User Guide v 1.00
© 2026 Bassem W. Jamaleddine


2-1

   Grouping Class for IBM MQ Qmgr Attributes


This section explains how to use ASPL to detect changes in IBM MQ queue manager attributes. The scripting provided here enables visual comparisons that contrast 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:
  • Define the Grouping Class: Create the IBMMQ_QMGR_GROUP element grouping class to describe the queue manager attributes.
  • Code the Global Grouping Function: Code the ggibmqmgrs() global grouping function to return the GADg pointer to the queue manager group (with one queue manager per group).
  • Create the Workspace: Establish the ACME_QMGRS workspace to save the set variables pointing to the baseline grouped queue managers.
  • Develop the Main Tracking Script: Code the acme_qmgrs.aspl script to interrogate identifiers representing queue manager configurations, and expose configuration drift across the cluster.
  • Prepare the Initial Set Variables: Configure the initial set variables within the acme_qmgrs.aspl script; these parameters are interrogated as differential group variables to reveal changes across the queue managers.
  • This section is not included in the SAMPLE PREVIEW.
    To this point, the *.aspl scripts have loaded the namedspace ACME_QMGRS to read and store set variables representing specific queue manager configurations. Consequently, these qmgr configurations are represented by symbols saved within the ASPL symbol table of the namedspace ACME_QMGRS. Because queue managers are typically created once for the lifetime of a project, and monitoring is concerned solely with object configuration drift within them, then using scripts tailored to specific queue manager names remains an acceptable solution for comparing and detecting changes across a small number of queue managers.
    The next section explains how to implement scripts utilizing the TRANSIENT namespace to display and compare queue managers in general.

    ■ Displaying the Queues: qmgrsdisp.pl



    Analyzing and comparing queue managers across distributed systems involves generating set variables dynamically inside the temporary TRANSIENT namedspace. Operating under the IBMMQ_QMGR_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 qmgrsdisp.pl script displays the queue manager configurations running across a cloud environment. For the complete source code of qmgrsdisp.pl, refer to Appendix Script to Display IBM MQ Qmgrs: qmgrsdisp.pl.

    To view the usage syntax for qmgrsdisp.pl, run the script without arguments at the shell prompt, as shown in Figure 2.1.6.
    full view

    Image File

     Fig. 2.1.1   [Usage of qmgrsdisp.pl]
    ASPLMQ 2026 by Bassem Jamaleddine
    This section is not included in the SAMPLE PREVIEW.

     

    ■ Comparing the Qmgrs: qmgrscompare.pl


    The qmgrscompare.pl script compares the qmgr configurations in a cloud environment. For the complete source code of qmgrscompare.pl, refer to Appendix Script to Compare IBM MQ Qmgrs: qmgrscompare.pl. To view the usage syntax for qmgrscompare.pl, run the script without arguments at the shell prompt, as shown in Figure 2.1.9.
    full view

    Image File

     Fig. 2.1.2   [Usage of qmgrscompare.pl]
    ASPLMQ 2026 by Bassem Jamaleddine
    This section is not included in the SAMPLE PREVIEW.