display role
Use display role to display user role information.
Syntax
display role [ name role-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
name role-name: Specifies a user role name, a case-sensitive string of 1 to 63 characters. If you do not specify a user role name, the command displays information about all user roles, including the predefined user roles.
Examples
# Display information about user role 123.
<Sysname> display role name 123 Role: 123 Description: new role VLAN policy: deny Permitted VLANs: 1 to 5, 7 to 8 Interface policy: deny Permitted interfaces: FortyGigE1/0/1 to FortyGigE1/0/3, Vlan-interface1 to Vlan-interface20 VPN instance policy: deny Permitted VPN instances: vpn, vpn1, vpn2 ------------------------------------------------------------------- Rule Perm Type Scope Entity ------------------------------------------------------------------- 1 permit RWX feature-group abc 2 deny -W- feature ldap 3 permit command system ; radius sc * 4 permit R-- xml-element - 5 permit RW- oid 1.2.1 R:Read W:Write X:Execute
Table 7: Command output
Field | Description |
---|---|
Role | User role name. Predefined user role names:
|
Description | User role description you have configured for easy identification. |
VLAN policy | VLAN policy of the user role:
|
Permitted VLANs | VLANs accessible to the user role. |
Interface policy | Interface policy of the user role:
|
Permitted interfaces | Interfaces accessible to the user role. |
VPN instance policy | VPN instance policy of the user role:
|
Permitted VPN instances | VPN instances accessible to the user role. |
Rule | User role rule number. A user role rule specifies access permissions for items, including commands, feature-specific commands, XML elements, and MIB nodes. Predefined user role rules are identified by sys-n, where n represents an integer. |
Perm | Access control criterion:
|
Type | Item category:
|
Scope | Rule control scope:
|
Entity | Command string, feature name, feature group, XML element, or OID specified in the user role rule:
|
Related commands
role