Dell Storage API PowerShell SDK Getting Started Guide
Dell Storage API PowerShell SDK Getting Started Guide
Started Guide
The Dell Storage API PowerShell SDK allows you to manage a Data Collector and Storage Centers to the
same extent as using Storage Manager.
Revision History
Document number: 680-125-001
NOTE: The following cmdlets for Host Setup must be run on a system with a 64-bit operating
system:
– Connect-DellHostSetupIscsiTarget
– Get-DellEmDiscoveredStorageCenter
– Get-DellEmDiscoveredStorageCenterByMacAddress
– Get-DellEmDiscoveredStorageCenterDataCollectorAssociation
– Get-DellEmDiscoveredStorageCenterDisk
– Get-DellEmDiscoveredStorageCenterInitialConfigSteps
– Get-DellHostSetupBestPractices
– Get-DellHostSetupBlackListedDriver
– Get-DellHostSetupHba
– Get-DellHostSetupIscsiPortal
– Set-DellEmDiscoveredStorageCenterIndicatorOff
– Set-DellEmDiscoveredStorageCenterIndicatorOn
– Set-DellHostSetupBestPractices
– Start-DellEmDiscoveredStorageCenterDiscover
– Start-DellEmDiscoveredStorageCenterInitializeConfiguration
– Test-DellEmDiscoveredStorageCenterConfiguration
1. Download the Dell Storage PowerShell SDK .ZIP file (for example,
DellStoragePowerShellSDK_v3_X_X_XXX.zip) from the Dell Knowledge Center or support.dell.com.
• Files required to run Dell Storage PowerShell Cmdlets as well as script examples.
• PowerShellApiHtml.zip – Contains the HTML help files for the Dell Storage PowerShell Cmdlets.
2. Unzip the files from the PowerShell .ZIP file to a local directory.
3. Open Windows PowerShell.
4. Type the following command into PowerShell, using the local directory where the files were saved in
Step 2 in place of “{Install Path}”: Import-Module "{Install Path}
\DellStorage.ApiCommandSet.psd1"
NOTE: The Import-Module command must be run each time a PowerShell session is initiated.
5. (Optional) To run one of the Host Setup cmdlets listed in the Prerequisites, you must first register the
Host Setup assembly. The assembly needs to be registered only once. To register the assembly, type
the following command into PowerShell on a system with a 64-bit operating system: C:\Windows
\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe "{Install Path}
\RSWHostConfigLib.dll" /codebase
NOTE: The RegASM: warning RA0000 may display when you register the Host Setup assembly.
No action is necessary. You may continue to use the Dell Storage PowerShell Cmdlets.
You can now use the Dell Storage PowerShell Cmdlets and use the Get-Help command for more
information on the installed cmdlets.
2
Run the Dell Storage PowerShell Cmdlets
Use the following cmdlets to open a connection to an Storage Manager Data Collector, view help, view
Storage Centers, and log off the Data Collector.
NOTE: You cannot use the Dell Storage PowerShell Cmdlets by connecting directly to a Storage
Center.
Port : 3033
Name : NamedConnection
HostName : {Hostname}
User : UserName
DefaultConnection : False
• Use a named connection:
Output...
• Remove a named connection:
3
True
Port : 3033
Name : DefaultConnection
HostName : {Hostname}
User : UserName
DefaultConnection : True
• Use the default connection:
Get-DellStorageCenter
Output...
• Create a new NAS volume for a FluidFS cluster using the default values:
4
Frequently Asked Questions (FAQs) about the Dell Storage API PowerShell
SDK
Find answers to some of the most common questions about the Dell Storage API PowerShell SDK.
Why Does an Error Message Appear When Connecting to an Storage Manager Data Collector Using the
Connect-DellApiConnection Cmdlet?
To resolve the issue, ensure that the value after the -HostName parameter is to the hostname or IP
address of an available server that has Storage Manager Data Collector installed and running.
Confirm Are you sure you want to perform this action? Performing operation ... [Y] Yes [A] Yes to All [N]
No [L] No to All [S] Suspend [?] Help (default is "Y")
To provide full functionality, some of the Dell Storage cmdlets modify the state of a Storage Center or
Data Collector (this includes restarting or shutting down these devices). In those cases, the cmdlets
require a confirmation that you want to proceed.
If an object, method, or attribute is marked as deprecated, will it be removed from the Dell Storage
API?
Dell follows the standard of supporting deprecated entities in the API through the next major version. For
example, if an object is marked as deprecated in version 3.x, the object will still be present and functional
through all the 3.x and 4.x versions. However, that object may be removed from the API starting with
version 5.x.
5
Dell Storage API PowerShell SDK: Legacy PSCS Mapping
Table 1 shows the mapping between the Legacy Compellent PSCS cmdlets to the current Dell Storage
API PowerShell SDK cmdlets. The mappings do not indicate direct conversions but instead show the new
cmdlets that perform the same basic functionality as the legacy PowerShell cmdlets.
Add-CMLVolumeAccessPath (None)
Add-SCReplayProfileRule New-DellScReplayProfileRule
Add-SCServerPort Add-DellScPhysicalServerHba
Add-DellScVirtualServerHba
Add-VolumeAccessPath (None)
CancelSwapRole-SCLiveVolume Stop-DellScLiveVolumeSwapRole
ConvertTo-SCAsyncReplication Start-DellScLiveVolumeToReplicationRevert
ConvertTo-SCLiveVolume Convert-DellScReplicationToLiveVolume
Expand-SCVolume Expand-DellScVolume
Get-CMLDiskDevice (None)
Get-CMLNextFreeDriveLetter (None)
Get-CMLVolume (None)
Get-DiskDevice (None)
Get-NextFreeDriveLetter (None)
Get-SCAlert Get-DellScAlert
Get-SCAsyncReplication Get-DellScReplication
Get-SCCmm Get-DellScCopyMirrorMigrate
Get-SCCommandSetVersion Get-DellStorageApiCommandSetVersion
Get-SCConnection Connect-DellApiConnection
Get-SCDisk Get-DellScDisk
6
PSCS 7.x Legacy Dell Storage API 3.x PowerShell SDK
Get-SCDiskFolder Get-DellScDiskFolder
Get-SCLiveVolume Get-DellScLiveVolume
Get-SCOSType Get-DellScServerOperatingSystem
Get-SCPort Get-DellScControllerPort
Get-SCReplay Get-DellScReplay
Get-SCReplayProfile Get-DellScReplayProfile
Get-SCReplaySchedule Get-DellScReplayProfileRule
Get-SCReplicationQos Get-DellScReplicationQosNode
Get-SCServer Get-DellScServer
Get-SCServerFolder Get-DellScServerFolder
Get-SCStorageCenter Get-DellStorageCenter
Get-SCStorageProfile Get-DellScStorageProfile
Get-SCStorageType Get-DellScStorageType
Get-SCUser Get-DellScUser
Get-SCVolume Get-DellScVolume
Get-SCVolumeFolder Get-DellScVolumeFolder
Get-SCVolumeMap Get-DellScMapping
Get-DellScMappingProfile
Get-Volume (None)
New-CMLVolume (None)
New-SCAsyncReplication New-DellScReplication
New-SCCmmCopy New-DellScCopyMirrorMigrateViaCopy
New-SCCmmMigrate New-DellScCopyMirrorMigrateViaMigrate
New-SCCmmMirror New-DellScCopyMirrorMigrateViaMirror
7
PSCS 7.x Legacy Dell Storage API 3.x PowerShell SDK
New-SCLiveVolume New-DellScLiveVolume
New-SCReplay New-DellScVolumeReplay
New-SCReplayProfile New-DellScReplayProfile
New-SCReplaySchedule New-DellScReplayProfileRule
New-SCReplicationQos New-DellScReplicationQosNode
New-DellScReplicationQosAdvancedSettings
New-SCServer New-DellScServerCluster
New-DellScPhysicalServer
New-DellScVirtualServer
New-SCServerFolder New-DellScServerFolder
New-SCStorageProfile New-DellScStorageProfile
New-SCUser New-DellScUser
New-SCVolume New-DellScVolume
New-SCVolumeFolder New-DellScVolumeFolder
New-SCVolumeMap Add-DellScVolumeToServerMap
New-Volume (None)
Pause-SCAsyncReplication Suspend-DellScReplication
Pause-SCCmm Suspend-DellScCopyMirrorMigrate
Preallocate-SCVolume Start-DellScVolumePreallocateStorage
Remove-CMLVolumeAccessPath (None)
Remove-SCAsyncReplication Remove-DellScReplication
Remove-SCCmm Remove-DellScCopyMirrorMigrate
Remove-SCConnection Remove-DellSavedApiConnection
Remove-SCLiveVolume Remove-DellScLiveVolume
Remove-SCRecycleBinVolume Remove-DellScVolume
Remove-SCReplay Start-DellScReplayExpire
8
PSCS 7.x Legacy Dell Storage API 3.x PowerShell SDK
Remove-SCReplayProfile Remove-DellScReplayProfile
Remove-SCReplaySchedule Remove-DellScReplayProfileRule
Remove-SCReplicationQos Remove-DellScReplicationQosNode
Remove-SCServer Remove-DellScServer
Remove-SCServerFolder Remove-DellScServerFolder
Remove-SCServerPort Remove-DellScVirtualServerHba
Remove-DellScPhysicalServerHba
Remove-SCStorageProfile Remove-DellScStorageProfile
Remove-SCUser Remove-DellScUser
Remove-SCVolume Start-DellScVolumeRecycle
Remove-SCVolume-SkipRecycleBin Remove-DellScVolume
Remove-SCVolumeFolder Remove-DellScVolumeFolder
Remove-SCVolumeMap Remove-DellScMappingProfile
Remove-SCVolumeReplayProfile Set-DellScVolumeConfiguration
Remove-VolumeAccessPath (None)
Rescan-CMLDiskDevice (None)
Rescan-DiskDevice (None)
Restore-SCRecycleBinVolume Restore-DellScVolume
Resume-SCAsyncReplication Resume-DellScReplication
Resume-SCCmm Resume-DellScCopyMirrorMigrate
Set-CMLDiskDevice (None)
Set-CMLVolume (None)
Set-DiskDevice (None)
Set-SCAsyncReplication Set-DellScReplication
Set-SCCmm Set-DellScCopyMirrorMigrate
9
PSCS 7.x Legacy Dell Storage API 3.x PowerShell SDK
Set-SCDisk Set-DellScDiskRevertToManaged
Set-SCLiveVolume Set-DellScLiveVolume
Set-SCReplay Set-DellScReplay
Set-SCReplayProfile Set-DellScReplayProfile
Set-SCReplicationQos Set-DellScReplicationQosNode
Set-SCServer Set-DellScPhysicalServer
Set-DellScVirtualServer
Set-DellScServerCluster
Set-SCServerFolder Set-DellScServerFolder
Set-SCStorageProfile Set-DellScStorageProfile
Set-SCUser Set-DellScUser
Set-SCVolume Set-DellScVolume
Set-DellScVolumeConfiguration
Set-SCVolumeFolder Set-DellScVolumeFolder
Set-SCVolumeReplayProfile Set-DellScVolumeConfiguration
Set-SCVolumeStorageProfile Set-DellScVolumeConfiguration
Set-Volume (None)
SwapRole-SCLiveVolume Start-DellScLiveVolumeSwapRole
Copyright © 2016 Dell Inc. All rights reserved. This product is protected by U.S. and international copyright and
intellectual property laws. Dell™ and the Dell logo are trademarks of Dell Inc. in the United States and/or other
jurisdictions. All other marks and names mentioned herein may be trademarks of their respective companies.
10