You can configure a Boolean trigger to test whether the value of an integer object is equal, unequal, greater than, less than, less than or equal to, or greater than or equal to some defined value.
To define a Boolean test:
- host1(config-mgmtevent-trigger)#boolean-test
comparison greater
- host1(config-mgmtevent-trigger)#boolean-test
startup
![]() |
Note: You do not need to bind a failure event to a trigger. If you create a failure event and a failure occurs, the router sends the trap if the event owner is the same as the trigger owner. |
- host1(config-mgmtevent-trigger)#boolean-test
event george trigger1
When specifying an event, use the exact owner name and event name.Specify the Boolean value to which the test compares.
- host1(config-mgmtevent-trigger)#boolean-test
value 5175438
- 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.Enable the trigger.
- 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.