1 Reply Latest reply on Jul 17, 2019 12:35 AM by LucD

    How to retrieve 'Swap Objects' capacity from vCenter using powerCLI.

    MarosNZ Lurker

      How can I retrieve 'Swap Objects' capacity from vCenter using powerCLI.

      You can find it in VSAN cluster > Monitor > vSAN > Capacity.

      See below picture.

        • 1. Re: How to retrieve 'Swap Objects' capacity from vCenter using powerCLI.
          LucD Guru
          User ModeratorsCommunity WarriorsvExpert

          In the current PowerCLI release (11.3.0), the Get-VsanSpaceUsage cmdlet doesn't show the Swap Objects yet.

          But with Get-VsanView we can get there.

           

          $clusterName = 'cluster'

           


          $cluster = Get-Cluster -Name $clusterName

          $vSpace = Get-VsanView -Id 'VsanSpaceReportSystem-vsan-cluster-space-report-system'

          $vSpaceUsage = $vSpace.VsanQuerySpaceUsage($cluster.Id)

          $vSpaceUsage.SpaceDetail.SpaceUsageByObjectType | where { $_.ObjType -eq 'vmswap' }

          Blog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
          1 person found this helpful