[pysnmp-users] unknownEngineID error
Brought to you by:
elie
From: Paulo F. A. <pf...@me...> - 2007-05-15 19:46:24
|
Hi, 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? Thank you for your time, Paulo F. Andrade 52439@IST mailto: pf...@me... |