Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

SNMP v3 - Error in Authentication password

Hi,

Im trying to configure snmp v3 on a 2960 switch (IOS 12.2(44)SE. I use the following commands:

snmp-server group mygroup v3 priv

snmp-server user myuser mygroup v3 encrypted auth sha myauthpass priv aes 128 myprivpass

I then get the error message:

%Error in Authentication password

Any ideas?

Cheers,

Ben

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: SNMP v3 - Error in Authentication password

When you specify the "encrypted" keyword, you need to specify the password in an encrypted string. It doesn't look like you want this. Try:

snmp-server user myuser mygroup v3 auth sha myauthpass priv aes 128 myprivpass

3 REPLIES
Cisco Employee

Re: SNMP v3 - Error in Authentication password

Looks like you need to specify a read or write view

Syntax for the group name :

snmp-server group [groupname {v1 | v2c | v3{auth | noauth | priv}}]

[read readview] [write writeview] [notify notifyview] [access

access-list]

snmp-server user username [groupname remote ip-address [udp-port port]

{v1 | v2c | v3 [encrypted] [auth {md5 | sha} auth-password [priv des56

priv password]] [access access-list]

Re: SNMP v3 - Error in Authentication password

Thanks for the reply.

As I understand the syntax in [] is optional. I tried specifying a readonly view by changing my group command to:

snmp-server group mygroup v3 priv read readonly

I still get the same error message. Interestingly if I drop the optional "encrypted" keyword from the snmp-server user command, it does indeed create the user. The user doesn't appear in the config - but a show snmp user does list it.

Cheers,

Ben

Cisco Employee

Re: SNMP v3 - Error in Authentication password

When you specify the "encrypted" keyword, you need to specify the password in an encrypted string. It doesn't look like you want this. Try:

snmp-server user myuser mygroup v3 auth sha myauthpass priv aes 128 myprivpass

5791
Views
0
Helpful
3
Replies