Skip to content

Set-VsanClusterPowerStatus

Synopsis

Set the power status of a vSAN cluster.

Syntax

Set-VsanClusterPowerStatus [-server] <String> [-user] <String> [-pass] <String> [-clustername] <String> [-mgmt] [-PowerStatus] <String> [<CommonParameters>]

Description

The Set-VsanClusterPowerStatus cmdlet sets the power status of a vSAN cluster.

Examples

Example 1

Set-VsanClusterPowerStatus -server sfo-m01-vc01.sfo.rainpole.io -user administrator@vsphere.local  -Pass VMw@re1! -cluster sfo-m01-cl01 -PowerStatus clusterPoweredOff

This example powers off cluster sfo-m01-cl01.

Example 2

Set-VsanClusterPowerStatus -server sfo-m01-vc01.sfo.rainpole.io -user <administrator@vsphere.local>  -Pass VMw@re1! -cluster sfo-m01-cl01 -PowerStatus clusterPoweredOn

This example powers on cluster sfo-m01-cl01.

Parameters

-server

The FQDN of the vCenter Server.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-user

The username to authenticate to vCenter Server.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-pass

The password to authenticate to vCenter Server.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-clustername

The name of the vSAN cluster on which the power settings are to be applied.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-mgmt

The switch used to ignore power settings if management domain information is passed.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-PowerStatus

The power state to be set for a given vSAN cluster. The value can be one amongst ("clusterPoweredOff", "clusterPoweredOn").

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Common Parameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.