Re: [pysnmp-users] PySNMP 4.3.1 strange prettyPrint() output
Brought to you by:
elie
From: Wei W. <ww...@9r...> - 2015-11-19 16:22:13
|
I added a couple of lines to the spot where the SmiError is raised and got this on my console: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/pysnmp/smi/rfc1902.py", line 727, in resolveWithMib self.__args[1] = self.__args[0].getMibNode().getSyntax().clone(self.__args[1]) File "/usr/local/lib/python2.7/dist-packages/pysnmp/proto/rfc1902.py", line 187, in clone self, value, tagSet, subtypeSpec, encoding, binValue, hexValue File "/usr/local/lib/python2.7/dist-packages/pyasn1/type/univ.py", line 328, in clone value, tagSet, subtypeSpec, encoding, binValue, hexValue File "/usr/local/lib/python2.7/dist-packages/pyasn1/type/univ.py", line 312, in __init__ base.AbstractSimpleAsn1Item.__init__(self, value, tagSet, subtypeSpec) File "/usr/local/lib/python2.7/dist-packages/pyasn1/type/base.py", line 75, in __init__ self._verifySubtypeSpec(value) File "/usr/local/lib/python2.7/dist-packages/pyasn1/type/base.py", line 33, in _verifySubtypeSpec raise c('%s at %s' % (i, self.__class__.__name__)) PyAsn1Error: ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(), ValueSizeConstraint(0, 65535)), ValueSizeConstraint(3, 3)) failed at: "ValueSizeConstraint(3, 3) failed at: "US "" at OctetString So, it look that my suspicion was correct: There is a size constraint of 3 on the data, the pyasn1/type/base.py module did not like the 5-byte data it received. |