Hello Sir/Madam
From past few days I’m trying hard to configure snmpv3 . These are the things I have tried:
1) I downloaded net-snmp-5.7.0-1.x86.exe
2) Then I configured using snmpconf –g basic_setup through the command line.
3) For snmpv3 I created users like raj with noauth(no authentication) and many more users with auth and priv
4) After which the snmpd.conf file will be created in the c:/usr/bin directory, I copied and pasted it in C:/usr/etc/snmp
5) Then I tried the following in the command prompt: c:/usr/bin>snmpget –v 3 –l noAuthNoPriv –u raj localhost sysUpTime.0
6) I got the output as : snmpget: unknown user
So please help me what to do next.
how to configure snmpv3 on net snmp?
Moderators: Developers, Moderators
-
- Posts: 3
- Joined: Tue Nov 15, 2011 5:29 am
Re: how to configure snmpv3 on net snmp?
finally got it. after you install net-snmp-5.7.0-1.x86.exe go to command prompt
c:/usr/bin>snmpconf -g basic_setup
then create snmpv3 users .for example raj noauth, shankar auth,...
then a snmpd.conf file is created in bin folder. cut paste it in etc/snmp/
then stop the net-snmp agent and edit the snmpd.conf file from usr/snmp/persist/
write the following line:
createUser shankar MD5 mysecretpass
then restart the net-snmp agent. go to usr/snmp/persist/snmpd.conf , it will ask you to reload. click yes. then go to command prompt c:/usr/bin>snmpget -v 3 -l auth -u shankar -a MD5 -A mysecretpass localhost .1.3.6.1.2.1.1.1.0. this will give the desired output.
see that when using the -> createUser shankar MD5 mysecretpass
user shankar is already created during snmpconf -g basic_setup . here mysecretpass is the password and MD5 is the authentication protocol
c:/usr/bin>snmpconf -g basic_setup
then create snmpv3 users .for example raj noauth, shankar auth,...
then a snmpd.conf file is created in bin folder. cut paste it in etc/snmp/
then stop the net-snmp agent and edit the snmpd.conf file from usr/snmp/persist/
write the following line:
createUser shankar MD5 mysecretpass
then restart the net-snmp agent. go to usr/snmp/persist/snmpd.conf , it will ask you to reload. click yes. then go to command prompt c:/usr/bin>snmpget -v 3 -l auth -u shankar -a MD5 -A mysecretpass localhost .1.3.6.1.2.1.1.1.0. this will give the desired output.
see that when using the -> createUser shankar MD5 mysecretpass
user shankar is already created during snmpconf -g basic_setup . here mysecretpass is the password and MD5 is the authentication protocol
Who is online
Users browsing this forum: No registered users and 1 guest