rmon alarm
To configure alarm conditions, use the rmon alarm Global Configuration modecommand. To remove an alarm, use the no form of this command.
Syntax
rmon alarm index mib-object-id interval rising-threshold falling-threshold rising-event falling-event [type {absolute | delta}] [startup {rising | rising-falling | falling}] [owner name]
no rmon alarm index
Parameters
-
index—Specifies the alarm index. (Range: 1–65535)
-
mib-object-id—Specifies the object identifier of the variable to be sampled. (Valid OID)
-
interval—Specifies the interval in seconds during which the data is sampled and compared with rising and falling thresholds. (Range: 1–2147483647)
-
rising-threshold—Specifies the rising threshold value. (Range: 0–2147483647)
-
falling-threshold—Specifies the falling threshold value. (Range: 0–2147483647)
-
rising-event—Specifies the index of the event triggered when a rising threshold is crossed. (Range: 0–65535)
-
falling-event—Specifies the index of the event triggered when a falling threshold is crossed. (Range: 0–65535)
-
type {absolute | delta}—(Optional) Specifies the method used for sampling the selected variable and calculating the value to be compared against the thresholds. The possible values are:
absolute—Specifies that the selected variable value is compared directly with the thresholds at the end of the sampling interval.
delta—Specifies that the selected variable value of the last sample is subtracted from the current value, and the difference is compared with the thresholds.
-
startup {rising | rising-falling | falling}—(Optional) Specifies the alarm that may be sent when this entry becomes valid. The possible values are:
rising—Specifies that if the first sample (after this entry becomes valid) is greater than or equal to rising-threshold, a single rising alarm is generated.
rising-falling—Specifies that if the first sample (after this entry becomes valid) is greater than or equal to rising-threshold, a single rising alarm is generated. If the first sample (after this entry becomes valid) is less than or equal to falling-threshold, a single falling alarm is generated.
falling —Specifies that if the first sample (after this entry becomes valid) is less than or equal to falling-threshold, a single falling alarm is generated.
-
owner name—(Optional) Specifies the name of the person who configured this alarm. (Valid string)
Default Configuration
The default method type is absolute.
The default startup direction is rising-falling.
If the owner name is not specified, it defaults to an empty string.
Command Mode
Global Configuration mode
Example
The following example configures an alarm with index 1000, MIB object ID D-Link, sampling interval 360000 seconds (100 hours), rising threshold value 1000000, falling threshold value 1000000, rising threshold event index 10, falling threshold event index 10, absolute method type and rising-falling alarm.
switchxxxxxx(config)# rmon alarm 1000 1.3.6.1.2.1.2.2.1.10.1 360000 1000000 1000000 10 20