You can configure RMON alarms on any integer-based SNMP MIB object.
You can optionally specify the following parameters:
Ensure you have configured an SNMP user and enabled SNMP
notifications.
| | Command or Action | Purpose |
| Step 1 |
switch#
configure terminal
|
Enters configuration mode.
|
| Step 2 |
switch(config)#
rmon alarm
index mib-object sample-interval {absolute |
delta}
rising-threshold
value [event-index]
falling-threshold
value [event-index] [owner
name]
|
Creates an RMON alarm. The value range is from -2147483647 to
2147483647. The owner name can be any alphanumeric string.
|
| Step 3 |
switch(config)#
rmon hcalarm
index mib-object sample-interval {absolute |
delta}
rising-threshold-high
value
rising-threshold-low
value [event-index]
falling-threshold-high
value
falling-threshold-low
value [event-index] [owner
name] [storagetype
type]
|
Creates an RMON high-capacity alarm. The value range is from
-2147483647 to 2147483647. The owner name can be any alphanumeric string.
The storage type range is from 1 to 5.
|
| Step 4 |
switch#
show rmon {alarms |
hcalarms}
| (Optional)
Displays information about RMON alarms or high-capacity alarms.
|
| Step 5 |
switch#
copy running-config startup-config
| (Optional)
Saves this configuration change.
|
The following example shows how to configure RMON alarms:
switch# configure terminal
switch(config)# rmon alarm 1 1.3.6.1.2.1.2.2.1.17.83886080 5 delta rising-threshold 5 1 falling-threshold 0 owner test
switch(config)# exit
switch# show rmon alarms
Alarm 1 is active, owned by test
Monitors 1.3.6.1.2.1.2.2.1.17.83886080 every 5 second(s)
Taking delta samples, last value was 0
Rising threshold is 5, assigned to event 1
Falling threshold is 0, assigned to event 0
On startup enable rising or falling alarm