Re: [Pysnmp-dev] Doubt regarding SNMPv3 Agent setup using PYSNMP
Brought to you by:
elie
From: Ilya E. <il...@gl...> - 2010-11-12 16:41:22
|
Mohammed, Your Manager might be querying using authentication option (e.g. authNoPriv or authPriv) while your Agent does not have a user configured with authentication option enabled. So, doublecheck that. BTW, in your example there seems to be a typo in username - 'test-uset' instead of 'test-user'. -ilya > Just one help needed regarding SNMPv3 set for agent. I > used the example given in the link: > > http://pysnmp.sourceforge.net/examples/4.x/v3arch/agent/cmdrsp.html > > Though v1, v2 are working fine as I have tested with (Free PowerSNMP > Manager) by discovering and sending queries. But when I tried doing so > with SNMPv3 set up by configuring noAuthNoPriv (no authentication, no > privacy), Manager is failing to discover the agent and agent throwing > error while discovery message is being processed on agent. The error is > > Traceback (most recent call last): > > /pysnmp/v4/carrier/asynsock/dispatch.py", line 60, in runDispatcher > > : : : > > : : : > > pysnmp/v4/carrier/asynsock/dgram/base.py", line .., in handle_read > > pysnmp/v4/carrier/base.py", line .., in _cbFun > > pysnmp/v4/entity/engine.py", line .., in __receiveMessageCbFun > > pysnmp/v4/proto/rfc3412.py", line ..., in receiveMessage > > pysnmp/v4/proto/mpmod/rfc3412.py", line ..., in prepareDataElements > > pysnmp/v4/proto/secmod/rfc3414/service.py", line ..., in > processIncomingMsg > > pysnmp/v4/proto/secmod/rfc3414/auth/base.py", line .., in > authenticateIncomingMsg > > ProtocolError: no authentication > > > > I modified the example only for ip address, used no authentication and > no privacy for v3 as shown here: > > config.addV3User( > > snmpEngine, 'test-uset', > > config.usmNoAuthProtocol, None, > > config.usmNoPrivProtocol, None > > ) > > : > > config.addRwUser(snmpEngine, 3, 'test-user', 'noAuthNoPriv', (1,3,6)) # > v3 > > And for discovery, I have used the following configuration on SNMP > Manager (powerSNMP Manager): > SNMP Version: Three > Security-level : None (other options: auth, authpriv) > Username: test-user > > Please have a look and suggest me where I am missing, or let me know if > my setup/configurations are not OK. |