Re: Unknown user name

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
    [ First - *please* don't mail me privately, without copying
     any responses to the mailing list.  I don't have the time
     or inclination to offer private, unpaid, SNMP consultancy.
     Keep discussions to the list, where others can both learn
     and offer advice.  Thanks.   ]


2009/7/7 j hite <[email protected]>:
>> >  However whenever I try to use v3 I get the Unknown user name error.
>>
>> What is the exact command you are trying?
>
>
>
> Thanks for posting Dave.
>
> snmpget -v3 -u snmpv3authSec -a MD5 -A anythingforsec -l authNoPriv -d
> 10.257.7.1  1 1.3.6.1.2.1.1.3.0
>
>>
>> > The Usm_User_Table, Cfg_Sec2Groups, and Snmp_Cfg_Access tables
>> > have been setup in the agent.
>>
>> How?
>> What do they contain, and how was this configured?
>
>
>
> #define USM_MAX_USER_USERS 3
> SNMP_USM_USER_STRUCT            Usm_User_Table[USM_MAX_USER_USERS] =
> {
>     /* User name, Authentication protocol, Authentication password,
>      * Privacy protocol, Privacy password.
>        */
>     {USM_USER_NAME_INITIAL, USM_MD5, USM_AUTH_PASSWORD_INITIAL,
>         USM_DES, USM_PRIV_PASSWORD_INITIAL},
>     {"snmpv3authSec", USM_MD5, "anythingforsec", USM_DES,"privacypass"},
>     {"templateSHA", USM_SHA, "template",
>         USM_DES, "template"}
> };
>
> #define VACM_SEC2GRP_TBL_SIZE 4
> VACM_SEC2GROUP Snmp_Cfg_Sec2Groups [VACM_SEC2GRP_TBL_SIZE] = {
>     /* Security model, Security name, Group name. */
>     {SNMP_CBSM_V1, "public", "group1"},
>     {SNMP_CBSM_V2, "public", "group1"},
>     {SNMP_USM, USM_USER_NAME_INITIAL, "group1"},
>     {SNMP_USM, "snmpv3authSec", "snmpv3authGrp"}
> };
>
> #define VACM_ACCESS_TBL_SIZE 3
> VACM_ACCESS Snmp_Cfg_Access [VACM_ACCESS_TBL_SIZE] = {
>     /* Security model, Group name, Context prefix, Security level,
>        Context match, Read view, Write view, Notify view. */
>     {SNMP_ANY, "group1", "", VACM_CTXTMATCH_EXACT,
>         SNMP_SECURITY_NOAUTHNOPRIV, "restricted", "restricted",
>         "restricted"},
>     {SNMP_USM, "group1", "", VACM_CTXTMATCH_EXACT,
>         SNMP_SECURITY_AUTHNOPRIV, "internet", "internet",
>         "internet"},
>     {SNMP_USM, "snmpv3authGrp", "", SNMP_SECURITY_AUTHPRIV,
>         VACM_CTXTMATCH_EXACT, "internet", "internet", "internet"}
> };

That doesn't look anything like the Net-SNMP agent.
We don't have any code that looks remotely like this.

Even the tokens used (SNMP_SECURITY_AUTHPRIV, etc) aren't
right for our agent.

If you are using the Net-SNMP agent, then please see the
snmpd.conf(5) man page for how to configure access control.

If you are using a different agent, then you need to talk to the
vendors of that software for assistance.  We can't help you.

Dave

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
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.