Defining Events That Set Values for SNMP MIB Objects (SRC CLI)
You can configure SNMP to set the value of a MIB object in response to an SNMP event.
![]() | Note: Do not define an event notification and an SNMP set for the same event. |
To define an event that sets the value for a MIB variable in response to an SNMP event:
- From configuration mode, access the configuration statements
that configure an SNMP set for an event. [edit]user@host# edit snmp monitor event event-name snmp-set
- Specify the object identifier (OID) of the MIB variable
to set.[edit snmp monitor event event-name snmp-set]user@host# set oid OID
- Specify the value for the object.[edit snmp monitor event event-name snmp-set]user@host# set value value
- (Optional) Specify whether the software monitors only
the OID specified by the variable option. If you do not set this option,
the index of the object triggering the alarm is appended to the variable
to be set. [edit snmp monitor event event-name snmp-set]user@host# set strict-oid