1
21.7 Legacy Series / os-net-snmp plugin reporting incorrect ifHighSpeed
« on: August 18, 2021, 09:56:35 am »
On my virtualized OPNsense installation (XCP-ng) the Net-SNMP plugin (os-net-snmp) is reporting incorrect ifHighSpeed values for my interfaces:
# snmpwalk -v2c -c xxxx 1.1.1.1 | egrep "ifName|ifHighSpeed"
IF-MIB::ifName.1 = STRING: enc0
IF-MIB::ifName.2 = STRING: lo0
IF-MIB::ifName.3 = STRING: pflog0
IF-MIB::ifName.4 = STRING: pfsync0
IF-MIB::ifName.5 = STRING: xn0
IF-MIB::ifName.6 = STRING: xn1
IF-MIB::ifName.7 = STRING: bridge0
IF-MIB::ifHighSpeed.1 = Gauge32: 0
IF-MIB::ifHighSpeed.2 = Gauge32: 0
IF-MIB::ifHighSpeed.3 = Gauge32: 0
IF-MIB::ifHighSpeed.4 = Gauge32: 0
IF-MIB::ifHighSpeed.5 = Gauge32: 10
IF-MIB::ifHighSpeed.6 = Gauge32: 10
IF-MIB::ifHighSpeed.7 = Gauge32: 0
Other instances of net-snmp report a speed of "0" (which I believe in this case would be the correct behaviour as the interface OPNsense/net-snmp is seeing is a virtual one).
# snmpwalk -v2c -c xxxx 1.1.1.1 | egrep "ifName|ifHighSpeed"
IF-MIB::ifName.1 = STRING: enc0
IF-MIB::ifName.2 = STRING: lo0
IF-MIB::ifName.3 = STRING: pflog0
IF-MIB::ifName.4 = STRING: pfsync0
IF-MIB::ifName.5 = STRING: xn0
IF-MIB::ifName.6 = STRING: xn1
IF-MIB::ifName.7 = STRING: bridge0
IF-MIB::ifHighSpeed.1 = Gauge32: 0
IF-MIB::ifHighSpeed.2 = Gauge32: 0
IF-MIB::ifHighSpeed.3 = Gauge32: 0
IF-MIB::ifHighSpeed.4 = Gauge32: 0
IF-MIB::ifHighSpeed.5 = Gauge32: 10
IF-MIB::ifHighSpeed.6 = Gauge32: 10
IF-MIB::ifHighSpeed.7 = Gauge32: 0
Other instances of net-snmp report a speed of "0" (which I believe in this case would be the correct behaviour as the interface OPNsense/net-snmp is seeing is a virtual one).