Closed AdamPiorko closed 6 years ago
Hey,
I made a quick addition that enables this in commit #4b7f89ef snmp.addOIDHandler(".1.3.6.1.2.1.1.2.0", ".1.3.6.1.4.1.14988.1");
Let me know if it works.
Something is wrong. snmp.addOIDHandler(".1.3.6.1.2.1.1.2.0", ".1.3.6.1.4.1.14988.1"); responds snmpget -v 1 -c public 192.168.2.186 1.3.6.1.2.1.1.2.0 iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.14988.1
snmp.addOIDHandler(".1.3.6.1.2.1.1.2.0", ".1.3.6.1.4.1.52421.1"); responds snmpget -v 1 -c public 192.168.2.186 1.3.6.1.2.1.1.2.0 iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.3269.1
Hey, I noticed this too, it was a problem with the way I was encoding the ASN.1 packets. Fixed in commit: #229a7fccf
It works. Thank you.
Will there be an addOIDHandler function added? I need to return information on question 1.3.6.1.2.1.1.2.0 which requires the OID data type.
For example: snmpget -v 1 -c public 1.3.6.1.2.1.1.2.0
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.14988.1