221
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)
BroadcastPktsRatioOfGE1/0/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
rmon statistics
Use
rmon statistics
to create an entry in the RMON statistics table.
Use
undo rmon statistics
to remove an entry from the RMON statistics table.
Syntax
rmon statistics
entry
-
number
[
owner
text
]
undo rmon statistics
entry
-
number
Default
No entry exists in the RMON statistics table.
Views
Ethernet interface view
Predefined user roles
network-admin
mdc-admin
Parameters
entry
-
number
: Specifies a statistics entry index in the range of 1 to 65535.