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

created ~/.snmp/snmpd.conf :
defSecurityName MD5User
...

sent:
sudo snmpgetnext 127.0.0.1 1.3.6.1.2.1.1.2.0
snmpgetnext: No securityName specified
I'm betting the problem is that you're running it as sudo, which means
it's looking in root's ~/.snmp directory and not yours.  Why are you
running snmpgetnext as root?  It shouldn't be needed.
Oh!!!?0?2 I didn't even think about it... almost anything involving network accesses requires root; I just made assumptions!!?0?2

Okay, just tried as normal user, and I don't get the name errors now; but I still time out on both attempts:
snmpget -v 3 -n none -u usr-none-none -l noAuthNoPriv demo.snmplabs.com 1.3.6.1.2.1.1.2.0
and
snmpgetnext -v 3 -n none -l noAuthNoPriv -u noAuthUser 127.0.0.1 1.3.6.1.2.1.1.2.0

BTW, I verified that I can ping demo.snmplabs.com, so there's no general access issue.
Also, my linux firewall is disabled, so there's no blocking going on.

//***********************************
Okay, I think I understand what is going on...
I was running snmpd itself as root - so it also was likely not seeing any of my .conf files.
I just killed it, then restarted it as normal user, and now I'm getting all kinds of error messages from it, regarding the various snmpd.conf files that I have scattered around.

I'll pick this back up on Monday, when I get back to work...
I need to study conf files for a bit, then try this again!!

Thank you all for your help!!
Dan Miller


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