Microsoft Virtualization Discussions

NetApp PowerShell Toolkit 9.11.1.2208 released!

Sapan
380 Views

Dear PowerShell community,

We are glad to announce the release of the NetApp® ONTAP® 9.11.1.2208 PowerShell Toolkit.

 

What’s New 

  1. Toolkit introduces REST API functionality for cmdlets to support ONTAP features available through 9.11.1 through both REST and ZAPI.
  2. Toolkit has not made any changes to existing support for ZAPI calls.
  3. PSTK cmdlets use REST API by default from ONTAP 9.10.1 release onwards
  4. Toolkit has not made any changes to existing support for ZAPI calls.
    • To execute cmdlets by using ZAPI calls, use the -ONTAPI parameter like below: 
      1. Connect-NcController ControllerIP
      2. Get-NcVserver -Name vs0 -ONTAPI
    • Set a global connection to execute all cmdlets using ZAPI calls use the -ONTAPI parameter at connection level like below:
      1. Connect-NcController ControllerIP -ONTAPI
      2. Get-NcVserver -Name vs0

PowerShell Toolkit Upgrade and Backward Compatibility

The toolkit name has been changed from DataONTAP to NetApp.ONTAP. To provide backward compatibility i.e. existing scripts compatibility and to allow users to import the module using the previous name, complete the following steps:

 

PowerShell Gallery

  1. Use cmdlet uninstall-module DataONTAP if an older package is available.
  2. Use cmdlet install-module NetApp.ONTAP to install the ONTAP 9.11.1.2208 package.
  3. Execute the following two commands.

Before executing these commands, ensure that “C:\Program Files\WindowsPowerShell\Modules\NetApp.ONTAP” exists. This is the default location where the PowerShell gallery install module resides. If this location has been updated, update the path accordingly.

  1. New-Item -ItemType SymbolicLink -Path ("C:\Program Files\WindowsPowerShell\Modules\DataONTAP") -Target ("C:\Program Files\WindowsPowerShell\Modules\NetApp.ONTAP")
  2. New-Item -ItemType SymbolicLink -Path ("C:\Program Files\WindowsPowerShell\Modules\DataONTAP\9.11.1.2208\DataONTAP.psd1") -Target ("C:\Program Files\WindowsPowerShell\Modules\DataONTAP\9.11.1.2208\NetApp.ONTAP.psd1")
  3. Once the commands have completed, import the module using both names “DataONTAP” and “NetApp.ONTAP”.

 NetApp ToolChest

  1. Download the package from the ToolChest.
  2. Extract the package.
  3. Execute Install.ps1 and enter the location where you want to update the existing package or do a fresh installation.
  4. Once the command has completed, import the module using both names “DataONTAP” and “NetApp.ONTAP”.

For more details refer to PowerShell Toolkit Installation Guide 

 

Toolkit can be downloaded from PowerShell Gallery as well.

 

Regards,
NetApp PowerShell Toolkit Team

0 REPLIES 0
Public