NET-SNMP version: 5.4.3
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.
Log in to post a comment.