VMware Cloud Community
bobinhedgeorge
Contributor
Contributor

VDS Health Check Status on Get-VMHost Object/Network Object

I am trying to find an object property that shows the results of the VDS health check for VLANs.

've managed to configure the VDS health check for VlanMtu through PowerCLI but I need a scripted way to determine if the hosts see the correct VLANs.

Here is the API call for VDS health config:

            $Spec = New-Object VMware.Vim.VMwareDVSVlanMtuHealthCheckConfig

            $Spec.Enable = $True

            $Spec.Interval = 1

            $DistributedSwitchView = Get-View $DistributedSwitch

            $OutNull = $DistributedSwitchView.UpdateDVSHealthCheckConfig_Task($Spec)

            $Spec = New-Object VMware.Vim.VMwareDVSTeamingHealthCheckConfig

            $Spec.Enable = $False

            $Spec.Interval = 1

            $DistributedSwitchView = Get-View $DistributedSwitch

            $OutNull = $DistributedSwitchView.UpdateDVSHealthCheckConfig_Task($Spec)

0 Replies