< Back

Get-VsanEnterMaintenanceModeReport

Sun Jan 19, 2020 7:16 pm

NAME Get-VsanEnterMaintenanceModeReport



SYNOPSIS

This cmdlet retrieves the report of capacity or objects which may have accessbility or compliance issues, if a

virtual machine host enters maintenance mode.





SYNTAX

Get-VsanEnterMaintenanceModeReport [-AccessibleAndCompliant] -VMHost <VMHost> -VsanDataMigrationMode <String>

[-Server <VIServer[]>] [<CommonParameters>]



Get-VsanEnterMaintenanceModeReport [-Capacity] -VMHost <VMHost> -VsanDataMigrationMode <String> [-Server

<VIServer[]>] [<CommonParameters>]





DESCRIPTION

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.





PARAMETERS

-AccessibleAndCompliant [<SwitchParameter>]

If specified, retrieves inaccessible or noncompliant objects.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Capacity [<SwitchParameter>]

If specified, retrieves details of the resource check.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-VMHost <VMHost>

Specifies the virtual machine host that enters the maintenance mode.



Required? true

Position? named

Default value None

Accept pipeline input? True

Accept wildcard characters? true



-VsanDataMigrationMode <String>

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.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Server <VIServer[]>

Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this

parameter, the command runs on the default servers. For more information about default servers, see the

description of the Connect-VIServer cmdlet.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? true



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

One VsanEnterMaintenanceModeReport







NOTES





Works only with vCenter Server vSAN 6.7 Update 3 or later.



For more information, see the VMware Storage Policy API Reference:

https://pubs.vmware.com/vsphere-60/inde ... -pane.html



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

Online Version: https://code.vmware.com/doc/preview?id= ... eport.html