VMware Cloud Community
bnk
Contributor
Contributor

get vsan version

When I try to get the vsan version, form an ESXi I get two different versions.
When I try: esxcli software vib get -n vsan
I get version 6.5.0
When I try:
$Cluster = Get-Cluster -Name "<cluster-name>"
$vchs = Get-VSANView -Id "VsanVcClusterHealthSystem-vsan-cluster-health-system"
$cluster_view = (Get-Cluster -Name $Cluster).ExtensionData.MoRef
$results = $vchs.VsanVcClusterQueryVerifyHealthSystemVersions($cluster_view)
write-Host "`nVC Version:"$results.VcVersion
$results.HostResults | Select Hostname, Version

I get version 6.6.1.

Which one is the write one?

Reply
0 Kudos
4 Replies
TheBobkin
Champion
Champion

Hello bnk,

Probably the 6.6.1 (which is ESXi 6.5 U1 and later) confirm that they are U1 or later using vmware -vl or check Web Client.

Bob

Reply
0 Kudos
bnk
Contributor
Contributor

But why is the vib version in ESXi 6.5.0, if vsan is version 6.6.1??

Reply
0 Kudos
TheBobkin
Champion
Champion

Hello bnk​,

Because that command just displays the base ESXi version - if you look in the 'Version' field of that command it indicates the exact build version in use.

Bob

Reply
0 Kudos
jbaker45
Contributor
Contributor

bnk,

I had the same question and finally found the answer I was looking for. Basically vsan is integrated with esxi so the version of esxi your host is using determines the vsan version.

This page helped: https://livevirtually.net/2017/01/12/correlating-vsan-versions-with-vsphere-vcenter-esxi-versions/

And this page as well: VMware Knowledge Base

Reply
0 Kudos