Create a New Admin-Role User Account

Create a new user account associated with the admin role that can run all supported CLI commands.

Before you begin

You must have the admin role to create a new user account that has the admin-role.

About this task

Be sure to observe the following guidelines as you create the user account:
Table 1. User-account guidelines
User-defined variables Values
username 1-40 alphanumeric characters, including underscore and dot.

Underscore as first character is not allowed.

rolename Pre-defined role to be assigned to the user (‘admin‘ and ‘user‘ are the only supported roles).
password 8-40 characters for plain-text password

8-128 characters for hashed passwords

encryption-level 0 = clear-text (default)

10 = encrypted

Procedure

  1. Run the configure terminal command to access Config mode.
    The command line changes to configuration mode.
    device(config)# 
  2. Create the admin-role account using the following commands.
    username username role rolename password password 
    device(config)# username jsmith role admin password "uber#p@ssW0^b" encryption-level 10