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
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.
Thanks for clarificaton. I was a bit confused due in agent/mibgroup/util_funcs.c in method parse_miboid is comment
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.