Disconnect-Cluster

SYNOPSIS

Disconnects from a PowerStore cluster.

SYNTAX

ByHostName (Default)

Disconnect-Cluster -HostName <String> [-DeleteCredentials] [-Confirm] [-Force] [-WhatIf] [<CommonParameters>]

ByCluster

Disconnect-Cluster [-Cluster] <Cluster> [-DeleteCredentials] [-Confirm] [-Force] [-WhatIf] [<CommonParameters>]

DESCRIPTION

Disconnects from a PowerStore cluster. The command will succeed in case the cluster is not connected.

With DeleteCredentials option, if there is a configuration file created by the Connect-Cluster command that containing credentials, it will be deleted.

EXAMPLES

Example 1

PS C:\> Disconnect-Cluster -HostName host -DeleteCredentials

Disconnects from the cluster with host name host, and deletes previously saved credentials.

Example 2

PS C:\> Disconnect-Cluster -Cluster $cluster

Where $cluster is a PowerStore cluster instance. Disconnects from the cluster.

PARAMETERS

-HostName

FQDN or IP address.

Type: String
Parameter Sets: ByHostName
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-Cluster

A PowerStore cluster instance.

Type: Cluster
Parameter Sets: ByCluster
Aliases:

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

-DeleteCredentials

Deletes the file that contains credentials and connection information.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

-Force

Suppress confirmation prompt before disconnecting the cluster.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

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

CommonParameters

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

INPUTS

System.String

OUTPUTS

System.Object

NOTES