RMON Configuration Example 945
RMON Configuration 
Example
Network requirements
Agent is connected to a configuration terminal through its console port and to a 
remote NMS across the Internet.
Create an entry in the RMON Ethernet statistics table to gather statistics on 
GigabitEthernet 1/0/1, and logging is enabled after received bytes exceed the 
specified threshold.
Network diagram
Figure 276   Network diagram for RMON (on a switch)
 
Configuration procedure
# Configure RMON to gather statistics for interface GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 1/0/1
[Sysname-GigabitEthernet 1/0/1] rmon statistics 1 owner user1-rmon
[Sysname-GigabitEthernet 1/0/1] quit 
# Display RMON statistics for interface GigabitEthernet 1/0/1.
<Sysname> display rmon statistics GigabitEthernet 1/0/1
Statistics entry 1 owned by user1-rmon is VALID.
Interface : GigabitEthernet1/0/1<ifIndex.1>
etherStatsOctets : 0 , etherStatsPkts : 0
etherStatsBroadcastPkts : 0 , etherStatsMulticastPkts : 0
etherStatsUndersizePkts : 0 , etherStatsOversizePkts : 0
etherStatsFragments : 0 , etherStatsJabbers : 0
etherStatsCRCAlignErrors : 0 , etherStatsCollisions : 0
etherStatsDropEvents (insufficient resources): 0
Packets received according to length:
64 : 0 , 65-127 : 0 , 128-255 : 0
256-511: 0 , 512-1023: 0 , 1024-1518: 0
# Create an event to start logging after the event is triggered.
<Sysname> system-view
[Sysname] rmon event 1 log owner 1-rmon 
Display RMON event log 
information 
display rmon eventlog 
[ event-number ] 
Available in any 
view
To do…  Use the command…  Remarks 
Terminal
Agent
NMS
Console 
Server
GE 1/0/1
Eth1/1
1.1.1.1/24
1.1.1.2/24