
113
parameter 1.3.6.1.2.1.16.1.1.1.4.1, where 1 indicates the serial number of the interface statistics entry.
Therefore, if you execute the
rmon
statistics 5
command, you can use etherStatsOctets.5 to replace the
parameter.
The above configuration implements the following:
•
Sampling and monitoring interface GigabitEthernet1/0/1
•
Obtaining the absolute value of the number of received packets. If the total bytes of the received
packets reach 5,000, the system will log the event; if the total bytes of the received packets are no
more than 5, the system will take no action.
rmon event
Syntax
rmon
event
entry-number
[
description
string
] {
log
|
log-trap
log
-
trapcommunity
|
none
|
trap
trap
-
community
} [
owner
text
]
undo rmon event
entry
-
number
View
System view
Default level
2: System level
Parameters
entry-number
: Specifies the event entry index, which ranges from 1 to 65,535.
description
string
: Specifies the event description, a string of 1 to 127 characters.
log
: Logs the event when it occurs.
log-trap
log
-
trapcommunity
: Specifies the log and trap events. The system performs both logging and
trap sending when the event occurs.
log
-
trapcommunity
indicates the community name of the network
management station that receives trap messages, a string of 1 to 127 characters.
none
: Performs no action when the event occurs.
trap
trap
-
community
: Specifies the trap event. The system sends a trap with a community name when the
event occurs.
trap
-
community
specifies the community name of the network management station that
receives trap messages, a string of 1 to 127 characters.
owner
text
: Specifies the owner of the entry, a case-sensitive string of 1 to 127 characters that can contain
spaces.
Description
Use the
rmon event
command to create an entry in the RMON event table.
Use the
undo rmon event
command to remove a specified entry from the RMON event table.
When creating an event entry, you can define the actions that the system takes when the event is
triggered by its associated alarm in the alarm table. The system can log the event, send a trap, do both,
or do neither based on your configuration.
Related commands:
display rmon event
,
rmon alarm
, and
rmon prialarm
.