[pysnmp-dev] Error while sending SNMP traps from windows
Brought to you by:
elie
From: Kailash B. <kai...@gm...> - 2012-06-25 11:26:12
|
Hi, I get the following error, when sending SNMP Traps from Windows. The SNMP Traps are generated when Snare agent is started or stopped. 2012-06-25_10:08:45.82091 snmpEngine.transportDispatcher.runDispatcher() 2012-06-25_10:08:45.82092 File "/Library/Python/2.7/site-packages/pysnmp-4.2.3rc2-py2.7.egg/pysnmp/carrier/asynsock/dispatch.py", line 33, in runDispatcher 2012-06-25_10:08:45.83803 poll(timeout and timeout or self.timeout, self.__sockMap) 2012-06-25_10:08:45.86344 File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/asyncore.py", line 151, in poll 2012-06-25_10:08:45.87814 read(obj) 2012-06-25_10:08:45.87818 File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/asyncore.py", line 83, in read 2012-06-25_10:08:45.87826 obj.handle_error() 2012-06-25_10:08:45.87828 File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/asyncore.py", line 79, in read 2012-06-25_10:08:45.87835 obj.handle_read_event() 2012-06-25_10:08:45.87837 File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/asyncore.py", line 438, in handle_read_event 2012-06-25_10:08:45.87956 self.handle_read() 2012-06-25_10:08:45.87962 File "/Library/Python/2.7/site-packages/pysnmp-4.2.3rc2-py2.7.egg/pysnmp/carrier/asynsock/dgram/base.py", line 73, in handle_read 2012-06-25_10:08:45.87988 self._cbFun(self, transportAddress, incomingMessage) 2012-06-25_10:08:45.87990 File "/Library/Python/2.7/site-packages/pysnmp-4.2.3rc2-py2.7.egg/pysnmp/carrier/base.py", line 46, in _cbFun 2012-06-25_10:08:45.90422 self, transportDomain, transportAddress, incomingMessage 2012-06-25_10:08:45.93224 File "/Library/Python/2.7/site-packages/pysnmp-4.2.3rc2-py2.7.egg/pysnmp/entity/engine.py", line 61, in __receiveMessageCbFun 2012-06-25_10:08:45.95121 self, transportDomain, transportAddress, wholeMsg 2012-06-25_10:08:45.96927 File "/Library/Python/2.7/site-packages/pysnmp-4.2.3rc2-py2.7.egg/pysnmp/proto/rfc3412.py", line 406, in receiveMessage 2012-06-25_10:08:45.98982 stateReference 2012-06-25_10:08:46.02192 File "/Library/Python/2.7/site-packages/pysnmp-4.2.3rc2-py2.7.egg/pysnmp/entity/rfc3413/ntfrcv.py", line 46, in processPdu 2012-06-25_10:08:46.04184 PDU = rfc2576.v1ToV2(PDU) 2012-06-25_10:08:46.09506 File "/Library/Python/2.7/site-packages/pysnmp-4.2.3rc2-py2.7.egg/pysnmp/proto/proxy/rfc2576.py", line 111, in v1ToV2 2012-06-25_10:08:46.10565 (v1.apiTrapPDU.getSpecificTrap(v1Pdu),) 2012-06-25_10:08:46.13687 File "/Library/Python/2.7/site-packages/pyasn1/type/univ.py", line 434, in __add__ 2012-06-25_10:08:46.14700 def __add__(self, other): return self.clone(self._value + other) 2012-06-25_10:08:46.16386 File "/Library/Python/2.7/site-packages/pyasn1/type/base.py", line 98, in clone 2012-06-25_10:08:46.19999 return self.__class__(value, tagSet, subtypeSpec) 2012-06-25_10:08:46.24092 File "/Library/Python/2.7/site-packages/pyasn1/type/base.py", line 64, in __init__ 2012-06-25_10:08:46.24100 value = self.prettyIn(value) 2012-06-25_10:08:46.24103 File "/Library/Python/2.7/site-packages/pyasn1/type/univ.py", line 494, in prettyIn 2012-06-25_10:08:46.24132 'Invalid sub-ID in %s at %s' % (value, self.__class__.__name__) 2012-06-25_10:08:46.24143 pyasn1.error.PyAsn1Error: Invalid sub-ID in (1, 3, 6, 1, 4, 1, 311, 1, 13, 1, 5, 83, 78, 65, 82, 69, 0, Integer(105)) at ObjectIdentifier System Detail:- Mac OSX 10.7.3 pysnmp 4.2.3rc2 Any suggestion is appreciated. regards -- Kailash Budhathoki |