Skip to content Skip to sidebar Skip to footer

PySNMP Short OID Error Trying To Translate OIDs Using MIB Textual Conventions

I am using the method described in the issue Translate OID value pairs from MIB textual convention using pysnmp to translate OID and OID values according to MIB Textual Conventions

Solution 1:

I could not locate the NORTEL-ALARM-EXT-MIB therefore I can't reproduce your problem.

In general that error means that the OID you referred to (1.3.6.1.4.1.562.29.6.1.1.1.1) belongs to some SNMP table. That table has index/indices (INDEX clause), one of those indices has a syntax of NnExtAlarmEventType (e.g. INTEGER). But the OID you given is incomplete in the sense that it does not contain all sub-OIDs that encode that index. The solution is to either remove some trailing sub-OIDs or add some more.

Probably pysnmp should be hardened in that regard as well to ignore such situations and returning unparsed part of the OID as-is.

BTW, you may consider trying the latest pysnmp to simplify your code.


Post a Comment for "PySNMP Short OID Error Trying To Translate OIDs Using MIB Textual Conventions"