Step 1 Use the show user-accounts command to verify that your user name has network-admin privileges.
switch# show user-account
this user account has no expiry date
Step 2 If your user name has network-admin privileges, issue the username command to assign a new administrator password.
switch(config)# username admin password <new password>
Step 3 Save the software configuration.
switch# copy running-config startup-config
Full cisco documentation here (includes password recovery for lost passwords)
Did you like this?
Tip cyberfella with Cryptocurrency
Donate Bitcoin to cyberfella
Donate Bitcoin Cash to cyberfella
Donate Ethereum to cyberfella
Donate Litecoin to cyberfella
Donate Monero to cyberfella
Donate ZCash to cyberfella