Downloading and installing the plug-in package for PowerShell

To start using PowerShell cmdlets for storage provisioning, you must first download the IBM Storage Automation Plug-in for PowerShell from Microsoft PowerShell Gallery and install it on a Microsoft PowerShell host.

Before you begin

Verify that:
  • Windows Management Framework 5.0 has been installed.
  • Microsoft PowerShell 5.0 has been installed.
  • PowerShell user credentials have been defined in Spectrum Connect.

About this task

The following procedure details how to download, install, and properly configure the IBM Storage Automation Plug-in for PowerShell.

Procedure

  1. Go to Microsoft PowerShell Gallery (https://www.powershellgallery.com/packages/SpectrumConnect-Client) and download the plug-in to every Microsoft PowerShell host. You can also navigate to the PowerShell Gallery from within the Spectrum Connect GUI by clicking Download plug-in package on the bottom of the PowerShell Settings dialog box (right-click the PowerShell interface on the Interfaces pane, and select Modify).
  2. Initiate Microsoft PowerShell.
  3. In the PowerShell environment, use the Find-Module and Install-Module commands to locate and install the SpectrumConnect-Client package.
  4. Create connection between the IBM Storage Automation Plug-in for PowerShell and Spectrum Connect, using credentials previously defined in Spectrum Connect. Use the following procedure:
    $client=New-SCConnection -ConnectionUri https://9.115.247.148:8440 
    -UserName powershell -Password Passw0rd
    The session is active now.
  5. If you need to uninstall the plug-in, use the Uninstall-Module command to uninstall the SpectrumConnect-Client package.