04-15-2020 02:06 PM
I have been updating all of my devices to use v3 of SNMP. Unfortunately, I having issues trying to update the password on a couple of nexus 9Ks. Whenever I try to redo the user I get a message saying "localized key length should be even." I have not been able to find anything about this. I also can't delete the user and re-add. Anybody got an answer for this?
Thanks
04-15-2020 11:18 PM
Hi,
It seems you are specifying the password in localized key/encrypted format. This needs to have even number of characters. Have you tried to type the password in clear text?
Regards,
Sergiu
04-16-2020 06:50 AM
I used a password generator and have used this password on all of my other Cisco devices. Using the option of localizedkey or not gets me the same error. I would really hate to have to go back to all other equipment to change the key for monitoring.
04-16-2020 08:58 AM
Quite odd the fact that you received error about localized key when not using it. Could you share the exact commands and outputs received (of course without specifying the password ^_^, maybe just put "a" instead of any character) ?
Regards,
Sergiu
04-16-2020 03:29 PM
nxs01(config)# snmp-server user svc.snmp network-operator auth sha <password> priv aes-128 <password>
localized key length should be even
nxs01(config)#
I did check the password generator and it did create a 21 characters length password. How can I get the 9K to take this password? Is there somewhere the length is specified?
Thanks,
04-16-2020 04:18 PM
Hi,
I believe you are hitting a bug. I tried the command without localizedkey option, on n7k and n9k, and I do not have any errors while using passwords with even or odd number of characters. Which platform/version are you using?
Cheers,
Sergiu
04-16-2020 07:41 PM
I'm using a 9396PX with 7.0(3)I7(6) code. I did find some issues with that and will update shortly and try again.
Thanks for the assist. I will update once I complete the OS upgrade.
03-07-2023 06:16 AM
Hi Sergiu, Marcus,
I know this is an old post but just thought it worth mentioning that this issue with "localized key length should be even" is still present on release 10.2.2.
Sergiu's work around of not specifying localizedV2key at the end of the command works.
many thanks
Roo
9336-SW2(config)# snmp-server user NET_SNMPV3 network-operator auth sha j***x priv aes-128 j***x localizedV2key
localized key length should be even
9336-SW2(config)# snmp-server user NET_SNMPV3 network-operator auth sha j***x priv aes-128 j***x
9336-SW2(config)#
05-30-2021 03:04 AM
Please configure username and password for snmp (same as we create local user to access the device)
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