Problem in v2 and v3 support....
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi All, I am using net-snmp-5.0.7--> successfully compiled and running fine. I compiled it for v3 support with openssl. It worked for v2 testing.. as shown below : snmpget -c broadcom -v 2c 192.168.31.14 system.sysUpTime.0 DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (17647) 0:02:56.47 I have few problems. when I try to test for v3, my command goes as below : snmpget -v 3 -u myuser -l authNoPriv -a MD5 -A my_password 192.168.31.14 sysUpTime.0 snmpget: Authentication failure (incorrect password, community or key) (Sub-id not found: iso -> sysUpTime) I tried mentioning community name also. snmpget -c broadcom -v 3 -u myuser -l authNoPriv -a MD5 -A my_password 192.168.31.14 sysUpTime.0 snmpget: Authentication failure (incorrect password, community or key) (Sub-id not found: iso -> sysUpTime) I couldn't make it why it is happening so? I used following command to create a user : net-snmp-config --create-snmpv3-user -a "my_password" myuser My /usr/local/share/snmp/snmpd.conf file looks like as shown below. -------------snmpd.conf----------begins-------------- # sec.name source community com2sec readable default broadcom com2sec writable default broadcom com2sec readable default bcm #com2sec readable default public #com2sec writable default broadcom # Second, map the security name into a group name: # groupName securityModel securityName group ROGroup v1 readable group ROGroup v2c readable group ROGroup usm readable group RWGroup v1 writable group RWGroup v2c writable group RWGroup usm writable group RWGroup v1 brcm group RWGroup v2c brcm group RWGroup usm brcm #### # Third, create a view for us to let the group have rights to: # name incl/excl subtree mask(optional) view all included .1 # Finally, grant the group read-only access to the systemview view. # group context sec.model sec.level prefix read write notif access ROGroup "" any noauth exact all none none access RWGroup "" any noauth exact all all none #Configure the trap managers and trap community trapcommunity broadcom #trapcommunity broadcom #Configure the IP address of the managers required to receive the traps trapsink 192.168.31.121 trap2sink 192.168.31.121 rwuser myuser -------------snmpd.conf----------ends-------------- Please help me out for the same. please dont ask me to use other versions of net-snmp, as I am facing lots of problem while compiling for my board. Thanx in Advance.... Regards, Raghavendra. S