Examples of controlling real-time monitoring

A number of examples follow that show how to set the necessary queue, channel, and queue manager attributes to control the level of monitoring. In all the examples, when monitoring is enabled, queue and channel objects have a medium level of monitoring.

  1. To enable both queue and channel monitoring for all queues and channels at the queue manager level, use the following commands:

    ALTER QMGR MONQ(MEDIUM) MONCHL(MEDIUM)
    ALTER QL(Q1) MONQ(QMGR)
    ALTER CHL(QM1.TO.QM2) CHLTYPE(SDR) MONCHL(QMGR)
    

  2. To enable monitoring for all queues and channels, with the exception of local queue,

    Q1, and sender channel, QM1.TO.QM2, use the following commands:

    ALTER QMGR MONQ(MEDIUM) MONCHL(MEDIUM)
    ALTER QL(Q1) MONQ(OFF)
    ALTER CHL(QM1.TO.QM2) CHLTYPE(SDR) MONCHL(OFF)

  3. To disable both queue and channel monitoring for all queues and channels, with the exception of local queue,

    Q1, and sender channel, QM1.TO.QM2, use the following commands:

    ALTER QMGR MONQ(OFF) MONCHL(OFF)
    ALTER QL(Q1) MONQ(MEDIUM)
    ALTER CHL(QM1.TO.QM2) CHLTYPE(SDR) MONCHL(MEDIUM)

  4. To disable both queue and channel monitoring for all queues and channels, regardless of individual object attributes, use the following command:

    ALTER QMGR MONQ(NONE) MONCHL(NONE)

To control the monitoring capabilities of automatically defined cluster-sender channels use the following command:

ALTER QMGR MONACLS(MEDIUM)

To specify that automatically defined cluster-sender channels are to use the queue manager setting for channel monitoring, use the following command:

ALTER QMGR MONACLS(QMGR)