An existence test looks for the existence of a MIB object. The appearance, disappearance, or a change in value of the object can trigger the existence test.
To define an existence test:
- host1(config-mgmtevent-trigger)#existence-test
test-type changed
- host1(config-mgmtevent-trigger)#existence-test
startup absent
![]() |
Note: You do not need to bind a failure event to a trigger. If you create a failure event, if a failure occurs, and if the trigger owner and the event owner are the same, the router sends the trap. |
- host1(config-mgmtevent-trigger)#boolean-test
event george trigger1
When specifying an event, make sure to use the exact owner name and event name.
- host1(config-mgmtevent-trigger)#agent context-name
router1
You can obtain the agent context name for a virtual router from the show snmp agent command. The agent context name is independent of the virtual router name.
- host1(config-mgmtevent-trigger)#enable
Once enabled, you cannot edit an event or trigger configuration. To change an enabled event or trigger, you must delete it and re-create it.