
116
falling-threshold
threshold
-
value2 event
-
entry2
: Sets the falling threshold, where
threshold
-
value2
represents the falling threshold, in the range –2,147,483,648 to +2,147,483,647 and
event
-
entry2
represents the index of the event triggered when the falling threshold is reached.
event
-
entry2
ranges
from 1 to 65,535.
forever
: Indicates that the lifetime of the private alarm entry is infinite.
cycle
cycle
-
period
: Sets the lifetime period of the private alarm entry, which ranges from 0 to
2,147,483,647 seconds.
owner
text
: Owner of the entry, a case-sensitive string of 1 to 127 characters that can contain spaces.
Description
Use the
rmon prialarm
command to create an entry in the private alarm table of RMON.
Use the
undo rmon prialarm
command to remove a private alarm entry from the private alarm table of
RMON.
The system handles private alarm entries as follows:
1.
Samples the private alarm variables in the private alarm formula at the specified sampling interval.
2.
Performs calculation on the sampled values with the formula.
3.
Compares the calculation result with the predefined thresholds and does the following:
•
If the result is equal to or greater than the rising threshold, the system triggers the event specified by
the
event
-
entry1
argument.
•
If the result is equal to or smaller than the falling threshold, the system triggers the event specified by
the
event
-
entry2
argument.
NOTE:
•
Before creating an alarm entry, define the events to be referenced in the event table with the
rmon event
command.
•
An entry cannot be created if the values of the specified alarm variable formula (
prialarm-formula),
sampling type (
absolute changeratio
or
delta
), rising threshold (
threshold-value1) and falling threshold
(
threshold-value2) to be identical to those of the existing alarm entry in the system.
•
Up to 50 pri-alarm entries can be created.
Related commands:
display rmon prialarm
,
rmon
event
,
rmon history
, and
rmon statistics
.
Examples
# Monitor the ratio of the broadcast packets received on the interface by using the private alarm.
Create entry 5 in the private alarm table. Calculate the private alarm variables with the
(1.3.6.1.2.1.16.1.1.1.6.1*100/.1.3.6.1.2.1.16.1.1.1.5.1) formula and sample the corresponding variables at
intervals of 10 seconds. Rising threshold of 80 corresponds to event 1 (and record the event into the log
table); falling threshold of 5 corresponds to event 2 (but neither log it nor send a trap). Set the lifetime of
the entry to
forever
and owner to
user1
. (Broadcast packet ratio= total number of broadcast packets
received on the interface/total number of packets received on the interface; the formula is customized by
users.)
<Sysname> system-view
[Sysname] rmon event 1 log
[Sysname] rmon event 2 none
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] rmon statistics 1