rmon alarm

Last Updated : Nov 06, 2012 |
Creates an RMON alarm entry. Use no rmon alarm to destroy a specific RMON alarm.
Prolog information
Note:
The rising_event and falling_event events must be defined before using the rmon alarm command (refer to rmon event).

Syntax

rmon alarm alarm_num variable interval sample_type rising-threshold rising_threshold_value rising_event falling-threshold falling_threshold_value falling_event startup_alarm owner
no rmon alarm alarm_num

Parameters

Parameter
Description
Possible Values
Default Value
alarm_num
The index number of this alarm
variable
The OID of the statistic to monitor
interval
The number of seconds
sample_type
The type of sample used for the alarm
absolute, delta
rising_ threshold_ value
The value above which the rising_event will be triggered
rising_ event
The event index to trigger when rising_threshold_value is exceeded
falling_ threshold_ value
The value below which the falling_event will be triggered
falling_ event
The event index to trigger when falling_threshold_value is reached
startup_ alarm
The prerequisite condition for triggering the alarm for the first time
rising, falling, risingOrFalling
owner
The username of the alarm owner

User level

read-write

Context

general

Example

To create an RMON alarm entry number 1 with statistic OID 1.3.6.1.2.1.16.1.1.1.5.16777216 for 20 seconds, of sample type delta, with event 32 triggered above 10000 and event 32 triggered below 1000, initially triggered either by rising or falling, for username root:
Gxxx-001(super)# rmon alarm 1 1.3.6.1.2.1.16.1.1.1.5.16777216 20 delta 
rising-threshold 10000 32 falling-threshold 1000 32 risingOrFalling root
alarm 1 was created successfully