Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

is test.net-snmp.org online ??

391 views
Skip to first unread message

Dan Miller

unread,
Apr 15, 2016, 2:51:23 PM4/15/16
to
I've been trying to follow examples on this page:
http://net-snmp.sourceforge.net/tutorial/tutorial-4/commands/snmpv3.html

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

This generates three Get request (according to WireShark) but never any responses...
I'm using Linux 3.13 (Ubuntu) and net-snmp version 5.7.2

Dan Miller


Virus-free. www.avast.com

Ilya Etingof

unread,
Apr 15, 2016, 6:59:59 PM4/15/16
to
You could also try querying demo.snmplabs.com. Credentials information is here:

Dan Miller

unread,
Apr 15, 2016, 7:29:12 PM4/15/16
to
Excellent, thank you!!  I'll try that site
Virus-free. www.avast.com

Dan Miller

unread,
Apr 18, 2016, 2:20:37 PM4/18/16
to


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...


Virus-free. www.avast.com

Dan Miller

unread,
Apr 18, 2016, 2:48:53 PM4/18/16
to

Dan Miller

unread,
Apr 18, 2016, 2:50:56 PM4/18/16
to
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

Wes Hardaker

unread,
Apr 21, 2016, 4:54:47 PM4/21/16
to
Dan Miller <d...@anacominc.com> writes:

> # 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:

It is likely that your firewall is blocking outgoing snmp access?
--
Wes Hardaker
Parsons

------------------------------------------------------------------------------
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-snm...@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Dan Miller

unread,
Apr 21, 2016, 5:06:01 PM4/21/16
to

On 04/21/16 13:50, Wes Hardaker wrote:

Dan Miller <d...@anacominc.com> writes:

    # 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:
It is likely that your firewall is blocking outgoing snmp access?
Yes, that's my current theory too (Lee had suggested this in direct email).
We are talking with our ISP (who controls the firewall) to see about getting port UDP:161 opened up, though they aren't always very supportive of such requests.



Virus-free. www.avast.com
0 new messages