Last Updated on August 2, 2021 by Admin 2
You are examining the following command-line output on a Nexus 7000 Series switch:
vdc_id vdc_name state mac --------- -------- ------ --------------- 1 sales active A8:CC:D8:D8:65:F4 2 acctg active 7F:52:92:26:29:CF 3 prod active 7B:05:CA:ED:41:E1
Which of the following have you most likely issued?
- the show vdc command in the default VDC
- the show vdc command in a nondefault VDC
- the show vdc detail command in a nondefault VDC
- the show vdc membership command in a nondefault VDC
- the show vdc detail command in the default VDC
Most likely, you have issued the show vdc command in the default virtual device context (VDC) if you see the command-line output in this scenario on a Nexus 7000 Series switch. The show vdc command displays information about VDCs configured on the physical switch. However, the output of the show vdc command depends on the VDC in which the command has been issued. When issued in the default VDC, the command displays output for all VDCs configured on the device. When issued in a nondefault VDC, the command displays output for only the current VDC. To issue read and write commands in the default VDC, a user must be assigned the network-admin user role. The network-operator role has read-only access to the default VDC.
It Is not likely that you have issued the show vdc command in a nondefault VDC in this scenario If you had issued the show vdc command in a nondefault VDC, the output of this command would be limited to only the current VDC, which is the VDC in which the command was issued, as shown in the following output:
NEX7S#show vdc
vdc_id vdc_name state mac --------- -------- ------ --------------- 1 sales active A8:CC:D8:D8:65:F4
Users that have been assigned the vdc-admin role or the vdc-operator role can review output from the show vdc command in the nondefault VDC in which they are operating. However, they do not have rights to read or write information in other VDCs.
It Is not likely that you have issued the show vdc detail command in this scenario. Similar to the show vdc command, the show vdc detail command displays information about the VDCs configured on the physical device. However, the show vdc detail command provides extra information about the VDCs that is not visible in the summarized show vdc command output. For example, the output of the show vdc detail command contains information about the VDC ha policy, boot order, create time, and restart count in addition to the VDC ID, name, state, and Media Access Control (MAC) address. Also similar to the show vdc command, the show vdc detail command displays output for all VDCs when the command is issued in the default VDC. When issued in a nondefault VDC, the command displays output only for the VDC in which it was issued.
It Is not likely that you have issued the show vdc membership command in this scenario. The show vdc membership command displays the interfaces that have been allocated to VDCs on the physical device, as shown in the following output:
NEX7S#show vdc membership
vdc_id: 2 vdc_name: acctg interfaces:
Ethernet2/1
Based on the output above, you can surmise that the command was issued in a nondefault VDC. The output displays information for only the VDC named acctg. If the command had been issued in the default VDC, the output would have displayed information about the interfaces assigned to every VDC that is configured on the physical device.