Configuring a trigger

You can specify a Boolean test, an existence test, or a threshold test for a trigger. For more information, see "Configuring a Boolean trigger test," "Configuring an existence trigger test," and "Configuring a threshold trigger test."

To configure a trigger:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Create a trigger and enter its view, or enter the view of an existing trigger.

snmp mib event trigger owner trigger-owner name trigger-name

By default, no triggers exist.

The owner must be an SNMPv3 user.

3. (Optional.) Configure a description for the trigger.

description text

By default, a trigger does not have a description.

4. Set the sampling interval.

frequency interval

By default, the sampling interval is 600 seconds.

Make sure the sampling interval is greater than or equal to the Event MIB minimum sampling interval.

5. Specify the sampling method.

sample { absolute | delta }

The default sampling method is absolute.

6. Specify the object to be sampled by its OID.

oid object-identifier

By default, the OID is 0.0. No object is specified for a trigger.

The mteTriggerEnabled and mteTriggerTargetTag objects are read-only and cannot be sampled.

7. Enable wildcard search for OIDs.

wildcard oid

By default, the object to be monitored is fully specified.

This command must be used in conjunction with the oid object-identifier command.

8. (Optional.) Configure a context for the monitored object.

context context-name

By default, no context is configured for a monitored object.

9. (Optional.) Enable wildcard search for contexts.

wildcard context

By default, the context for a monitored object is fully specified.

This command must be used in conjunction with the context context-name command.

10. (Optional.) Specify the object list to be added to the notification triggered by the event.

object list owner group-owner name group-name

By default, no object list is specified for a trigger.

11. Specify a test type for the trigger.

test { boolean | existence | threshold }

By default, no test type is specified for a trigger.

12. Enable the trigger.

trigger enable

By default, a trigger is disabled.