![Huawei Quidway S9300 Configuration Manual - Network Management Download Page 138](http://html.mh-extra.com/html/huawei/quidway-s9300/quidway-s9300_configuration-manual-network-management_169487138.webp)
# Configure the Switch to record logs for RMON event 1, and send trap messages to the NMS
for event 2.
[Switch]
rmon event 1 log owner Test300
[Switch]
rmon event 2 description forUseofPrialarm trap public owner Test300
Step 7
Configure the alarmTable.
# Set the sampling interval and the threshold for triggering event 1 (OID is
1.3.6.1.2.1.16.1.1.1.6.1).
[Switch]
rmon alarm 1 1.3.6.1.2.1.16.1.1.1.6.1 30 absolute rising-threshold 500 1
falling-threshold 100 1 owner Test300
Step 8
Configure the prialarmTable.
# Configure RMON to perform sampling every 30 seconds for the total number of broadcast
and multicast packets in the ethernetStatsTable. If the delta sampled value is larger than the
maximum threshold value 1000 or less than the minimum threshold value 0, event 2 is triggered,
and trap messages are sent to the NMS.
[Switch]
rmon prialarm 1 .1.3.6.1.2.1.16.1.1.1.6.1+.1.3.6.1.2.1.16.1.1.1.7.1
sumofbroadandmulti 30 delta rising-threshold
1000 2 falling-threshold 0 2 entrytype forever owner Test300
Step 9
Verify the configuration.
# Check the effect of configurations. You can check traffic statistics on the subnet in real time.
<Switch>
display rmon statistics gigabitethernet 3/0/0
Statistics entry 1 owned by Test300 is VALID.
Interface : GigabitEthernet3/0/0<ifEntry.402653698>
Received :
octets :142915224 , packets :1749151
broadcast packets :11603 , multicast packets:756252
undersized packets :0 , oversized packets:0
fragments packets :0 , jabbers packets :0
CRC alignment errors:0 , collisions :0
Dropped packet (insufficient resources):1795
Packets received according to length (octets):
64 :150183 , 65-127 :150183 , 128-255 :1383
256-511:3698 , 512-1023:0 , 1024-1518:0
# Check the effect of configurations. Only the last sampling record is displayed through the
command lines. To display all the history records, you need special NMS software.
<Switch>
display rmon history gigabitethernet 3/0/0
History control entry 1 owned by Test300 is VALID,
Samples Interface :GigabitEthernet3/0/0<ifEntry.402653698>
Sampling interval :30(sec) with 10 buckets max.
Lastest Sampling time :0days 00h:19m:43s
Latest sampled values:
Dropevents :0 , octets :645
Packets :7 , broadcast packets :7
multicast packets:0 , CRC alignment errors :0
undersize packets:6 , oversize packets :0
fragments :0 , jabbers :0
collisions :0 , utilization :0
# Verify the configuration.
<Switch>
display rmon event
Event table 1 owned by Test300 is VALID.
Description: null.
Will cause log when triggered, last triggered at 0days 00h:24m:10s.
Event table 2 owned by Test300 is VALID.
Description: forUseofPrialarm.
Will cause snmp-trap when triggered, last triggered at 0days 00h:26m:10s.
2 RMON and RMON2 Configuration
Quidway S9300 Terabit Routing Switch
Configuration Guide - Network Management
2-18
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 03 (2010-09-20)