513
Configuring RMON
Monitoring and Maintaining RMON
Monitoring and Maintaining RMON
Configuration Examples for RMON
Configuring an RMON Alarm Number: Example
The following example shows how to configure an RMON alarm number:
Switch(config)# rmon alarm 10 ifEntry.20.1 20 delta rising-threshold 15 1 falling-threshold 0 owner
jjohnson
The alarm monitors the MIB variable ifEntry.20.1 once every 20 seconds until the alarm is disabled and checks the change
in the variable’s rise or fall. 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 can 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.
Creating an RMON Event Number: Example
The following example creates RMON event number 1:
Switch(config)# rmon event 1 log trap eventtrap description "High ifOutErrors" owner jjones
The event is defined as High ifOutErrors and generates a log entry when the event is triggered by the alarm. The user
jjones 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.
Configuring RMON Statistics: Example
This example shows how to collect RMON statistics for the owner root:
Switch(config)# interface GigabitEthernet1/17
Switch(config-if)# rmon collection stats 2 owner root
Additional References
The following sections provide references related to switch administration:
Command Purpose
show rmon Displays general RMON statistics.
show rmon alarms Displays the RMON alarm table.
show rmon events Displays the RMON event table.
show rmon history Displays the RMON history table.
show rmon statistics Displays the RMON statistics table.