Control events
You enable and disable events by specifying the appropriate values for queue manager, queue attributes, or both, depending on the type of event.
We must enable each instrumentation event that we want to be generated. For example, the conditions causing a Queue Full event are:- Queue Full events are enabled for a specified queue, and
- An application issues an MQPUT request to put a message on that queue, but the request fails because the queue is full.
Enable and disable events by using any of the following techniques:
- IBM MQ script commands (MQSC).
- The corresponding IBM MQ PCF commands.
- The operations and control panels for queue managers on z/OS .
- IBM MQ Explorer.
Note: We can set attributes related to events for both queues and queue managers only by command. The MQI call MQSET does not support attributes related to events.
- Control queue manager events
You control queue manager events by using queue manager attributes. To enable queue manager events, set the appropriate queue manager attribute to ENABLED. To disable queue manager events, set the appropriate queue manager attribute to DISABLED. - Control channel and bridge events
You control channel events by using queue manager attributes. To enable channel events, set the appropriate queue manager attribute to ENABLED. To disable channel events, set the appropriate queue manager attribute to DISABLED. - Control performance events
You control performance events using the PERFMEV queue manager attribute. To enable performance events, set PERFMEV to ENABLED. To disable performance events, set the PERFMEV queue manager attribute to DISABLED. - Control configuration, command, and logger events
You control configuration, command, and logger events by using the queue manager attributes CONFIGEV, CMDEV, and LOGGEREV. To enable these events, set the appropriate queue manager attribute to ENABLED. To disable these events, set the appropriate queue manager attribute to DISABLED.
Parent topic: Instrumentation events
Related concepts
Related reference
Related information
- The MQSC commands
- Automating administration tasks
- Use Programmable Command Formats
- Introducing the operations and control panels