Configuring User Accounts
Changes to user account attributes do not take effect until the user logs in and creates a new session.
Note
Procedure
PurposeCommand or Action
Enters global configuration mode.switch# configure terminal
Step 1
Displays the user roles available. You can
configure other user roles, if necessary.
(Optional) switch(config)# show role
Step 2
Configures a user account.
switch(config) # username user-id [password
password] [expire date] [role role-name]
Step 3
The user-id is a case-sensitive, alphanumeric
character string with a maximum of 28
characters.
The default password is undefined.
If you do not specify a password, the
user might not be able to log into the
switch.
Note
The expire date option format is
YYYY-MM-DD. The default is no expiry date.
Exists global configuration mode.switch(config) # exit
Step 4
Displays the role configuration.(Optional) switch# show user-account
Step 5
Copies the running configuration to the startup
configuration.
(Optional) switch# copy running-config
startup-config
Step 6
Example
The following example shows how to configure a user account:
switch# configure terminal
switch(config)# username NewUser password 4Ty18Rnt
switch(config)# exit
switch# show user-account
Cisco Nexus 3548 Switch NX-OS System Management Configuration Guide, Release 7.x
205
Configuring User Accounts and RBAC
Configuring User Accounts