171
Examples
# Add a permanent private alarm entry to monitor the ratio of incoming broadcasts to the total
number of incoming packets on FortyGigE 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 fortygige 1/0/1
[Sysname-FortyGigE1/0/1] rmon statistics 1
[Sysname-FortyGigE1/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)
BroadcastPktsRatioOfFGE1/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
Parameters
entry
-
number
: Specifies a statistics entry index in the range of 1 to 65535.
owner text
: Specifies the entry owner, a case-sensitive string of 1 to 127 characters.
Usage guidelines
Each RMON statistics table entry provides a set of cumulative traffic statistics collected up to the
present time for an interface. Statistics include number of collisions, CRC alignment errors, number
of undersize or oversize packets, number of broadcasts, number of multicasts, number of bytes
received, and number of packets received. The statistics are cleared at a reboot.