Get-VsanEnterMaintenanceModeReport

This cmdlet retrieves the report of capacity or objects which may have accessbility or compliance issues, if a virtual machine host enters maintenance mode. The report data includes: 1. Overall state: The possible statuses are: Green - resource check passed for the queried operation. There is sufficient resource in the vSAN cluster to perform the queried operation. Yellow - resource check passed for the queried operation, but there is an existing issue in the cluster, for example, network partition. Red - resource check failed for the queried operation. Extra resource is required to make the given operation succeed. 2. Each virtual machine host's capacity report for the Capacity parameter set. 3. Objects which may have accessbility or compliance issues for the AccessibleAndCompliant parameter set.

Syntax

-VMHost  <VMHost>
-VsanDataMigrationMode  <String>
[-AccessbilityAndCompliance]
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
VMHost
VMHost named
  • wildcards
  • pipeline
  • Specifies the virtual machine host that enters the maintenance mode.
    required
    VsanDataMigrationMode
    String named Specifies the vSAN data migration mode. The valid values are: ensureObjectAccessibility: The vSAN data reconfiguration should be performed to ensure storage object accessibility. evacuateAllData: The vSAN data evacuation should be performed in such a way that you can remove all storage object data from the virtual machine host. noAction: No special action should take place regarding the vSAN data.
    optional
    AccessbilityAndCompliance
    SwitchParameter named
    optional
    Server
    VIServer[] named
  • wildcards
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.

    -VMHost  <VMHost>
    -VsanDataMigrationMode  <String>
    [-Capacity]
    [-Server  <VIServer[]>]
    [CommonParameters]

    Parameters

    Required Parameter Name Type Position Features Description
    required
    VMHost
    VMHost named
  • wildcards
  • pipeline
  • Specifies the virtual machine host that enters the maintenance mode.
    required
    VsanDataMigrationMode
    String named Specifies the vSAN data migration mode. The valid values are: ensureObjectAccessibility: The vSAN data reconfiguration should be performed to ensure storage object accessibility. evacuateAllData: The vSAN data evacuation should be performed in such a way that you can remove all storage object data from the virtual machine host. noAction: No special action should take place regarding the vSAN data.
    optional
    Capacity
    SwitchParameter named If specified, retrieves details of the resource check.
    optional
    Server
    VIServer[] named
  • wildcards
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.

    Output

    VMware.VimAutomation.Storage.Commands.Cmdlets.Vsan.GetVsanEnterMaintenanceModeReport

    Examples


    Example 1

    Get-VsanEnterMaintenanceModeReport -VMHost $vmHost -AccessibleAndCompliant

    Retrieves one VsanEnterMaintenanceModeReport with objects which may have accessbility or compliance issues.

    Example 2

    Get-VsanEnterMaintenanceModeReport -VMHost $vmHost -Capacity

    Retrieves one VsanEnterMaintenanceModeReport with each virtual machine host's capacity report.

    Related Commands

    Feedback

    Was this page helpful?