Re: [pysnmp-users] unknownEngineID error
Brought to you by:
elie
From: Ilya E. <il...@gl...> - 2007-05-18 09:57:28
|
Could you please enable 'msgproc' debugging as well: debug.setLogger(debug.Debug('secmod', 'msgproc')) and send me the output? So far I suspect your SNMP Agent may respond from an address endpoint other than you used for sending requests. Thanks, ilya On Thu, 17 May 2007, Paulo F. Andrade wrote: > Hi, > I haven't tried the CVS version yet. > I'm using pysnmp 4.1.7a-1 from debian unstable. > > Here is the script I'm using to test this: > ------------------------- script --------------------------- > #!/usr/bin/python > from pysnmp.entity import engine > from pysnmp.entity.rfc3413.oneliner import cmdgen > from pysnmp import debug > > debug.setLogger(debug.Debug('secmod')) > > usmData = cmdgen.UsmUserData('user', 'XXXX', > 'XXXX',cmdgen.usmHMACSHAAuthProtocol, cmdgen.usmDESPrivProtocol) > udpTransport = cmdgen.UdpTransportTarget(('192.168.249.1',161)) > > errorIndication, errorStatus, errorIndex, varBindTable = > cmdgen.CommandGenerator().nextCmd( > usmData, > udpTransport, > (1,3,6,1,2,1,1) > ) > > print errorStatus > print errorIndication > > for varBindTableRow in varBindTable: > print varBindTableRow > ------------------------- /script --------------------------- [ skipped ] |