Set-SCStorageFabric

Updates a storage Fibre Channel fabric object.

Syntax

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

Description

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

Examples

Example 1: Disable management of a storage fabric

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

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

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

Example 2: Enable management of a storage fabric

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

The first command gets the sdtorage fabric object named Fabric01, and stores that object in the $Fabric variable.

The second command gets the storage fabric classification object named PROD by using the Get-SCStorageFabricClassification cmdlet. The command stores that 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.

Example 3: Modify name and description of a storage fabric

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

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

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

Example 4: Modify a storage fabric classification

PS C:\> $Fabric = Get-SCStorageFabric -Name "Fabric01"
PS C:\> $Classification = Get-SCStorageFabricClassification -Name "PROD"
PS C:\> Set-SCStorageFabric -StorageFabric $Fabric -StorageFabricClassification $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 that object in the $Classification variable.

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

Parameters

-Description

Specifies a description for the storage Fibre Channel fabric object.

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

-DisableManagement

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

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

-EnableManagement

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

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

-JobVariable

Specifies a variable in which job progress is tracked and stored.

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

-Name

Specifies the name of the storage Fibre Channel fabric object that this cmdlet modifies.

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

-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

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

-RunAsynchronously

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

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

-StorageFabric

Specifies a storage Fibre Channel fabric object.

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

-StorageFabricClassification

Specifies a classification for storage Fibre Channel fabric.

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

Outputs

StorageFabric

This cmdlet returns a StorageFabric object.