The following example shows how to add an event (in the RMON event table) that is associated with an RMON event number, using the rmon eventglobal configurationcommand:
Router(config)# rmon event 1 log trap eventtrap description “High ifOutErrors” owner owner_a
This example creates RMON event number 1, which is defined as “High ifOutErrors”, and generates a log entry when the event is triggered by an alarm. The user “owner_a” owns the row that is created in the event table by this command. This example also generates an SNMP trap when the event is triggered.
The following example shows how to configure an RMON alarm using the rmon alarm global configuration command:
Router(config)# rmon alarm 10 ifEntry.20.1 20 delta rising-threshold 15 1 falling-threshold 0 owner owner_a
This example configures RMON alarm number 10. The alarm monitors the MIB variable ifEntry.20.1 once every 20 seconds until the alarm is disabled, and checks the change in the rise or fall of the variable. If the ifEntry.20.1 value shows a MIB counter increase of 15 or more, such as from 100000 to 100015, the alarm is triggered. The alarm in turn triggers event number 1, which is configured with the rmon event command. Possible events include a log entry or an SNMP trap. If the ifEntry.20.1 value changes by 0, the alarm is reset and can be triggered again.