Using 22.214.171.1248 toolkit. I am connecting to the controller with this which works just fine: Connect-NcController -Name MYNETAPP -HTTPS -ONTAPI Name Address Vserver Version ---- ------- ------- ------- MYNETAPP x.x.x.x NetApp Release 9.10.1P6: Fri Jul 01 12:06:33 UTC 2022 But when I issue a Add-NCCifsShare command I get this: PS C:\Windows\system32> Add-NcCifsShare -Name qt_myshare1_mirror$ -Path /MYNETAPP_vol_myshare1_mirror/qt_myshare1 -VserverContext MYVSERVER Add-NcCifsShare : HomeDirectory parameter specified, which is not supported for ONTAPI call At line:1 char:1 + Add-NcCifsShare -Name qt_myshare1_mirror$ -Path /MYNETAPP_vol_mysh ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Add-NcCifsShare], ArgumentException + FullyQualifiedErrorId : HomeDirectory parameter specified, which is not supported for ONTAPI call,DataONTAP.C.Po werShell.SDK.Cmdlets.Cifs.AddNcCifsShare I am not specifying the "HomeDirectory" parameter. Anyone else encountered this? This command worked fine in an earlier version of the toolkit (9.6). I read this article and will try the suggestion given there and report back. Solved: PowerShell Toolkit 126.96.36.1998 - iSCSI command not working - NetApp Community use Invoke-NcSsh or Invoke-NcSystemApi Thank you, christybiskit
... View more
Hi, We are trying to use this command to get all the cifs share from one of our SVM on FAS8200 (DataOnTap version 9.7P14). But we are getting a credential error with or without the powershell in admin mode. How do we pass the correct credential to use by the command? Thanks for your help. Best regards, Quoc-ky
... View more
Dear PowerShell community,
We are glad to announce the release of NetApp PowerShell Toolkit version 9.7.1 This unified release has fixes for issues (release notes, module version & missing html files) that were observed for ONTAP PowerShell module 9.7.
ONTAP PowerShell Module: The latest release supports upto 2340 cmdlets and provides maximum API coverage for ONTAP 9.7 and is backward compatible with previous ONTAP releases. SANtricity PowerShell Toolkit The SANtricity PowerShell module supports more than 300 cmdlets, enabling the storage administration of NetApp E-Series storage systems and EF-Series all-flash arrays.
Download the NetApp PowerShell Toolkit 9.7.1 from here
Regards, NetApp PowerShell Toolkit Team
... View more
Dear PowerShell community, We are glad to announce the release of the NetApp® ONTAP® 188.8.131.528 PowerShell Toolkit. What’s New Toolkit introduces REST API functionality for cmdlets to support ONTAP features available through 9.11.1 through both REST and ZAPI. Toolkit has not made any changes to existing support for ZAPI calls. PSTK cmdlets use REST API by default from ONTAP 9.10.1 release onwards 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: Connect-NcController ControllerIP 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: Connect-NcController ControllerIP -ONTAPI 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 Use cmdlet uninstall-module DataONTAP if an older package is available. Use cmdlet install-module NetApp.ONTAP to install the ONTAP 184.108.40.2068 package. 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. New-Item -ItemType SymbolicLink -Path ("C:\Program Files\WindowsPowerShell\Modules\DataONTAP") -Target ("C:\Program Files\WindowsPowerShell\Modules\NetApp.ONTAP") New-Item -ItemType SymbolicLink -Path ("C:\Program Files\WindowsPowerShell\Modules\DataONTAP\220.127.116.118\DataONTAP.psd1") -Target ("C:\Program Files\WindowsPowerShell\Modules\DataONTAP\18.104.22.1688\NetApp.ONTAP.psd1") Once the commands have completed, import the module using both names “DataONTAP” and “NetApp.ONTAP”. NetApp ToolChest Download the package from the ToolChest. Extract the package. Execute Install.ps1 and enter the location where you want to update the existing package or do a fresh installation. 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
... View more
Hello, I just upgraded from version 22.214.171.1241 to version 126.96.36.1998 of the PowerShell Toolkit. After the upgrade, all of my PowerShell scripts fail with the message shown below. Any ideas as to the cause? I reverted to the VMware snapshot I took before upgrading and verified I can run the exact same commands pre-upgrade without any errors. Connect-NcController : The remote server returned an error: (401) Unauthorized. FullyQualifiedErrorId : HttpConnectionFailed,DataONTAP.C.PowerShell.SDK.ConnectNcController
... View more