VMware Cloud Community
winsolo
Enthusiast
Enthusiast
Jump to solution

Get Build number and Version of vSAN

Is there a way to get the build number and the version of vSAN with its patch level?

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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

View solution in original post

4 Replies
LucD
Leadership
Leadership
Jump to solution

The VSAN version can be obtained like this

$clusterName = 'cluster'

$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

Reply
0 Kudos
winsolo
Enthusiast
Enthusiast
Jump to solution

Thanks LucD

This seems to give me the vCenter version instead of vSAN

$vsanHealth.VsanVcClusterQueryVerifyHealthSystemVersions($cluster.ExtensionData.MoRef) |

Select @{N='Cluster';E={$cluster.Name}},

    @{N='VSAN Version';E={$_.VcVersion}}

Snag_2a911a53.png
And this one gives me the version number. Don't you think the one in the HostResults is the vSAN version? Just want to confirm.

$vsanHealth.VsanVcClusterQueryVerifyHealthSystemVersions($cluster.ExtensionData.MoRef).HostResults

According to KB2150753 , this version seems to correspond with the build number of my ESXi host which is 10390116 (I ran this to get the build number of the ESXi host and cross-checked with the KB, as you described)

Get-View -ViewType HostSystem -Property Name,Config.Product | Format-Table Name, @{N='ESXi Version & Build Number';E={$_.Config.Product.FullName}}

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

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

winsolo
Enthusiast
Enthusiast
Jump to solution

Thank You Sir.

Reply
0 Kudos