[Contents] [Prev] [Next] [Index] [Report an Error]

Defining a Boolean Test

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:

  1. Define the Boolean-test comparison that you want this trigger to use.
    host1(config-mgmtevent-trigger)#boolean-test comparison greater
  2. (Optional) Specify that you do not want the Boolean test to perform a comparison when this trigger first becomes active.
    host1(config-mgmtevent-trigger)#boolean-test startup
  3. Specify the events that you want the Boolean-test trigger to use by entering an event owner name and event name.

    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
  4. Specify the agent on which the object resides.
    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.


[Contents] [Prev] [Next] [Index] [Report an Error]