#2420 MIB parser fails to parse value definition


NET-SNMP version: 5.4.3
Debian Squeeze

locke:/usr/share/mibs/ietf# snmptranslate .1
No log handling enabled - turning on stderr logging
Bad operator (INTEGER): At line 73 in /usr/share/mibs/ietf/SNMPv2-PDU

Line 73 of MIB (RFC3416):
max-bindings INTEGER ::= 2147483647

I tried submitting this to IETF as an upstream bug, their response "It looks like the submitter wants to change the value definition into a type definition, which to me would be inconsistent with how the the SNMP specification employs max-bindings.'

net-snmp seems to want it to be a type definition with constraint. If changed to:
max-bindings ::= INTEGER (2147483647)

then the MIB parses without that error.

ASN.1 (X.680, http://www.itu.int/rec/dologin_pub.asp?lang=e&id=T-REC-X.680-200811-I!!PDF-E ) has examples of a value definition, consistent with what's in the MIB. See sections 19.4 ("a INTEGER ::= 1"), 22.5, and 50.8.


  • Niels Baggesen

    Niels Baggesen - 2012-11-19

    The Net-SNMP MIB parser is not a complete parser, and it certainly does not handle (and is not meant to handle) this ASN.1 file that defines the SNMP PDU. Our code has no use for being able to parse this, which is also why it is not among the MIB files that we distribute.
    Why do you want to parse this file? I don't think that it contains anything os use for the Net-SNMP tools?

  • Niels Baggesen

    Niels Baggesen - 2012-11-19
    • assigned_to: Niels Baggesen
  • Niels Baggesen

    Niels Baggesen - 2013-03-12
    • status: open --> invalid

Log in to post a comment.