SNMP v3 - Error in Authentication password

Answered Question
Jul 15th, 2008
User Badges:

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

Correct Answer by Joe Clarke about 8 years 8 months ago

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
David Stanford Tue, 07/15/2008 - 07:45
User Badges:
  • 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]

misd.network.support Tue, 07/15/2008 - 07:59
User Badges:

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

Correct Answer
Joe Clarke Tue, 07/15/2008 - 07:57
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

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

Actions

This Discussion