5000 Series Layer 2/3 Managed Data Center Switch CLI Reference Guide
67
Example
The following is an example specifying the default authentication method for a console.
(Routing)(Config)#line console
(Routing)(Config-line)#login authentication default
User Account and Password Commands
4-66
username (Global Config)
The
username
command is used in the Global Config mode in order to add a new user to the local user
database. The privilege level, by default, is 1. By using the
encrypted
keyword, an administrator is
allowed to transfer local user passwords between devices without being required to know the passwords.
When the
password
parameter is used in conjunction with the
encrypted
parameter, the length of the
password must be exactly 128 hexadecimal characters. In the event that the password strength feature is
enabled, a check for password strength is conducted by the command, after which it returns an
appropriate error indicator if the password fails to meet the password strength criteria. Use of the optional
parameter
override-complexity-check
causes the password strength validation to be disabled.
The
no
command is used to return to the default specified by
authentication login
command.
username name {password password [encrypted [override-complexity-check] | level level
[encrypted [override-complexity-check]] | override-complexity-check]} | {level level [override-
complexity-check] password}
no username name
Parameters
name
Indicates the name of the user, which must be 1-64 characters in length.
password password
Indicates the authentication password for the user, which typically must
be 8-64 characters in length. However, this value can be zero in the
event that the
no password min-length
command has been executed.
Various special characters may be included in the password, including !
# $ % & ‘ ( ) * + , - / ; < = > @ [ \ ] ^ _ ` { | } ~.
level level
Indicates the user level, which must be anywhere from 0-15. A level 15
user may assign a level 0 value to another user in order to suspend that
user’s access. Otherwise, an access level of 1 can be entered for a non-
privileged user (switch > prompt), while an access level of 15 can be
entered to provide the highest level of privilege (switch # prompt). If the
level is not specified in instances where it is optional, then the privilege
level is set at 1.
encrypted
(Optional) Indicates the encrypted password entered, with that password
being copied from another switch configuration.
override-complexity-check
(Optional) Indicates that the password strength validation is disabled.
Default
The default is None.