| Step 1 | switch# configure terminal
| Enters global configuration mode.
|
| Step 2 | switch(config)# port-profile-role role-name
| Enters port profile role configuration mode for the named role. If the role does not already exist, it is created with the following characteristic:
- role-name—The role name can be up to 32 characters and must be unique for each role on the Cisco Nexus 1000V.
|
| Step 3 | switch(config-port-prof-role)# description role-description
| (Optional) Adds a description of up to 32 characters to the role. This description is automatically pushed to vCenter Server.
|
| Step 4 | switch(config-port-prof-role)# show port-profile-role users
| (Optional) Displays all the users on vCenter Server who have access to the DVS parent folder and who can be assigned to the role.
|
| Step 5 | Enter one or more user or group roles.
| (Optional) Assigns a user or a group to the role. The user or group gains the ability to use all port profiles assigned to the role. - switch(config-port-prof-role)# user user-name
- switch(config-port-prof-role)# group group-name
| Note
| Multiple users and groups can be assigned to a role.
The users and groups must exist on vCenter server and must have access to the top level Cisco Nexus 1000V DVS folder in vSphere client. For more information, see the Defining DVS Access in vSphere Client.
|
|
| Step 6 | switch(config-port-prof-role)# exit
| Exits port-profile-role configuration mode and returns you to global configuration mode.
|
| Step 7 | switch(config)# port-profile profile-name
| Enters port profile configuration mode for the named port profile.
|
| Step 8 | switch(config-port-prof)# assign port-profile-role role-name
| Assigns the role to a port profile. The port group is updated in vCenter Server and the user or group assigned to this role is granted access. The user or group can assign the port group to a vNIC in a virtual machine or vSWIF or vMKNIC on a host.
| Note
| Only one role can be assigned to a port profile.
A role can be assigned to multiple port profiles.
|
|
| Step 9 | switch(config-port-prof)# show port-profile-role [name role-name]
| (Optional) Displays the configuration for verification.
|
| Step 10 | switch(config-port-prof)# copy running-config startup-config
| (Optional) Saves the change persistently through reboots and restarts by copying the running configuration to the startup configuration.
|