Menu

#2834 Unknown Object Identifier (Index out of range: 4194312704 (ifIndex))

linux
closed
nobody
None
5
2018-03-22
2018-03-12
Josef Ridky
No

The command:
snmpwalk -v2c -c communityname 172.16.4.4 .1.3.6.1.2.1.31.1.1.1.10.4194312704
fails with output
.1.3.6.1.2.1.31.1.1.1.10.4194312704: Unknown Object Identifier (Index out of range: 4194312704 (ifIndex))

This issue has been reported before [1].

Patch from [1] is already used, but the issue is still presented. I am not sure, if the reason for this error message is the same as in [1], or if I just missed something.

Affected version: net-snmp-5.7.3

Current workaround:
snmpwalk -v2c -c communityname -Ir 172.16.4.4 .1.3.6.1.2.1.31.1.1.1.10.4194312704

[1] https://sourceforge.net/p/net-snmp/bugs/2324/

Discussion

  • Niels Baggesen

    Niels Baggesen - 2018-03-16

    This is expected behaviour. You are entering an ifIndex which is out of range according to the IF-MIB, so the parser complains.

    There are two possibilities to get around this, and you have already found one: using -Ir on the command line. The other possibility is to stop the tools from loading IF-MIB, so they do not know about the ifIndex OID and its limitations. We are just trying to be helpful.

     
  • Josef Ridky

    Josef Ridky - 2018-03-16

    Thanks for clarificaton. I was a bit confused due in agent/mibgroup/util_funcs.c in method parse_miboid is comment

    Subidentifiers are unsigned values, up to 2^32-1

    and I have overlooked the limitation for Integer32 variables in IF-MIB.txt.

    So you can close this as not a bug.
    Thanks again for the answer.

     
  • Bill Fenner

    Bill Fenner - 2018-03-22
    • status: open --> closed
     

Log in to post a comment.