Is there a way to get the build number and the version of vSAN with its patch level?
Those are both VSAN version numbers.
The VcVersion one is at the vCenter level.
The ones in HostResults are the version numbers on each individual ESXi node in the VSAN cluster
See also William's post Getting started w/the new PowerCLI 6.5.1 Get-VsanView cmdlet
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
The VSAN version can be obtained like this
$cluster = Get-Cluster -Name $clusterName
$vsanHealth = Get-VSANView -Id 'VsanVcClusterHealthSystem-vsan-cluster-health-system'
$vsanHealth.VsanVcClusterQueryVerifyHealthSystemVersions($cluster.ExtensionData.MoRef) |
Select @{N='Cluster';E={$cluster.Name}},
@{N='VSAN Version';E={$_.VcVersion}}
For the build number, I consult KB2150753
I'm not even sure if there is an API method to get that build number.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks LucD
This seems to give me the vCenter version instead of vSAN
Select @{N='Cluster';E={$cluster.Name}},
@{N='VSAN Version';E={$_.VcVersion}}
Those are both VSAN version numbers.
The VcVersion one is at the vCenter level.
The ones in HostResults are the version numbers on each individual ESXi node in the VSAN cluster
See also William's post Getting started w/the new PowerCLI 6.5.1 Get-VsanView cmdlet
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thank You Sir.