Using the CLI with Network-Admin Privileges
If you are logged in to, or can log into, switch with a user name that has network-admin privileges and then recover the administrator password, follow these steps:
--------------------------------------------------------------------------------
Step 1 Use the show user-accounts command to verify that your user name has network-admin privileges.
switch# show user-account
user:admin
this user account has no expiry date
roles:network-admin
user:dbgusr
this user account has no expiry date
roles:network-admin network-operator
Step 2 If your user name has network-admin privileges, issue the username command to assign a new administrator password.
switch# config t
switch(config)# username admin password <new password>
switch(config)# exit
switch#
Step 3 Save the software configuration.
switch# copy running-config startup-config
Also, here's the link to the page:
http://www.cisco.com/en/US/docs/sto...ion/guides/cli_3_2/clicfgur.html#wpmkr1423697