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

Re: Snmpget for V3 returns error

469 views
Skip to first unread message

Dave Shield

unread,
Mar 10, 2010, 3:30:59 AM3/10/10
to
On 9 March 2010 23:04, Kavita Raghunathan
<kavita.ra...@skyfiber.com> wrote:
> I’m trying to use snmpget and I see an error. I’ve attached the snmpd.conf
> as well as the output of snmpget. I’m using linux Centos.
>
> $ snmpget -v 3 -u myuser -l authNoPriv -a MD5 -A my_password localhost sysUpTime.0
> snmpget: Unknown user name (Sub-id not found: (top) -> sysUpTime)

Forget about the "Sub-id not found" message. That's a red herring.

Concentrate on the other element "Unknown user name".
How have you created the user "myuser" ?

> # snmpd.conf
> rwuser  myuser auth system

Note that this entry does not _create_ the user "myuser".
It simply authorises such a user to access the agent.

You still need a suitable "createUser" entry in the persistent
config file (/var/net-snmp/snmpd.conf).
See README.snmpv3 for details.

Dave

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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

Kavita Raghunathan

unread,
Mar 10, 2010, 9:36:23 AM3/10/10
to

Thank you!

1) I did try that one per the README.snmpv3, but for some reason it didn't
take affect even though I restarted the agent. I tried it again now and it
works. That's a mystery.

2) Also, the changes "createUser" are appended to /var/net-snmp/snmpd.conf
and not /usr/local/share/snmp/snmpd.conf. Do I need 2 files ?

Kavita

Dave Shield

unread,
Mar 10, 2010, 9:45:21 AM3/10/10
to
On 10 March 2010 14:36, Kavita Raghunathan

<kavita.ra...@skyfiber.com> wrote:
>
> 2) Also, the changes "createUser" are appended to /var/net-snmp/snmpd.conf
> and not /usr/local/share/snmp/snmpd.conf.

That's correct.

The "createUser" entry (which includes password text) is removed from the
config file, and replaced with an equivalent "usmUser" entry (which includes
localised keys, which are only valid on that one box).

This can only be done if the "createUser" lines are put in the dynamic
config file - /var/net-snmp/snmpd.conf


> Do I need 2 files ?

Typically, yes.

Harendra Pratap Singh

unread,
Mar 11, 2010, 1:55:45 AM3/11/10
to
Hi Dave,

Could you please let me know how to enable snmpd daemon's debug log. I
am using suse 10 linux.

Thanks,
Harendra

Dave Shield

unread,
Mar 11, 2010, 3:24:49 AM3/11/10
to
On 11 March 2010 06:55, Harendra Pratap Singh

<harendr...@globallogic.com> wrote:
> Could you please let me know how to enable snmpd daemon's debug log.

Start the agent using the option "-D{token}" where {token} is the debug tag
that you wish to enable. There's a reasonably full list of these at
http://freesnmp.com/net-snmp/faqs/index.html#tokens


You can turn on *all* debugging messages using "-D" (with no token),
but be aware that this produces an incredible amount of output.
It's not particularly useful, since you're typically drowning in irrelevant
stuff. It's much better to think about what you're trying to find out,
and enable the relevant debug tokens

Dave

0 new messages