07-15-2008 06:23 AM
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
Solved! Go to Solution.
07-15-2008 07:57 AM
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
07-15-2008 07:45 AM
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]
07-15-2008 07:59 AM
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
07-15-2008 07:57 AM
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
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: