4 Replies Latest reply on Jul 10, 2020 1:00 PM by winsolo

    Get Build number and Version of vSAN

    winsolo Novice

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

        • 1. Re: Get Build number and Version of vSAN
          LucD Guru
          User ModeratorsvExpertCommunity Warriors

          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: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
          • 2. Re: Get Build number and Version of vSAN
            winsolo Novice

            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}}

             

            • 3. Re: Get Build number and Version of vSAN
              LucD Guru
              vExpertUser ModeratorsCommunity Warriors

              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: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
              1 person found this helpful
              • 4. Re: Get Build number and Version of vSAN
                winsolo Novice

                Thank You Sir.