R3166-R3206-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101

130
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, in the range 0 to 2,147,483,647
seconds.
owner text: Owner of the entry, a string of 1 to 127 characters. It is case sensitive and space is
supported.
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 result is equal to or greater than the rising threshold, triggers the event specified by the
event-entry1 argument.
If the result is equal to or smaller than the falling threshold, 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 fallin
g
threshold
(
threshold-value2
) are identical to those of the existing alarm entry in the system.
You can create up to 50 pri-alarm entries.
Related commands: display rmon prialarm, rmon event, rmon history, and rmon statistics.
Examples
# Monitor the ratio of the broadcast packets received on the interface 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 * 10 0 / .1. 3 . 6 .1. 2 .1.16 .1.1.1. 5 .1) f o r m u l a a n d s a m p l e t h e c o r r e s p o n d i n g v a r i a b l e s a t
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 0/1
[Sysname-GigabitEthernet0/1] rmon statistics 1
[Sysname-GigabitEthernet0/1] quit