Testing the SNMP log target

Test that your SNMP log target captures all commands and CLI log events.

About this task

To verify that your SNMP log target is active and that it captures events, test the capture of all commands. Test whether commands generate events in the CLI log category.

Procedure

  • Enter a command from a CLI session.
    1. Log on to the appliance.
    2. Type any command. For example, show memory.
  • Generate a log event from the Web UI.
    1. Start the IBM MQ Appliance web UI and click the Administration icon shows the admin icon.
    2. Select Debug > Troubleshooting.
    3. Locate the Generate Log Event area.
      1. From the Log Category list, select cli.
      2. From the Log Level list, select debug.
      3. In the Log Message field, enter a message.
      4. Click Apply.
    4. Optionally check the log target status:
      1. Click the status icon shows the status icon.
      2. Select Main > Log Target Status.
      3. In the logging targets catalog, note the number of processed events.

Results

With these steps, you generated two CLI events with two different methods. Because you have an SNMP log target that subscribes to CLI events, two SNMP traps are sent to your SNMP notification target. Also, each CLI event increments the number of processed events in the logging target status.

What to do next

Add event subscriptions to the SNMP settings for events that you have a requirement to monitor.