次の方法で共有


Set-SCStorageFabric

Updates a storage Fibre Channel fabric object.

Syntax

Default (Default)

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

EnableManagement

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

DisableManagement

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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DisableManagement

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

DisableManagement
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-EnableManagement

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

EnableManagement
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-JobVariable

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments: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.

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-RunAsynchronously

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-StorageFabric

Specifies a storage Fibre Channel fabric object.

Parameter properties

Type:StorageFabric
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-StorageFabricClassification

Specifies a classification for storage Fibre Channel fabric.

Parameter properties

Type:StorageFabricClassification
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

EnableManagement
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

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

Outputs

StorageFabric

This cmdlet returns a StorageFabric object.