Get-VsanEnterMaintenanceModeReport Command | Vmware PowerCLI Reference

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 AccessbilityAndCompliance parameter set.

Syntax

Get-VsanEnterMaintenanceModeReport
-VMHost < VMHost >
-VsanDataMigrationMode < String >
[-AccessbilityAndCompliance ]
[-ProgressAction < ActionPreference > ]
[-Server < VIServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
VMHost VMHost named
  • pipeline
  • wildcards
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
If specified, retrieves inaccessible or noncompliant objects.
optional ProgressAction ActionPreference 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.
Get-VsanEnterMaintenanceModeReport
-VMHost < VMHost >
-VsanDataMigrationMode < String >
[-Capacity ]
[-ProgressAction < ActionPreference > ]
[-Server < VIServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
VMHost VMHost named
  • pipeline
  • wildcards
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 ProgressAction ActionPreference 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.

Output

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

Examples

Example 1

Get-VsanEnterMaintenanceModeReport -VMHost $vmHost -AccessbilityAndCompliance

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

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.