Re: [pysnmp-users] Debugging SNMPv3 processing
Brought to you by:
elie
From: Ilya E. <il...@gl...> - 2007-11-16 07:28:46
|
> I'm Using PySNMP 4.1.8a and am trying to debug a problem with processing > of SNMPv3 trap/inform PDUs or lack thereof with little success. > > My application is asynchronous and the examples and tutorial both > mention calls to runDispatcher() periodically, which is noted terminates > when there are no pending requests. Assuming your application is trap receiver, make sure you register a dummy "job" to snmp engine before running dispatcher: snmpEngine.transportDispatcher.jobStarted(1) # this job would never finish snmpEngine.transportDispatcher.runDispatcher() This would not let runDispatcher() ever finish. > I've enabled debugging, however I'm not seeing any 'DBG: receiveMessage' > messages that I receive when I run the example trapd code with debugging. Do you in fact receive messages? Or it's rather a debugging issue? Have you enabled all debug categories like this: debug.setLogger(debug.Debug('all')) ? > Am I missing something? Is there something I should be using instead in > order to receive traps? Take a look at pysnmp/examples/v3arch/manager/ntfrcv.py script. -ilya |