Re: SNMP v3 newbie question

Dan Miller <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 04/15/16 16:58, Wes Hardaker wrote:

Dan Miller <[email protected]> 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

https://www.avast.com/en-us/lp-esg-fav?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=oa-2109-v2-b
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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.