21-4
Catalyst 2940 Switch Software Configuration Guide
78-15507-02
Chapter21 Configuring RMON
Configuring RMON
To disable an alarm, use the no rmon alarm number global configuration command on each alarm you
configured. You cannot disable at once all the alarms that you configured. To disable an event, use the
no rmon event number global configuration command. To learn more about alarms and events and how
they interact with each other, refer to RFC 1757.
You can set an alarm on an y MIB ob ject. The following example configures RMON alarm n umbe r 10 b y
using the rmon alarm command. The alarm monitors the MIB variable ifEntry.20.1 once every 20
seconds until the alarm is disabled and che cks 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 configur ed w it h th e rm on 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 tr iggered aga in.
Switch(config)# rmon alarm 10 ifEntry.20.1 20 delta rising-threshold 15 1
falling-threshold 0 owner jjohnson
The following example creates RMON event number 1 by us ing th e rmon e v ent comm and. T he e v en t is
defined as High ifOutErrors and generates a log entry when the e v ent is tr iggere d by th e ala rm. Th e user
jjones owns the row that is created in the event table by this comm an d. Th is exam pl e als o gene ra tes an
SNMP trap when the event is triggered.
Switch(config)# rmon event 1 log trap eventtrap description "High ifOutErrors" owner
jjones
Step3 rmon event number [description string] [log] [owner string]
[trap community] Add an event in the RMON event table that is
associated with an RMON event number.
For number, assign an event number. The range
is 1 to 65535.
(Optional) For description string, specify a
description of the event.
(Optional) Use the log keyword to generate an
RMON log entry when the event is triggered.
(Optional) For owner string, specify the owner
of this event.
(Optional) For community, enter the SNMP
community string used for this trap.
Step4 end Return to privileged EXEC mode.
Step5 show running-config Verify your entries.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration
file.
Command Purpose