214
is crossed. The value range for the event-entry2 argument is 0 to 65535. If 0 is specified, the alarm
does not trigger any event.
forever: Configures the entry as a permanent entry. RMON retains a permanent private alarm entry
until it is manually deleted.
cycle cycle-period: Sets the lifetime of the entry, in the range of 0 to 4294967 seconds. RMON
deletes the entry when its lifetime expires.
owner text: Specifies the entry owner, a case-sensitive string of 1 to 127 characters.
Usage guidelines
You can create a maximum of 50 private alarm entries.
Each alarm entry must have a unique alarm variable, sampling interval, sample type, rising
threshold, or falling threshold. You cannot create an alarm entry if all these parameters for the entry
are the same as an existing entry.
To trigger the event associated with an alarm condition, you must create the event with the rmon
event command.
The RMON agent samples variables and takes an alarm action based on a private alarm entry as
follows:
1. Periodically samples the variables specified in the private alarm formula.
2. Processes the sampled values with the formula.
3. Compares the calculation result with the predefined thresholds, and then takes one of the
following actions:
Triggers the event associated with the rising alarm event if the result is equal to or greater
than the rising threshold.
Triggers the event associated with the falling alarm event if the result is equal to or less than
the falling threshold.
Examples
# Add a permanent private alarm entry to monitor the ratio of incoming broadcasts to the total
number of incoming packets on GigabitEthernet 1/0/1. Log the rising alarm event when the ratio
exceeds 80%, and take no actions when the ratio drops to 5%. The formula is
(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), where 1.3.6.1.2.1.16.1.1.1.6.1 is the OID of
the object instance etherStatsBroadcastPkts.1, and 1.3.6.1.2.1.16.1.1.1.5.1 is the OID of the object
instance etherStatsPkts.1.
<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
[Sysname-GigabitEthernet1/0/1] quit
[Sysname] rmon prialarm 1 (.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)
BroadcastPktsRatioOfEth1/1 10 absolute rising-threshold 80 1 falling-threshold 5 2
entrytype forever owner user1
The last number in the OID forms of variables must be the same as the statistics entry index for the
interface. For example, if you execute the rmon statistics 5 command, you must replace
1.3.6.1.2.1.16.1.1.1.6.1 and 1.3.6.1.2.1.16.1.1.1.5.1 with 1.3.6.1.2.1.16.1.1.1.6.5 and
1.3.6.1.2.1.16.1.1.1.5.5, respectively.
Related commands
display rmon prialarm
rmon event