Article ID: 5434
Products
DFE
Protocols/Features
RMON
Commands
'clear rmon stats'
Symptoms
Cannot clear rmon statistics
Cause
The operation of the '
' commands can be confusing, and is not clearly documented in the
Configuration Guides.
From a user perspective, clearing an RMON stats entry causes it to disappear from any future RMON queries, and restoring to defaults causes it to reappear - with all of the accumulated statistics it originally had, plus any additional activity since then.
An example of such a management session follows: Matrix N3 Platinum(su)->
show version
Copyright (c) 2004 by Enterasys Networks, Inc.
Slot Model Serial # Versions
------ ---------------- -------------------- -------------
1 7H4382-49 031800153248 Hw: 4
Bp: 01.00.05
Fw: 04.11.16
2 7G4270-12 03130018320A Hw: 2
Bp: 01.00.05
Fw: 04.11.16
Matrix N3 Platinum(su)->
show rmon stats fe.1.11
Port: fe.1.11
--------------------
Index = 1011
Owner = monitor
Data Source = 1.3.6.1.2.1.2.2.1.1.11011
Drop Events = 0 Packets = 269690
Collisions = 0 Octets = 24486240
Jabbers = 0 0 - 64 Octets = 182817
Broadcast Pkts = 42729 65 - 127 Octets = 72164
Multicast Pkts = 197603 128 - 255 Octets = 8206
CRC Errors = 0 256 - 511 Octets = 694
Undersize Pkts = 0 512 - 1023 Octets = 4360
Oversize Pkts = 3 1024 - 1518 Octets = 23
Fragments = 0
Matrix N3 Platinum(su)->
clear rmon stats 1011
Matrix N3 Platinum(su)->
show rmon stats fe.1.11
Matrix N3 Platinum(su)->
clear rmon stats to-defaults
Matrix N3 Platinum(su)->
show rmon stats fe.1.11
Port: fe.1.11
--------------------
Index = 1011
Owner = monitor
Data Source = 1.3.6.1.2.1.2.2.1.1.11011
Drop Events = 0 Packets = 269780
Collisions = 0 Octets = 24492806
Jabbers = 0 0 - 64 Octets = 182876
Broadcast Pkts = 42734 65 - 127 Octets = 72193
Multicast Pkts = 197678 128 - 255 Octets = 8208
CRC Errors = 0 256 - 511 Octets = 694
Undersize Pkts = 0 512 - 1023 Octets = 4360
Oversize Pkts = 3 1024 - 1518 Octets = 23
Fragments = 0
Matrix N3 Platinum(su)->
The structure of the RMON tables consists of the underlying data maintained by the hardware; and the overlying table structures maintained by the firmware, which may be used to access the underlying data.
The '
' commands manipulate the table structure, while having no effect upon the underlying data:
With earlier firmware, it is not possible to clear the underlying RMON data, short of rebooting the DFE System (
5233 does not apply).
Solution
To clear RMON statistics for a port; upgrade to firmware 5.31.17 or higher, and use the '
code:clear rmon stats counters
<port
>' command. Matrix N3 Platinum(su)->
clear rmon stats counters fe.1.11
Matrix N3 Platinum(su)->
Firmware 5.31.17 release notes state, in the '
code:Changes made in 5.31.17
' section:
code:This version allows for the zeroing of the stats counters when using RMON. A CLI command 'clear rmon stats counters' has been created to allow counters to be cleared. This feature has been introduced to aid debugging.
Pre-upgrade workarounds:
- Use an external management tool, such as NetSight Atlas' Device Manager. After right-clicking a port, you can go into
RMON Ethernet Statistics
, and view them with either a "Poll
", "Delta
", or "Accumulate
" option. The latter two options display from an assumed zero count.
- If seeking a recent history of traffic, the '
show rmon history
' command should be helpful.