role-show

This command is used to display roles in the switch configuration.

Syntax   role-show [id role-id] [name name-string] [scope local|fabric] [vnet-access vnet-name|all] access read-only|read-write running-config|no-running-config [delete-from-users yes|no]

id role-id

Displays the role identifier automatically assigned.

name name-string

Displays the name of the role.

scope local|fabric

Displays the scope of the each role.

vnet-access vnet-name|all

Displays the access level for each role.

access read-only|read-write

Displays read-only or read-write access.

running-config|
no-running-config

Displays running configuration or no running configuration.

delete-from-users

Displays if you want to remove the role from the list of users.

shell|no-shell

Displays if the user role allows access to the shell.

sudo|no-sudo

Displays if the user role allows the sudo command.

Formatting Options

format fields-to-display

Display output using a specific parameter. Use all to display all possible output.

parsable-delim character

Display output formatted for machine parsing using a specified delimiter.

sort-asc

Display output in ascending order.

sort-desc

Display output in descending order.

show dups

Display duplicate entries in the output.

layout vertical|horizontal

Format the output in a vertical or horizontal layout.

show-interval seconds-interval

Repeat the show command at a specified interval.

show-headers|
no-show-headers

Display column headers or not.

limit-output number

Limit the display output to a specific number of entries.

count-output

Display the number of entries in the output. This is useful with vRouter show commands.

unscaled

Display full values in the output instead of scaled approximate values.

raw-int-values

Display integer values instead of mapped values

sum-by

Aggregate output by specific parameters. If sum-by fields are specified, records that have the same value in sum-by fields are combined and displayed as one aggregate record. NOTE: This option is only available for show commands that collect statistics such as connection-stats-show.

 

Defaults   None.

Access   CLI

History   

Version 1.2

Command introduced.

Version 2.1

The optional parameters access and running-config are added.

Version 2.6

The parameters, shell|no-shell, and sudo|no-sudo added.

Usage   You can view all configured roles in the switch configuration.

Examples  To display all roles, use the following command:

CLI network-admin@switch > role-show format all layout

id:                 6000021:402

name:               vlb-web-svr-admin

scope:              fabric

vnet-access:        vlb-web-svr

access:             read-write

running-config:     deny

id:                 6000021:405

name:               test-admin

scope:              fabric

vnet-access:        test

access:             read-write

running-config:     deny

 

 

See Also   

role-create

role-modify

role-delete