Hi,
I found that net-snmp will output a nonsense name if there's an anonymous
node in the path. For example, if you add
+--
+-- An object defined with an anonymous intermeidate node
+-- for testing object output in "-On" mode
+--
+
+netSnmpExampleAnonymousIntermediateNode OBJECT IDENTIFIER
+ ::= { netSnmpExamples 42 2 }
+
to NET-SNMP-EXAMPLES-MIB, and then "snmptranslate netSnmpExamples.42.1",
you get "NET-SNMP-EXAMPLES-MIB::42.1", which is not an object. I have a
small patch at
https://github.com/fenner/net-snmp/commit/37d2e018254806ccbd9d84e75c594bbed35708d7
which fixes my example, but I want to make sure that it doesn't have any
bad side effects.
I imagined writing a test that exercises all of the output options (-Of,
-On, -Os, -OS, -Ou) for both netSnmpExampleAnonymousIntermediateNode
and netSnmpExamples.42.1. Does anyone have any other suggestions of what
to test?
Thanks,
Bill
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders