Configuring a set action for an event
When you enable a set action, a set entry is created automatically. All fields in the entry have default values.
To configure a set action:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter event view. | snmp mib event owner event-owner name event-name | N/A |
3. Enable the set action and enter set action view. | action set | N/A |
4. Specify an object by its OID for the set action. | oid object-identifier | By default, no object is specified for the set action. |
5. Enable wildcard search for OIDs. | wildcard oid | By default, the set-action object is fully specified. This command must be used in conjunction with the oid object-identifier command. |
6. Set the value for the object. | value integer-value | The default value for the object is 0. |
7. (Optional.) Specify a context for the object. | context context-name | By default, no context is specified for an object. |
8. (Optional.) Enable wildcard search for contexts. | wildcard context | By default, the context for an object is fully specified. This command must be used in conjunction with the context context-name command. |