Under which circumstances Cisco IOS interface SNMP counters(for example ifHCOutOctets
or ifInErrors
) start from zero? I am aware that clear counters
does not affect SNMP counters. In addition, as far as I know, it is not possible to clear SNMP counters from CLI or with snmpset
. However, reloading the router will. In addition, counter wrap(for example ifOutOctets
will get larger than 4294967295) will cause SNMP counters to start from zero. Are there any other circumstances where Cisco IOS interface SNMP counters can start from zero?
Cisco SNMP – When Do Interface SNMP Counters Start from Zero?
snmp
Related Topic
- Cisco IOS SNMP – When Does the ifCounterDiscontinuityTime Counter Change?
- Cisco IOS – Distinguishing Router Reload from sysUpTime SNMP Counter Wrap
- When Does SNMP Interface Index (ifIndex) Change in Cisco IOS?
- Wrapping of High Capacity (HC) Counters – Ethernet and SNMP
- Juniper EX4200 – Reading SNMP Traffic Counters for Specific VLAN ID
Best Answer
SNMP counters will not be cleared while the device is up. The idea is that the software polling the counters will keep a tally of the current counter and simply looks at the delta since the last poll. See also this Cisco FAQ about SNMP counters, which says: