PowerCLI Get-VDPort commandlet does not display vDS information correctly
search cancel

PowerCLI Get-VDPort commandlet does not display vDS information correctly

book

Article ID: 419803

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

When multiple vDS are specified with the -VDswitch option, vDS Uplink information is not displayed correctly

PS C:\Users\Administrator> (Get-VDPort -VDswitch Test-vDS,Dswitch2 -Uplink).length
12
PS C:\Users\Administrator> (Get-VDPort -VDswitch Test-vDS -Uplink).length
8
PS C:\Users\Administrator> (Get-VDPort -VDswitch Dswitch2 -Uplink).length
8

There are a total of 16, but if multiple entries are made, only up to 12 is displayed.
The second specified vDS information is missing

Environment

vCenter Server 8.0 Update 3X
ESXi 8.0 Update 3X
PowerCLI 13.3.0 

Cause

This issue occurs because the uniqueness of each port is not taken into account when specifying multiple vDS with the Get-VDPort commandlet.

Resolution

PowerCLI will be fixed in the future version.

Work around
Specify a single vDS to display

 

Additional Information

It can display by using the following commandlet.

 

PowerCLI Get-VDPort コマンドレットが 分散スイッチの情報を正しく表示しません