08-13-2020 05:43 AM - edited 08-13-2020 05:47 AM
We recently upgraded to nxos 9.2.3 Cisco 9k. Ever since then we have lost communication to our monitoring system.
I have taken these steps for troubleshooting purposes.
Below are the commands that were working before the upgrade
snmp-server user Fxxx network-operator auth md5 0xxxx priv aes-128 0xxxx localizedkey
snmp-server user Fxxx use-ipv4acl 50
When i add the snmp user commands the username account password is replaced by an exclamation mark
username Fxxx password 5 ! role network-operator
username Fxxx passphrase lifetime 99999 warntime 14 gracetime 3
I also replaced the config to have username without special characters. Same issue. Password is still replaced with an exclamation mark.
snmp-server user Fxxx network-operator auth md5 xxx priv aes-128 xxx localizedkey
snmp-server user Fxxx use-ipv4acl 50
username Fxxx password 5 ! role network-operator
username Fxxx passphrase lifetime 99999 warntime 14 gracetime 3
When I create the username account first, without special character, and then add snmp-server user config. The config is accepted (exclamation mark does not appear) but im not able to connect to PRTG monitoring appliance. I receive authentication error.
I suspect either 9.2.3 uses a different commands to get snmp working. Will need to add or alter the commands. Or possible bug in the OS, but not able to find anything in a forum. Any help would be greatly appreciate.
Solved! Go to Solution.
08-13-2020 08:09 AM - edited 08-13-2020 08:10 AM
According to config guide:
The authentication passphrase specified in the snmp-server user command becomes the password for the CLI user.
The password specified in the username command becomes the authentication and privacy passphrases for the SNMP user.
If you create or delete a user using either SNMP or the CLI, the user is created or deleted for both SNMP and the CLI.
When you configure a passphrase/password in localized key/encrypted format, Cisco NX-OS does not synchronize the user information (passwords, roles, and so on).
In other words, what happens in your case, when you create first the snmp-server user, the CLI user is also created, but since you use localizedkey option, the password is not syncronized with the CLI user, thus the "!" is present.
When you create the user first, did you used the correct password? If not, this is why you got snmp authorization failed.
To make the command work, simply remove the "localizedkey" option from the snmp-server user command.
Stay safe,
Sergiu
08-13-2020 07:16 AM
08-13-2020 08:09 AM - edited 08-13-2020 08:10 AM
According to config guide:
The authentication passphrase specified in the snmp-server user command becomes the password for the CLI user.
The password specified in the username command becomes the authentication and privacy passphrases for the SNMP user.
If you create or delete a user using either SNMP or the CLI, the user is created or deleted for both SNMP and the CLI.
When you configure a passphrase/password in localized key/encrypted format, Cisco NX-OS does not synchronize the user information (passwords, roles, and so on).
In other words, what happens in your case, when you create first the snmp-server user, the CLI user is also created, but since you use localizedkey option, the password is not syncronized with the CLI user, thus the "!" is present.
When you create the user first, did you used the correct password? If not, this is why you got snmp authorization failed.
To make the command work, simply remove the "localizedkey" option from the snmp-server user command.
Stay safe,
Sergiu
08-13-2020 08:42 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide