Disconnect-EmcSystem

Disconnects clusters, hosts, and storage systems.

 

Syntax

 

Parameters

-Id <String>

Attributes: Optional, Position: 1

Specifies the system user-friendly name or global ID. Wildcards are permitted. It is a positional parameter (position = 1).

 

-Force <SwitchParameter>

Attributes: Optional, Position: named

Allows the cmdlet to continue without asking for user confirmation.

 

-Silent <SwitchParameter>

Attributes: Optional, Position: named

Turns off all the informational and verbose messages. However, it still displays errors.

 

-WhatIf <SwitchParameter>

Attributes: Optional, Position: named

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

 

-Confirm <SwitchParameter>

Attributes: Optional, Position: named

Prompts you for confirmation before executing the command.

 

-System <SystemObjectBase>

Attributes: Optional, Position: named

Specifies the cluster, host, or storage system.

 

<CommonParameters>

This cmdlet supports these common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. Type get-help about_commonparameters for more details.

 

Examples

-------------- Example 1 --------------

C:\PS>$hBlob = Get-EmcHostSystemCredential

C:\PS>$h = $hBlob | Connect-EmcSystem

C:\PS>$sBlob = Get-EmcStorageSystemCredential

C:\PS>$s = $sBlob | Connect-EmcSystem

C:\PS>$cBlob = Get-EmcClusterSystemCredential

C:\PS>$c = $cBlob | Connect-EmcSystem

C:\PS>Disconnect-EmcSystem

This example disconnects the connected host, cluster, and storage systems.

 

---------- Example 2 ----------

C:\PS>$hBlob = Get-EmcHostSystemCredential

C:\PS>$h = $hBlob | Connect-EmcSystem

C:\PS>$sBlob = Get-EmcStorageSystemCredential

C:\PS>$s = $sBlob | Connect-EmcSystem

C:\PS>$cBlob = Get-EmcClusterSystemCredential

C:\PS>$c = $cBlob | Connect-EmcSystem

C:\PS>$h | Disconnect-EmcSystem

C:\PS>$c | Disconnect-EmcSystem

C:\PS>$s | Disconnect-EmcSystem

This example disconnects the specified host, cluster, or storage systems.

 

---------- Example 3 ----------

C:\PS>$hBlob = Get-EmcHostSystemCredential

C:\PS>$h = $hBlob | Connect-EmcSystem

C:\PS>$sBlob = Get-EmcStorageSystemCredential

C:\PS>$s = $sBlob | Connect-EmcSystem

C:\PS>$cBlob = Get-EmcClusterSystemCredential

C:\PS>$c = $cBlob | Connect-EmcSystem

C:\PS>$h | Disconnect-EmcSystem -Confirm

C:\PS>$c | Disconnect-EmcSystem -Confirm

C:\PS>$s | Disconnect-EmcSystem -Confirm

This example disconnects the specified host, cluster, and storage systems with user confirmation.

 

---------- Example 4 ----------

C:\PS>$hBlob = Get-EmcHostSystemCredential

C:\PS>$h = $hBlob | Connect-EmcSystem

C:\PS>$sBlob = Get-EmcStorageSystemCredential

C:\PS>$s = $sBlob | Connect-EmcSystem

C:\PS>$cBlob = Get-EmcClusterSystemCredential

C:\PS>$c = $cBlob | Connect-EmcSystem

C:\PS>$h | Disconnect-EmcSystem -Force

C:\PS>$c | Disconnect-EmcSystem -Force

C:\PS>$s | Disconnect-EmcSystem -Force

This example disconnects the specified host, cluster, and storage systems without user confirmation.

 

---------- Example 5 ----------

C:\PS>Disconnect-EmcSystem  *

C:\PS>Disconnect-EmcSystem  id *

C:\PS>Disconnect-EmcSystem -id mystorage*

C:\PS>Disconnect-EmcSystem -id myhost*

C:\PS>Disconnect-EmcSystem -id mycluster*

C:\PS>Disconnect-EmcSystem -id d456*

This example disconnects the storage systems as specified by the system user-friendly name or global ID (accepts wild card). Because the ID parameter is positional, you can omit the name.