Setting passwords and usernames (CLI)


You can now configure manager and operator passwords in one step.


[no] password <manager|operator|all|port-access> [user-name ASCII-STR] [<plaintext|sha1> ASCII-STR]

Sets or clears a local username/password for a given access level.

The command sets or changes existing password(s). If no password is provided in the command, you are prompted to enter the new password twice.

The [no] form of the command removes specific local password protection.


port-access is available only if include-credentials is enabled.

<manager|operator|port-access|all>: Level of access


Configures access to the switch with manager-level privileges.


Configures access to the switch with operator-level privileges.


Configures access to the switch through 802.1X authentication with operator-level privileges.

user-name <name>

The optional text string of the user name associated with the password. Username up to 64 characters.


Format for the password entry, and the password itself (up to 64 characters). Specifies the type of algorithm (if any) used to hash the password. Valid values are plaintext or sha-1 The default type is plaintext, which is also the only type accepted for the port-access parameter.

Configuring manager and operator passwords

  • Password entries appear as asterisks.

  • You must type the password entry twice.

switch(config)# password manager
New password: ******* 
Please retype new password: ******* 
switch(config)# password operator
New password: ********
Please retype new password: ********