On 04/18/16 11:15, Dan Miller wrote:

On 04/15/16 16:55, Wes Hardaker wrote:
Dan Miller <d...@anacominc.com> writes:

to get V3 commands working; however, none get any responses.  Even noAuthUser does not work:

snmpget -v 3 -n none -u noAuthUser -l noAuthNoPriv test.net-snmp.org
sysUpTime
I'll have to look at the noAuthUser user setup, but the others work
fine:

# snmpgetnext -v 3 -u MD5User -a MD5 -A "The Net-SNMP Demo Password" -l authNoPriv test.net-snmp.org sysUpTime
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (12131402) 1 day, 9:41:54.02
Unfortunately, that doesn't work for me either:

derelict@derbuntunet:~$ snmpget -v 3 -n none -u MD5User -a MD5 -A "The Net-SNMP Demo Password" -l authNoPriv test.net-snmp.org sysUpTime
snmpget: Timeout (Sub-id not found: (top) -> sysUpTime)

derelict@derbuntunet:~$ snmpgetnext -v 3 -n none -u MD5User -a MD5 -A "The Net-SNMP Demo Password" -l authNoPriv test.net-snmp.org sysUpTime
snmpgetnext: Timeout (Sub-id not found: (top) -> sysUpTime)

derelict@derbuntunet:~$ snmpgetnext -v 3 -n none -u MD5User -a MD5 -A "The Net-SNMP Demo Password" -l authNoPriv test.net-snmp.org 1.3.6.1.2.1.1.3
snmpgetnext: Timeout

derelict@derbuntunet:~$ cat .snmp/snmpd.conf
rouser noAuthUser
rouser MD5User
rwuser MD5DESUser

When monitoring with wireshark, I see the get-request packets go out, but never see anything coming back...

weirder and weirder ... I actually got this to work with my local snmpd... but the passwords aren't correct!!

derelict@derbuntunet:~$ sudo cat /usr/share/snmp/snmpd.conf
[sudo] password for derelict:
createUser noAuthUser
createUser MD5User MD5 "netSnmpDemopw"
createUser MD5DESUser MD5 "netSnmpDemopw" DES

derelict@derbuntunet:~$ snmpget -v 3 -u MD5User -a MD5 -A "netSnmpDemopw" -l authNoPriv 127.0.0.1 1.3.6.1.2.1.1.3.0
snmpget: Authentication failure (incorrect password, community or key)

derelict@derbuntunet:~$ snmpget -v 3 -u MD5User -a MD5 -A "The Net-SNMP Demo Password" -l authNoPriv 127.0.0.1 1.3.6.1.2.1.1.3.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (364684) 1:00:46.84

So it works with the external net-snmp password, but *not* with the password that I specified in the persistent snmpd.conf file...
BTW, I *had* to run snmpd as root, or it wouldn't load....



Virus-free. www.avast.com
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to