Associate roles with a template, Inherit privileges from a template – Brocade Virtual ADX Administration Guide (Supporting ADX v03.1.00) User Manual
Page 119

Brocade Virtual ADX Administration Guide
107
53-1003249-01
Configuring RBM
3
Associate roles with a template
To associate roles with a template or to a user, there are three steps:
1. Set the role using the global all manager|viewer|none command.
Brocade(config-role-template-xyz)# global all manager
Syntax: [no] global all manager|viewer|none
2. Set the context using the context ctxt_name manager|operator|viewer|none command.
Brocade(config-role-template-xyz)# context abc manager
Syntax: [no] context name manager|viewer|none
3. Set the default context using the default-context command.
Brocade(config-role-template-xyz)# default-context xyz
Syntax: [no] default-context name
Inherit privileges from a template
To inherit privileges from a template, use the role template command.
Brocade(config)# role template abc
Syntax: [no] role template name
Example
Virtual ADX(config)# role template t1
Virtual ADX(config-role-template-t1)# global all viewer
Virtual ADX(config-role-template-t1)# context c1 operator
Virtual ADX(config-role-template-t1)# context c2 manager
Virtual ADX(config-role-template-t1)# context c3 viewer
Virtual ADX(config-role-template-t1)# default-context c2
Virtual ADX(config)# username u1 privilege 1 password passw0rd
Virtual ADX(config-role-user-u1)# global all none
Virtual ADX(config-role-user-u1)# context c4 manager
Virtual ADX(config-role-user-u1)# role template t1
Virtual ADX(config-role-user-u1)# default-context c4
The role can be associated only with users with privilege level 1. After a privilege level 1 user is
created, the super user can assign roles or make changes to the user by re-issuing the username
command and entering the role configuration mode for that user.