Defining Boolean Test Values for the Trigger

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. You can use the boolean-test command to define Boolean test values for the trigger that you are configuring, including comparison settings, a Boolean value, a startup condition, and binding an event to the Boolean-test trigger.

You can use the no version of the boolean-test command to delete the Boolean-test values for the trigger or to remove either the startup condition or event binding.

To define a Boolean test:

  1. Define the Boolean-test comparison that you want the 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 the 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. 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. For more information about configuring the SNMP agent name, see Configuring the Virtual Router SNMP Agent on Which MIB Objects Are to Be Polled.
    host1(config-mgmtevent-trigger)#agent context-name router1
  5. Enable the trigger. For more information about enabling the trigger, see Creating a Trigger and Accessing Trigger Configuration Mode.

    Note: 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.

    host1(config-mgmtevent-trigger)#enable

Related Documentation