Scenario: Message monitor

Start of changeThis example describes a monitor that displays any inquiry messages in your message queue that occur on your system.End of change

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:

Start of change
  1. In IBM® Navigator for i, select Monitors > Message Monitors. From the Actions menu, select Create New Message Monitor.
  2. On the General page, enter a name and description for this monitor. Click Next.
  3. On the Message Queue page, enter the following values:
    1. For Message Queue to Monitor, specify QSYSOPR.
    2. For Library, specify QSYS.
    3. Click Next.
  4. On the Message Set page, perform the following steps:
    1. On the Message Set 1 tab, click Add.
    2. On the Add A Message Set page, enter the following values:
      1. Select Add a user defined set of messages.
      2. For Message Type, select Inquiry.
      3. Click OK.
    3. Select Set the message trigger and reset.
    4. For Trigger at the following message count, specify 1.
    5. Click Next.
  5. Click Next to view the monitor summary page.
  6. Click Finish to save the monitor.
  7. From the list of message monitors, right-click the new monitor and select Start.
End of change

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.