7.3.2. rmon alarm

Syntax

rmon alarm <1-65535> interface IF_PORT (drop-events|octets|pkts|broadcast-pkts|multicast-pkts|crc-align-errors|undersize-pkts|oversize-pkts|fragments|jabbers|collisions|pkts64octets|pkts65to127octets|pkts128to255octets|pkts256to511octets|pkts512to1023octets|pkts1024to1518octets) <1-2147483647> (absolute|delta) rising <0-2147483647> <0-65535> falling <0-2147483647> <0-65535> startup (rising|rising-falling|falling) [owner NAME]

no rmon alarm <1-65535>

Parameter

<1-65535>

Specify alarm index to create or modify

IF_PORT

Specify the interface to sample

(variable)

Specify a mib object to sample

<1-2147483647>

Specify the time in seconds that the alarm monitors the MIB variable.

(absolute|delta)

Specify absolute to compare sample counter absolutely.Specify delta to compare delta counter between samples

<0-2147483647>

Specify a number which the alarm trigger rising event

<0-65535>

Specify event index when the rising threshold exceeds.

<0-2147483647>

Specify a number which the alarm trigger falling event

<0-65535>

Specify event index when the falling threshold exceeds.

(rising|rising-falling|falling)

Specify only to how rising or falling startup event. Or show either rising or falling startup event.

[owner NAME]

(Optional) Specify owner of alarm.

Default

No default is defined.

Mode

Global Configuration

Usage

Use the rmon alarm command to add or modify a RMON alarm entry. Before add alarm entry, at least one event entry must be added. Use the no form of this command to delete. You can verify settings by the show rmon alarm command.

Example

The example shows how to add RMON alarm entry that sample interface fa1 packets delta count every 300 seconds. Trigger event index 1 if over than rising threshold 10000, trigger event index 2 if lower than falling threshold.

Switch(config)# rmon event 1 log
Switch(config)# rmon event 2 log
Switch(config)# rmon alarm 1 interface gi1 pkts 300 delta rising 10000 1 falling 100 1 startup rising-falling owner admin
Rmon Alarm Index 1
Rmon Alarm Sample Interval 300
Rmon Alarm Sample Interface : gi1
Rmon Alarm Sample Variable : Pkts
Rmon Alarm Sample Type : delta
Rmon Alarm Type : Rising or Falling
Rmon Alarm Rising Threshold : 10000
Rmon Alarm Rising Event 1
Rmon Alarm Falling Threshold 100
Rmon Alarm Falling Event 1
Rmon Alarm Owner : admin