The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
To display the MAC address of a specific virtual device context (VDC), use the show mac vdc command.
show mac vdc vdc-id
vdc-id |
VDC ID. The range is from 1 to 4. |
None
Any command mode
Release |
Modification |
---|---|
5.2(1) |
This command was introduced. |
This command does not require a license.
This example shows how to display the MAC address of a specific VDC:
switch# show mac vdc 1 vdc id = 1, management port mac address = f8:66:f2:09:f2:e8 switch#
Command |
Description |
---|---|
show vdc |
Displays virtual context device (VDC) information. |
show vdc resource |
Displays the virtual device context (VDC) resource information. |
To display the resource usage for a virtual device context (VDC), use the show resource command.
show resource [ monitor-sessions | port-channel | u4route-mem | u6route-mem | vlan | vrf ]
monitor-sessions |
(Optional) Displays the monitor session resource usage. |
port-channel |
(Optional) Displays the port channel resource usage. |
u4route-mem |
(Optional) Displays the IPv4 unicast route memory resource usage. |
u6route-mem |
(Optional) Displays the IPv6 unicast route memory resource usage. |
vlan |
(Optional) Displays only the VLAN resource information. |
vrf |
(Optional) Displays only the virtual forwarding and routing instance (VRF) resource information. |
None
Any command mode
Release |
Modification |
---|---|
4.0(1) |
This command was introduced. |
This command does not require a license.
This example shows how to display the resource usage for a VDC:
switch# show resource Resource Min Max Used Unused Avail ----------- ----- ----- ------ -------- ------- port-channel 0 192 4 0 188 monitor-session 0 2 2 0 0 vlan 16 4094 12 4 4082 u6route-mem 16 256 16 0 232 u4route-mem 32 256 32 0 208 vrf 16 8192 2 14 8158
To display the virtual device context (VDC) information in the default VDC running configuration, use the show running-config vdc command.
show running-config vdc
This command has no arguments or keywords.
None
Any command mode
Release |
Modification |
---|---|
4.0(1) |
This command was introduced. |
You can use this command only in the default VDC (VDC 1).
This command does not require a license.
This example shows how to display VDC information in the running configuration:
switch# show running-config vdc version 4.0(1) vdc switch id 1 limit-resource vlan minimum 16 maximum 4094 limit-resource monitor-session minimum 0 maximum 2 limit-resource vrf minimum 16 maximum 1000 limit-resource port-channel minimum 0 maximum 192 limit-resource u4route-mem minimum 32 maximum 256 limit-resource u6route-mem minimum 16 maximum 256 vdc Payroll id 2 allocate interface Ethernet2/47 limit-resource vlan minimum 16 maximum 4094 limit-resource monitor-session minimum 0 maximum 2 limit-resource vrf minimum 16 maximum 1000 limit-resource port-channel minimum 0 maximum 192 limit-resource u4route-mem minimum 8 maximum 256 limit-resource u6route-mem minimum 4 maximum 256 vdc Engineering id 3 allocate interface Ethernet2/46 limit-resource vlan minimum 16 maximum 4094 limit-resource monitor-session minimum 0 maximum 2 limit-resource vrf minimum 16 maximum 1000 limit-resource port-channel minimum 0 maximum 192 limit-resource u4route-mem minimum 8 maximum 256 limit-resource u6route-mem minimum 4 maximum 256 vdc resource template MyTemplate
To display the running configurations for all virtual device contexts (VDCs), use the show running-config vdc-all command.
show running-config vdc-all [all]
all |
(Optional) Displays VDC default setting information from the running configuration. |
None
Any command mode
Release |
Modification |
---|---|
4.0(1) |
This command was introduced. |
You can use this command only in the default VDC (VDC 1).
This command does not require a license.
This example shows how to display the running configurations for all VDCs:
switch# show running-config vdc-all !Running config for vdc: switch switchto vdc switch version 4.0(1) snmp-server enable traps entity power redundancy-mode combined force feature tacacs+ feature pbr feature private-vlan feature interface-vlan feature dot1x feature lacp feature glbp feature dhcp feature eou feature tunnel feature cts logging level glbp 6 role name MyRole username adminbackup password 5 $1$Oip/C5Ci$oOdx7oJSlBCFpNRmQK4na. role network -operator username admin password 5 $1$x.9srJIq$jvKISFQ1sxR4oi44YanxJ0 role network-admin username User1 password 5 $1$Dm4XUUyR$V1/3B25/84g3YRkOt3Rj50 role network-opera tor telnet server enable ssh key rsa 768 force kernel core target 0.0.0.0 kernel core limit 1 aaa group server radius aaa-private-sg use-vrf management vlan dot1Q tag native system default switchport no system default switchport shutdown snmp-server user User1 auth md5 0xbc9d5254b8aedec4747ad156d8726ae0 priv 0xbc9d52 54b8aedec4747ad156d8726ae0 localizedkey engineID 128:0:0:9:3:0:24:186:216:63:188 snmp-server user admin auth md5 0xbc9d5254b8aedec4747ad156d8726ae0 priv 0xbc9d52 54b8aedec4747ad156d8726ae0 localizedkey engineID 128:0:0:9:3:0:24:186:216:63:188 snmp-server enable traps license vrf context management ip route 0.0.0.0/0 172.28.230.1 logging level sysmgr 1 logging server 172.28.254.254 vdc switch id 1 limit-resource vlan minimum 16 maximum 4094 limit-resource monitor-session minimum 0 maximum 2 limit-resource vrf minimum 16 maximum 1000 limit-resource port-channel minimum 0 maximum 192 limit-resource u4route-mem minimum 32 maximum 256 limit-resource u6route-mem minimum 16 maximum 256 vdc Payroll id 2 allocate interface Ethernet2/47 limit-resource vlan minimum 16 maximum 4094 limit-resource monitor-session minimum 0 maximum 2 limit-resource vrf minimum 16 maximum 1000 limit-resource port-channel minimum 0 maximum 192 limit-resource u4route-mem minimum 8 maximum 256 limit-resource u6route-mem minimum 4 maximum 256 vdc Engineering id 3 allocate interface Ethernet2/46 limit-resource vlan minimum 16 maximum 4094 limit-resource monitor-session minimum 0 maximum 2 limit-resource vrf minimum 16 maximum 1000 limit-resource port-channel minimum 0 maximum 192 limit-resource u4route-mem minimum 8 maximum 256 limit-resource u6route-mem minimum 4 maximum 256 vdc resource template MyTemplate interface Vlan1 interface Ethernet2/1 shutdown switchport switchport monitor ip access-group markin in ip dhcp snooping limit rate 80 ip arp inspection limit rate 300 burst interval 5 interface Ethernet2/2 shutdown no switchport interface Ethernet2/2.1 shutdown interface Ethernet2/3 no cdp enable shutdown storm-control broadcast level 20 storm-control unicast level 20 switchport dot1x mac-auth-bypass .... interface mgmt0 ip address 172.28.231.193/23 line console speed 115200 logging level cdp 6 event manager applet x monitor session 1 no shut monitor session 2 no shut source interface Ethernet2/2 both source interface Ethernet2/5 both destination interface Ethernet2/1 destination interface Ethernet2/3 filter vlan 50 monitor session 3 no shut logging level dhcp_snoop 6 logging level eth_port_channel 6 logging ip access-list cache entries 8000 logging ip access-list cache interval 300 logging ip access-list cache threshold 0 acllog match-log-level 6 !Running config for vdc: Payroll switchto vdc Payroll im_verify_ifindex failed for 0x5000000 status: 0x411a0000 - shared pss not opened if_info_status: 0x0 version 4.0(1) username admin password 5 $1$f89fb1AG$TK6vd.TAq0rp9Gwzc7j6y0 role network-admi telnet server enable ssh key rsa 768 force aaa group server radius aaa-private-sg use-vrf management snmp-server user admin network-admin auth md5 0xddf68fa88ad2a5ea0818856db35fa9f priv 0xddf68fa88ad2a5ea0818856db35fa9fb localizedkey vrf context management ip route 0.0.0.0/0 172.28.230.1 logging server 172.28.254.254 interface Ethernet2/47 logging ip access-list cache entries 8000 logging ip access-list cache interval 300 logging ip access-list cache threshold 0 acllog match-log-level 6 !Running config for vdc: Engineering switchto vdc Engineering im_verify_ifindex failed for 0x5000000 status: 0x411a0000 - shared pss not opened if_info_status: 0x0 version 4.0(1) username admin password 5 $1$pPFrW5.g$rciQSDOB/A/c0N8eXf1081 role network-admi telnet server enable ssh key rsa 768 force aaa group server radius aaa-private-sg use-vrf management snmp-server user admin network-admin auth md5 0x67568a735d6a1f7e4833fd0de8c196f priv 0x67568a735d6a1f7e4833fd0de8c196fb localizedkey vrf context management ip route 0.0.0.0/0 172.28.230.1 logging server 172.28.254.254 interface Ethernet2/46 logging ip access-list cache entries 8000 logging ip access-list cache interval 300 logging ip access-list cache threshold 0 acllog match-log-level 6
To display the configuration information for all virtual device contexts (VDCs) in the startup configuration, use the show startup-config vdc-all command.
show startup-config vdc-all
This command has no arguments or keywords.
None
Any command mode
Release |
Modification |
---|---|
4.0(1) |
This command was introduced. |
You can use this command only in the default VDC (VDC 1).
This command does not require a license.
This example shows how to display information for all VDCs in the startup configuration:
switch# show startup-config vdc-all
To display virtual context device (VDC) information, use the show vdc command.
show vdc [vdc-name] [detail]
vdc-name |
(Optional) VDC name. |
detail |
(Optional) Displays detailed information about the VDCs. |
None
Any command mode
Release |
Modification |
---|---|
4.0(1) |
This command was introduced. |
In the default VDC, this command displays information about all VDCs on the physical device. In nondefault VDCs, this command display information only about the current VDC.
This command does not require a license.
This example shows how to display summary information about VDCs in the default VDC:
switch# show vdc vdc_id vdc_name state mac ------ -------- ----- ---------- 1 switch active 00:18:ba:d8:3f:fd 2 Payroll active 00:18:ba:d8:3f:fe 3 MyVDC active 00:18:ba:d8:3f:ff
This example shows how to display detailed information about VDCs in the default VDC:
switch# show vdc detail vdc id: 1 vdc name: switch vdc state: active vdc mac address: 00:22:55:79:a4:c1 vdc ha policy: RELOAD vdc dual-sup ha policy: SWITCHOVER vdc boot Order: 1 vdc create time: Thu May 14 08:14:39 2009 vdc restart count: 0 vdc id: 2 vdc name: payroll vdc state: active vdc mac address: 00:22:55:79:a4:c2 vdc ha policy: RESTART vdc dual-sup ha policy: SWITCHOVER vdc boot Order: 1 vdc create time: Thu May 14 08:15:22 2009 vdc restart count: 0 vdc id: 3 vdc name: test vdc state: active vdc mac address: 00:22:55:79:a4:c3 vdc ha policy: RESTART vdc dual-sup ha policy: SWITCHOVER vdc boot Order: 1 vdc create time: Thu May 14 08:15:29 2009 vdc restart count: 0
This example shows how to display summary VDC information in a nondefault VDC:
switch-Payroll# show vdc Payroll vdc_id vdc_name state mac ------ -------- ----- ---------- 2 Payroll active 00:18:ba:d8:3f:fe
This example shows how to display detailed VDC information in a nondefault VDC:
switch-Payroll# show vdc Payroll detail vdc id: 2 vdc name: payroll vdc state: active vdc mac address: 00:22:55:79:a4:c2 vdc ha policy: RESTART vdc dual-sup ha policy: SWITCHOVER vdc boot Order: 1 vdc create time: Thu May 14 08:15:22 2009 vdc restart count: 0
To display the current virtual device context (VDC) identifier information, use the show vdc current-vdc command.
show vdc current-vdc
This command has no arguments or keywords.
None
Any command mode
Release |
Modification |
---|---|
4.0(1) |
This command was introduced. |
You can use this command in any VDC.
This command does not require a license.
This example shows how to display the current VDC identifier information:
switch-Payroll# show vdc current-vdc Current vdc is 2 - Payroll
To display the interface membership information for the virtual device contexts (VDCs), use the show vdc membership command.
show vdc membership [status]
status |
(Optional) Displays status information about the interfaces. |
None
Any command mode
Release |
Modification |
---|---|
4.0(1) |
This command was introduced. |
You can use this command only in the default VDC.
This command does not require a license.
This example shows how to display the interface membership information in the default VDC:
switch# show vdc membership vdc_id: 1 vdc_name: switch interfaces: Ethernet2/1 Ethernet2/2 Ethernet2/3 Ethernet2/4 Ethernet2/5 Ethernet2/6 Ethernet2/7 Ethernet2/8 Ethernet2/9 Ethernet2/10 Ethernet2/11 Ethernet2/12 Ethernet2/13 Ethernet2/14 Ethernet2/15 Ethernet2/16 Ethernet2/17 Ethernet2/18 Ethernet2/19 Ethernet2/20 Ethernet2/21 Ethernet2/22 Ethernet2/23 Ethernet2/24 Ethernet2/25 Ethernet2/26 Ethernet2/27 Ethernet2/28 Ethernet2/29 Ethernet2/30 Ethernet2/31 Ethernet2/32 Ethernet2/33 Ethernet2/34 Ethernet2/35 Ethernet2/36 Ethernet2/37 Ethernet2/38 Ethernet2/39 Ethernet2/40 Ethernet2/41 Ethernet2/42 Ethernet2/43 Ethernet2/44 Ethernet2/45 Ethernet2/48 vdc_id: 2 vdc_name: Payroll interfaces: Ethernet2/47 vdc_id: 3 vdc_name: MyVDC interfaces: Ethernet2/46
This example shows how to display the interface membership information in a nondefault VDC:
switch-Payroll# show vdc membership vdc_id: 2 vdc_name: Payroll interfaces: Ethernet2/47
This example shows how to display the interface status information in a default VDC:
switch# show vdc membership status vdc_id: 1 vdc_name: switch interfaces: Port Status ---- ---------- Eth2/1 OK Eth2/2 OK Eth2/3 OK Eth2/4 OK Eth2/5 OK Eth2/6 OK Eth2/7 OK Eth2/8 OK Eth2/9 OK Eth2/10 OK ...
To display the virtual device context (VDC) resource information, use the show vdc resource command.
show vdc resource [ monitor-session | port-channel | u4route-mem | vlan | vrf ] [detail]
monitor-session |
(Optional) Displays only the Switched Port Analyzer (SPAN) monitor session resources. |
port-channel |
(Optional) Displays only the port channel resource information. |
u4route-mem |
(Optional) Displays only the IPv4 unicast route memory resource information. |
u6route-mem |
(Optional) Displays only the IPv6 unicast route memory resource information. |
vlan |
(Optional) Displays only the VLAN resource information. |
vrf |
(Optional) Displays only the virtual forwarding and routing instance (VRF) resource information. |
detail |
(Optional) Displays detailed information. |
None
Any command mode
Release |
Modification |
---|---|
4.0(1) |
This command was introduced. |
You can use this command only in the default VDC (VDC 1).
This command does not require a license.
This example shows how to display summary VDC resource information:
switch# show vdc resource port-channel 0 used 0 unused 192 free 192 total monitor-session 0 used 0 unused 2 free 2 total vlan 14 used 34 unused 16370 free 16384 total u4route-mem 48 used 0 unused 208 free 256 total vrf 6 used 42 unused 8186 free 8192 total
This example shows how to display detailed VDC resource information:
switch# show vdc resource detail port-channel 0 used 0 unused 192 free 192 total -------------- Vdc Min Max Used Unused Avail ----- ----- ----- ------ -------- ------- switch 0 192 0 0 192 Payroll 0 192 0 0 192 MyVDC 0 192 0 0 192 monitor-session 0 used 0 unused 2 free 2 total ----------------- Vdc Min Max Used Unused Avail ----- ----- ----- ------ -------- ------- switch 0 2 0 0 2 Payroll 0 2 0 0 2 MyVDC 0 2 0 0 2 vlan 14 used 34 unused 16370 free 16384 total ------ Vdc Min Max Used Unused Avail ----- ----- ----- ------ -------- ------- switch 16 4094 10 6 4084 Payroll 16 4094 2 14 4092 MyVDC 16 4094 2 14 4092 u4route-mem 48 used 0 unused 208 free 256 total ------------- Vdc Min Max Used Unused Avail ----- ----- ----- ------ -------- ------- switch 32 256 32 0 208 Payroll 8 256 8 0 208 MyVDC 8 256 8 0 208 vrf 6 used 42 unused 8186 free 8192 total ----- Vdc Min Max Used Unused Avail ----- ----- ----- ------ -------- ------- switch 16 8192 2 14 8158 Payroll 16 8192 2 14 8158 MyVDC 16 8192 2 14 8158
This example shows how to display summary VDC resource information for port channels:
switch# show vdc resource port-channel port-channel 0 used 0 unused 192 free 192 total
This example shows how to display detailed VDC resource information for port channels:
switch# show vdc resource port-channel detail port-channel 0 used 0 unused 192 free 192 total -------------- Vdc Min Max Used Unused Avail ----- ----- ----- ------ -------- ------- switch 0 192 0 0 192 Payroll 0 192 0 0 192 MyVDC 0 192 0 0 192
To display the virtual device context (VDC) resource template information, use the show vdc resource template command.
show vdc resource template [vdc-template-name]
vdc-template-name |
(Optional) VDC resource template name. |
None
Any command mode
Release |
Modification |
---|---|
4.0(1) |
This command was introduced. |
You can use this command only in the default VDC (VDC 1).
This command does not require a license.
This example shows how to display summary information for all VDC resource templates:
switch# show vdc resource template MyTemplate ------------ Resource Min Max ---------- ----- ----- port-channel 8 64 global-default ---------------- Resource Min Max ---------- ----- ----- u4route-mem 32 256 vdc-default ------------- Resource Min Max ---------- ----- ----- port-channel 0 192 monitor-session 0 2 vlan 16 4094 u4route-mem 8 256 vrf 16 8192
This example shows how to display summary information for a specific VDC resource template:
switch# show vdc resource template MyTemplate MyTemplate ------------ Resource Min Max ---------- ----- ----- port-channel 8 64
This example shows how to display detailed VDC resource information:
switch# show vdc resource detail port-channel 0 used 0 unused 192 free 192 total -------------- Vdc Min Max Used Unused Avail ----- ----- ----- ------ -------- ------- switch 0 192 0 0 192 Payroll 0 192 0 0 192 MyVDC 0 192 0 0 192 monitor-session 0 used 0 unused 2 free 2 total ----------------- Vdc Min Max Used Unused Avail ----- ----- ----- ------ -------- ------- switch 0 2 0 0 2 Payroll 0 2 0 0 2 MyVDC 0 2 0 0 2 vlan 14 used 34 unused 16370 free 16384 total ------ Vdc Min Max Used Unused Avail ----- ----- ----- ------ -------- ------- switch 16 4094 10 6 4084 Payroll 16 4094 2 14 4092 MyVDC 16 4094 2 14 4092 u4route-mem 48 used 0 unused 208 free 256 total ------------- Vdc Min Max Used Unused Avail ----- ----- ----- ------ -------- ------- switch 32 256 32 0 208 Payroll 8 256 8 0 208 MyVDC 8 256 8 0 208 vrf 6 used 42 unused 8186 free 8192 total ----- Vdc Min Max Used Unused Avail ----- ----- ----- ------ -------- ------- switch 16 8192 2 14 8158 Payroll 16 8192 2 14 8158 MyVDC 16 8192 2 14 8158
To display the shared interfaces on a virtual device context (VDC), use the show vdc shared membership command.
show vdc shared membership
This command has no arguments or keywords.
None
Any command mode
Release |
Modification |
---|---|
5.2(1) |
This command was introduced. |
This command does not require a license.
This example shows how to display the shared interfaces on the VDC:
switch# show vdc shared membership vdc_id: 1 vdc_name: PE3_1 interfaces: vdc_id: 2 vdc_name: P2 interfaces: vdc_id: 3 vdc_name: CE3_1 interfaces: vdc_id: 4 vdc_name: test-vdc interfaces: switch#
Command |
Description |
---|---|
show vdc fcoe-vlan- range |
Displays the FCoE VLAN range on the VDC. |