I received the below error when attempting to configure our standard username and password in the local user database of this Nexus 5548UP switch.
nxxxxx-xxxx-xxx-las05(config)# username netadmin password 5 YuXXXXXXXXX role network-admin
% String failed to match token pattern at '^' marker.
The carot is pointing to the "u". This password is alphanumeric with symbols. I have never run across this issue before. Can someone help advise why this error is occurring and how to resolve. Thanks.
Please note that X's have been inserted to conceal the actual device name, password, etc.
Strangely enough Nexus 5000 does not allow special characters in passwords:
Cisco Nexus 5000 Series passwords are case sensitive and can contain alphanumeric characters only. Special characters, such as the dollar sign ($) or the percent sign (%), are not allowed.
Perhaps this is your issue.
Nexus 7000 does not seem to have this issue.
Can you try: username netadmin password YuXXXXXXXXX role network-admin
When doing: username netadmin password 5 YuXXXXXXXXX role network-admin the switch is assuming that you are entering the encrypted password. The switch requires the clear text password to be configured and it will be converted to the encrypted password in the running config. If you want to copy an encrypted password then you will need to copy the output from the running config and paste it in.