Configuring Username

You can configure the username based on the role(RBAC) using the below command:

Reference

Command

[no] username <user_name> password <user_password> role [network-operator/network-admin]

Description

username configuration

Parameters

username

Mode

CONFIG

Example

pbnoscli# configure terminal 
pbnoscli(config)# username 
 <user_name>  
pbnoscli(config)# username test 
  password              Create user password
pbnoscli(config)# username test password 
  <user_pwd>            Enter password
pbnoscli(config)# username test password pass@123 role 
  network-admin         Admin
  network-operator      Operator
pbnoscli(config)# username test password pass@123 role network-admin 
pbnoscli#

pbnoscli(config)# no username test 
pbnoscli(config)#

You can verify the configuration by using the command(s) below:

pbnoscli# show users 
==================================
Users           Role                            
==================================
root            network-admin                   
test            network-admin                   
*admin          network-admin                   
pbnoscli#

pbnoscli# show running-config 
configure terminal
!
interface mgmt
ip address 10.4.4.52/24 gateway 10.4.4.1
!
username test role network-admin
!
pbnoscli#