2326 CHAPTER 153: RMON CONFIGURATION COMMANDS
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 following is how the system handles private alarm entries:
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 rising threshold is reached, triggers the event specified by the
event-entry1 argument.
■ If the falling threshold is reached, triggers the event specified by the
event-entry2 argument.
n
■ Before creating an alarm entry, define the events to be referenced in the event
table with the rmon event command.
■ When you create an entry, 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) are
identical to those of the existing alarm entry, the system considers their
configurations the same and the creation fails.
■ You can create up to 50 pri-alarm entries.
■ The rising alarm and falling alarm are alternate.
Example # 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 to get the
percentage of broadcasts received on Ethernet 1/0 in the total packets. When this
ratio reaches or is bigger than the rising threshold of 50, trigger event 1; when this
ratio reaches or drops under the falling threshold, trigger event 2. Set the lifetime
of the entry to forever and owner to user 1.
<Sysname> system-view
[Sysname] rmon event 1 log
[Sysname] rmon event 2 none
[Sysname] interface ethernet 1/0
[Sysname-Ethernet1/0] rmon statistics 1
[Sysname-Ethernet1/0] quit
[Sysname] rmon prialarm 5 (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) packet Ethernet1/0 10 absolute rising_threshold 50
1 falling_threshold52entrytype forever owner user1
# Remove private alarm entry 10.
<Sysname> system-view
[Sysname] undo rmon prialarm 10