A user account must have at least one user role.Note
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
(Optional)
Displays the user roles available. You can configure other
user roles, if necessary.
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
(Optional)
Displays the role configuration.
switch# show user-account
Step 5
(Optional)
Copies the running configuration to the startup
configuration.
switch# copy running-config
startup-config
Step 6
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 6.x
25
Configuring User Accounts and RBAC
Configuring User Accounts