cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
18646
Views
5
Helpful
3
Replies

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

Joe Clarke
Cisco Employee
Cisco Employee

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

View solution in original post

3 Replies 3

David Stanford
Cisco Employee
Cisco Employee

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]

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

Joe Clarke
Cisco Employee
Cisco Employee

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