Symptom
Running an snmpwalk or snmp polling and not seeing an increase under sub-interface bytes counter:
# snmpwalk -v 2c -c test x.x.x.x ifHCInOctets.8
IF-MIB::ifHCInOctets.8 = Counter64: 9223465889206250893 <<<< Byte counter does not increase
# snmpwalk -v 2c -c test x.x.x.x ifHCInUcastPkts.8
IF-MIB::ifHCInUcastPkts.8 = Counter64: 600 <<<< Packet counter increases
# snmpwalk -v 2c -c test 10.48.77.204 ifHCInOctets.8
IF-MIB::ifHCInOctets.8 = Counter64: 9223465889206250893 <<<< Byte counter does not increase
# snmpwalk -v 2c -c test 10.48.77.204 ifHCInUcastPkts.8
IF-MIB::ifHCInUcastPkts.8 = Counter64: 761 <<<< Packet counter increases
Conditions
Having a sub-interface configured on an IOS-XE device
Using SNMP to poll byte counters data
Known impacted MIB:
- IF-MIB::ifHCInOctets
- IF-MIB::ifHCOutOctets
Workaround
Use CLI alternative:
show vlans dot1q XXX
Further Problem Description
Problem not seen on 17.3.2