Re: [pysnmp-users] unknownEngineID error
Brought to you by:
elie
From: Ilya E. <il...@gl...> - 2007-05-16 09:57:16
|
That error might mean that your SNMP engine fails to discover peer SNMP engine for some reason. In attempt to figure out the cause I'd suggest enabling SNMP security module debugging by adding the following in the beginning of your script: from pysnmp import debug debug.setLogger(debug.Debug('secmod')) That would enable stderr reporting. I'd appreciate you sending me the output for a single failed GETNEXT session. Also, try using pysnmp code from CVS -- there were some minor fixes, though I'm not sure how relevant they are to this problem. BTW, does pysnmpwalk tool (from pysnmp-apps package) fails in the same way? -ilya > I'm using pysnmp v4 to interact with a network device using SNMPv3. > I can successfully make queries using the snmp command. However > following the examples available in the Documentation I get the > following error: unknownEngineID > > Here is the relevant code: > > errorIndication, errorStatus, errorIndex, varBindTable = > cmdgen.CommandGenerator().nextCmd( > cmdgen.UsmUserData('user', 'xxxx', > 'xxxx',cmdgen.usmHMACSHAAuthProtocol, cmdgen.usmDESPrivProtocol), > cmdgen.UdpTransportTarget(('192.168.2.1',161)), > (1,3,6,1,2,1,1) > ) > > print errorStatus > print errorIndication > > for varBindTableRow in varBindTable: > print varBindTableRow > > And the output is: > 0 > unknownEngineID > > If I do the same query using the snmpwalk command it behaves as > expected. > (snmpwalk -v3 -l authPriv -u user -x DES -a SHA -A xxxx -X xxxx > 192.168.2.1 1.3.6.1.2.1.1) > > So.. anybody can explain me what that error is? |