
117
[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
1.3.6.1.2.1.16.1.1.1.6.1 is the OID of the node etherStatsBroadcastPkts.1, and 1.3.6.1.2.1.16.1.1.1.5.1 is the
OID of the node etherStatsPkts.1. 1 indicates the serial number of the interface statistics entry. Therefore,
if you execute the
rmon
statistics 5
command, you should use 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.
The above configuration implements the following:
•
Sampling and monitoring interface GigabitEthernet1/0/1
•
If the portion of broadcast packets received in the total packets is greater than or equal to 80%, the
system will log the event; if the portion is less than or equal to 5%, the system takes no action.
To view the event log, use the
display rmon eventlog
command.
rmon statistics
Syntax
rmon statistics
entry
-
number
[
owner
text
]
undo rmon statistics
entry
-
number
View
Layer 2 Ethernet port view, Layer 3 Ethernet port view
Default level
2: System level
Parameters
entry
-
number
: Specifies the index of statistics entry, which ranges from 1 to 65535.
owner
text
: Specifies the owner of the entry, a string of case-sensitive 1 to 127 characters that can contain
spaces.
Description
Use the
rmon statistics
command to create an entry in the RMON statistics table.
Use the
undo rmon statistics
command to remove a specified entry from the RMON statistics table.
When an entry is created, the system continuously calculates the information of the interface. Statistics
include number of collisions, CRC alignment errors, and number of undersize or oversize packets,
number of broadcasts, number of multicasts, number of bytes received, number of packets received. The
statistics are cleared after the device reboots.
To display information for the RMON statistics table, use the
display rmon statistics
command.
NOTE:
•
Only one statistics entry can be created on one interface.
•
Up to 100 statistics entries can be created.
Examples
# Create an entry with an index 20 and the owner
user1
in the RMON statistics table for interface
GigabitEthernet1/0/1.