Scenario: Message monitor
This example describes a monitor that displays any inquiry messages in your message queue that occur on your system.
Situation
As a system administrator, you need to be aware of inquiry messages as they occur across your system. You can set up a message monitor to display any inquiry messages in your message queue that occur on your system.
Configuration example
To set up a message monitor, you need to define the types of messages you would like to watch for and what you would like the monitor to do when these messages occur. To set up a message monitor that accomplishes this goal, complete the following steps:
- In IBM® Navigator for i, select . From the Actions menu, select Create New Message Monitor.
- On the General page, enter a name and description for this monitor. Click Next.
- On the Message Queue page, enter the following
values:
- For Message Queue to Monitor, specify QSYSOPR.
- For Library, specify QSYS.
- Click Next.
- On the Message Set page, perform the following
steps:
- On the Message Set 1 tab, click Add.
- On the Add A Message Set page, enter the
following values:
- Select Add a user defined set of messages.
- For Message Type, select Inquiry.
- Click OK.
- Select Set the message trigger and reset.
- For Trigger at the following message count, specify 1.
- Click Next.
- Click Next to view the monitor summary page.
- Click Finish to save the monitor.
- From the list of message monitors, right-click the new monitor and select Start.
Results
The new message monitor displays any inquiry messages sent to QSYSOPR.
Note: This monitor responds
to only inquiry messages sent to QSYSOPR. However, you can include
two different sets of messages in a single monitor, and you can have
several message monitors that run at the same time. Message monitors
can also carry out IBM i commands
when specified messages are received.