Administrator Guide
A
Migrating Scripts from Version 5.x
This appendix provides information about migrating from Dell Storage Center Command Set version 5.x to 7.x. Scripts written with
version 6.x are compatible with version 7.
Syntax Modication Examples
At release 6.x, cmdlet syntax was modied to make parameters consistent, increase the ability to pipeline results, and simplify cmdlet
syntax. No additional syntax modications were made in version 7.x. The following examples illustrate how modications achieve
these goals.
Example One: Expand-SCVolume
Expand-SCVolume illustrates dierences in cmdlet syntax between versions 5.x and 6.x/7.x. The version 6.x/7.x syntax is cleaner and
easier to use than the version 5.x syntax.
Expand-SCVolume Syntax Version 5.x
Expand-SCVolume [[-NewSize] <String>] [[-ExpandBy] <String>] [[-Name] <String>] [-Index
<UInt32>] [-ParentFolder <String>] [-LogicalPath <String>] [-Notes <String>] [-Size
<String>] [ReadCacheEnabled [<Boolean>]] [-ReadAheadCacheEnabled [<Boolean>]] [-
WriteCacheEnabled [<Boolean>]] [-ActiveController <UInt32>] [-Status <String>] [-
SerialNumber <String>] [-StorageType <String>] [-IsReplicated [<Boolean>]] [-IsCopying
[<Boolean>]] [-IsMirrored [<Boolean>]] [-SCStorageProfile <SCStorageProfile>] [-
StorageProfileIndex <UInt32>] [-StorageProfileName <String>] [-ReplayProfileIndex <UInt32>]
[-ReplayProfileName <String>] [-SCReplayProfile <SCReplayProfile>] [-SCVolume <SCVolume>] [-
Connection <SCConnection>] [-ConnectionName <String>] [-WarningAction <ActionPreference>] [-
WarningVariable <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
Expand-SCVolume Syntax Version 6.x or 7.x
Expand-SCVolume [-SCVolume] <SCVolume> [[-NewSize] <String>] [[-ExpandBy] <String>] [-
Connection <SCConnection>] [-ConnectionName <String>] [-WhatIf] [-Confirm]
[<CommonParameters>]
The parameters that were removed had been used to select any volumes to be expanded. These parameters are referred to as
ltering parameters, and are available in the Get-SCVolume cmdlet.
The following examples show how ltering is performed by the Get-SCVolume cmdlet in version 6.x.
• Example of using Expand-SCVolume version 5.x:
Expand–SCVolume –Name TestVolume –ExpandBy 10G
• Example of using Expand-SCVolume version 6.x with PowerShell variables:
$vol = Get-SCVolume -Name TestVolume Expand-SCVolume -SCVolume $vol -ExpandBy 10G
• Example of using Expand-SCVolume version 6.x with embedded cmdlets:
Expand-SCVolume -SCVolume (Get-SCVolume -Name TestVolume) -ExpandBy 10G
• Example of using Expand-SCVolume version 6.x with cmdlets that have pipelines:
Get–SCVolume –Name TestVolume | Expand–SCVolume –ExpandBy 10G
The last three examples also demonstrate the dierent ways in which the result of the Get-SCVolume cmdlet can be used as input
to the Expand-SCVolume cmdlet.
In a similar way, other cmdlets have been modied to remove ltering and provide pipelining.
18
Migrating Scripts from Version 5.x