snmpget doesn't work while snmpwalk works for the same MIB

book

Article ID: 167914

calendar_today

Updated On:

Products

XOS

Issue/Introduction

snmpget for oid >= 2048 for IF-MIB::ifOutErrors fails to respond and results in an error. The issue is fixed in XOS 9.5.3 and above.snmpwalk and snmpgetnext works fine but snmpget gives errors:

------------
snmpwalk
[[email protected]]# snmpwalk -c V1v0S4n6 -v 2c 10.11.69.222 IF-MIB::ifOutOctets
IF-MIB::ifOutOctets.1 = Counter32: 13778948
IF-MIB::ifOutOctets.3 = Counter32: 4890880
.
. ^output removed^
.
IF-MIB::ifOutOctets.2161 = Counter32: 0
IF-MIB::ifOutOctets.2162 = Counter32: 36258590
IF-MIB::ifOutOctets.2163 = Counter32: 32750736
IF-MIB::ifOutOctets.2164 = Counter32: 3760971
IF-MIB::ifOutOctets.2166 = Counter32: 25817350
IF-MIB::ifOutOctets.2168 = Counter32: 0
IF-MIB::ifOutOctets.2169 = Counter32: 0
IF-MIB::ifOutOctets.2170 = Counter32: 41920941
IF-MIB::ifOutOctets.2171 = Counter32: 33200784
IF-MIB::ifOutOctets.2172 = Counter32: 7203862
IF-MIB::ifOutOctets.2173 = Counter32: 0
IF-MIB::ifOutOctets.2174 = Counter32: 0
IF-MIB::ifOutOctets.2175 = Counter32: 7203862
IF-MIB::ifOutOctets.2176 = Counter32: 0
IF-MIB::ifOutOctets.2177 = Counter32: 0
IF-MIB::ifOutOctets.2178 = Counter32: 7562804
IF-MIB::ifOutOctets.2179 = Counter32: 0
IF-MIB::ifOutOctets.2180 = Counter32: 0
IF-MIB::ifOutOctets.2181 = Counter32: 7562804
IF-MIB::ifOutOctets.2182 = Counter32: 0
IF-MIB::ifOutOctets.2183 = Counter32: 0

======
snmpgetnext

[[email protected]]# snmpgetnext -c V1v0S4n6 -v 2c 10.11.69.222 IF-MIB::ifOutOctets.2163
IF-MIB::ifOutOctets.2164 = Counter32: 3760971

======
snmpget

[[email protected]]# snmpget -c V1v0S4n6 -v 2c 10.11.69.222 IF-MIB::ifOutOctets.2164
IF-MIB::ifOutOctets.2164 = No Such Instance currently exists at this OID

[[email protected]]# snmpget -c V1v0S4n6 -v 2c 10.11.69.222 IF-MIB::ifOutOctets.2163
IF-MIB::ifOutOctets.2163 = No Such Instance currently exists at this OID

Cause

SNMP daemon fails to respond on queries when polled using snmpget for IF-MIB::ifOutErrors when ID is >= 2048 whilst it lists same OIDs when queried using snmpwalk

Resolution

The fix for the issue has been implemented in XOS versions 9.5.3 and above.

Workaround

N/A