Feature #14459
closedSNMP obsolete 32bit counters
0%
Description
Hi,
We have 10G interfaces and we are trying to monitor speed on them with SNMP. Values are stored in 32-bit counters and they overflow every few seconds and there is no 64-bit alternative.
32bit is not sufficient for gigabit+ interfaces. When the counter overflows every few seconds, we cannot monitor it properly.
snmpwalk -v 3 -l authPriv -a SHA -A pass -u user -x AES -X pass ip 1.3.6.1.2.1.2.2.1.10
IF-MIB::ifInOctets.1 = Counter32: 3879404252
IF-MIB::ifInOctets.2 = Counter32: 3651224253
IF-MIB::ifInOctets.3 = Counter32: 686485471
IF-MIB::ifInOctets.4 = Counter32: 906187
IF-MIB::ifInOctets.5 = Counter32: 0
IF-MIB::ifInOctets.6 = Counter32: 410666448
Is is possible to change it to 64bit?
Updated by Jim Pingle over 2 years ago
- Status changed from New to Not a Bug
If you use the appropriate high capacity (HC) OIDs for 64-bit counters they are there:
: snmpwalk -v 2c -c public x.x.x.x ifHCInOctets IF-MIB::ifHCInOctets.1 = Counter64: 2055498142 IF-MIB::ifHCInOctets.2 = Counter64: 0 IF-MIB::ifHCInOctets.3 = Counter64: 0 IF-MIB::ifHCInOctets.4 = Counter64: 0 IF-MIB::ifHCInOctets.5 = Counter64: 0 IF-MIB::ifHCInOctets.6 = Counter64: 0 IF-MIB::ifHCInOctets.7 = Counter64: 3216000 IF-MIB::ifHCInOctets.8 = Counter64: 0 IF-MIB::ifHCInOctets.9 = Counter64: 0 IF-MIB::ifHCInOctets.10 = Counter64: 602316 IF-MIB::ifHCInOctets.11 = Counter64: 6656 IF-MIB::ifHCInOctets.12 = Counter64: 1957086060