Configuration Guide RMON Configuration
Log: Record the event.
Trap: Send the Trap message to the NMS when the event is triggered.
community: Community string used for sending the SNMP Trap message.
description-string: Description of the event.
Showing RMON status
RMON Configuration Examples
Example of Configuring Statistics
If you want to get the statistics of Ethernet Port 3, use the following commands:
Ruijie(config)# interface gigabitEthernet 0/3
Ruijie(config-if)# rmon collection stats 1 owner aaa1
Example of Configuring History
Use the following commands if you want to get the statistics of Ethernet Port 3
every 10 minutes:
Ruijie(config)# interface gigabitEthernet 0/3
Ruijie(config-if)# rmon collection history 1 owner aaa1 interval 600
Example of Configuring Alarm and Event
If you want to configure the alarm function for a statistical MIB variable, the
following example shows you how to set the alarm function to the instance
ifInNUcastPkts.6 (number of non-unicast frames received on port 6; the ID of
the instance is 1.3.6.1.2.1.2.2.1.12.6) in IfEntry table of MIB-II. The specific
function is as follows: the switch checks the changes to the number of
non-unicast frames received on port 6 every 30 seconds. If 20 or more than 20
non-unicast frames are added after last check (30 seconds earlier), or only 10
or less than 10 are added, the alarm will be triggered, and event 1 is triggered to
do corresponding operations (record it into the log and send the Trap with
―community‖ name as ―rmon‖). The ―description‖ of the event is ―ifInNUcastPkts
is too much‖). The ―owner‖ of the alarm and the event entry is ―aaa1‖.