302
Cisco Nexus 5500 Series NX-OS Security Command Reference
OL-27883-02
Chapter       Show Commands
show role
show role
To display the user role configuration, use the show role command. 
show role [name role-name]
Syntax Description
Command Default Displays information for all user roles.
Command Modes EXEC mode 
Command History
Examples This example shows how to display information for a specific user role:
switch# show role name MyRole 
Role: MyRole
  Description: new role
  vsan policy: permit (default)
  Vlan policy: permit (default)
  Interface policy: permit (default)
  Vrf policy: permit (default)
  -------------------------------------------------------------------
  Rule    Perm    Type        Scope               Entity
  -------------------------------------------------------------------
  1       deny    command                         pwd
switch#
This example shows how to display information for all user roles:
switch# show role 
Role: network-admin
  Description: Predefined network admin role has access to all commands
  on the switch
  -------------------------------------------------------------------
  Rule    Perm    Type        Scope               Entity
  -------------------------------------------------------------------
  1       permit  read-write
Role: network-operator
  Description: Predefined network operator role has access to all read
  commands on the switch
  -------------------------------------------------------------------
  Rule    Perm    Type        Scope               Entity
  -------------------------------------------------------------------
  1       permit  read
name role-name (Optional) Displays information for a specific user role name. 
Release Modification
5.2(1)N1(1) This command was introduced.