cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
360
Views
0
Helpful
1
Replies

Nexus 5k local usename

johnlloyd_13
Level 9
Level 9

hi,

i got a nexus 5k switch and would like to add a local admin.

i would like the password to be encrypted but doesn't let me. can someone advise how to do it?

the password is accepted if i didn't type 5 before it.

N5K(config)# username admin pass ?
  0     Indicates that the password that follows should be in clear text
  5     Indicates that the password that follows should be encrypted
  WORD  Password for the user (clear text) (Max Size 64)

N5K(config)# username admin pass 5 cisco

                                                              ^
% String failed to match token pattern at '^' marker.

N5K(config)# username admin pass cisco role ?

1 Reply 1

Iulian Vaideanu
Level 4
Level 4

I believe when you use "pass 5" the switch expects the next string to be the encrypted form of the password (MD5, starting with "$1$") - use "pass 0" (or just "pass") to give it the clear text password, then you'll see its encrypted form in "show running-config"...

Review Cisco Networking for a $25 gift card