Set-SCStorageFabric

Set-SCStorageFabric

Updates a storage Fibre Channel fabric object.

Syntax

Parameter Set: Default
Set-SCStorageFabric [-StorageFabric] <StorageFabric> [-Description <String> ] [-JobVariable <String> ] [-Name <String> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [ <CommonParameters>]

Parameter Set: DisableManagement
Set-SCStorageFabric [-StorageFabric] <StorageFabric> -DisableManagement [-Description <String> ] [-JobVariable <String> ] [-Name <String> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [ <CommonParameters>]

Parameter Set: EnableManagement
Set-SCStorageFabric [-StorageFabric] <StorageFabric> -EnableManagement -StorageFabricClassification <StorageFabricClassification> [-Description <String> ] [-JobVariable <String> ] [-Name <String> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [ <CommonParameters>]

Detailed Description

The Set-SCStorageFabric cmdlet updates a storage Fibre Channel fabric object.

Parameters

-Description<String>

States a description for the specified object.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-DisableManagement

Indicates that this cmdlet disables management of the Fibre Channel fabric.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-EnableManagement

Indicates that this cmdlet enables management of the Fibre Channel fabric.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-JobVariable<String>

Specifies that job progress is tracked and stored in the variable named by this parameter.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Name<String>

Specifies the name of a VMM object.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-PROTipID<Guid]>

Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-StorageFabric<StorageFabric>

Specifies a storage Fibre Channel fabric object.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-StorageFabricClassification<StorageFabricClassification>

Specifies a classification for storage Fibre Channel fabric.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • StorageFabric

Examples

Example 1: Disable management of a storage fabric

The first command gets the storage fabric object named Fabric01, and then stores the object in the $fabric variable.

The second command disables management of the storage fabric object stored in $fabric.

PS C:\> $fabric = Get-SCStorageFabric -Name "Fabric01"
PS C:\> Set-SCStorageFabric -StorageFabric $fabric -DisableManagement

Example 2: Enable management of a storage fabric

The first command gets the storage fabric object named Fabric01, and then stores the object in the $fabric variable.

The second command gets the storage fabric classification object named PROD, and then stores the object in the $classification variable.

The last command enables management of the storage fabric stored in $fabric, and applies the storage classification stored in $classification.

PS C:\> $fabric = Get-SCStorageFabric -Name "Fabric01"
PS C:\> $classification = Get-SCStorageFabricClassification -Name "PROD"
PS C:\> Set-SCStorageFabric -StorageFabric $fabric -StorageFabricClassification $classification -EnableManagement

Example 3: Modify name and description of a storage fabric

The first command gets the storage fabric object named Fabric01, and then stores the object in the $fabric variable.

The second command applies a new name and a description to the storage fabric object stored in $fabric.

PS C:\> $fabric = Get-SCStorageFabric -Name "Fabric01"
PS C:\> Set-SCStorageFabric -StorageFabric $fabric -Name "newName" -Description "newDescription"

Example 4: Modify a storage fabric classification

The first command gets the storage fabric object named Fabric01, and then stores the object in the $fabric variable.

The second command gets the storage fabric classification object named PROD, and then stores the object in the $classification variable.

The last command applies the classification stored in $classification to the storage fabric stored in $fabric.

PS C:\> $fabric = Get-SCStorageFabric -Name "Fabric01"
PS C:\> $classification = Get-SCStorageFabricClassification -Name "PROD"
PS C:\> Set-SCStorageFabric -StorageFabric $fabric -StorageFabricClassification $classification

Get-SCStorageFabric

Get-SCStorageFabricClassification