Using 9.11.1.2208 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 9.11.1.2208 - iSCSI command not working - NetApp Community
use Invoke-NcSsh or Invoke-NcSystemApi
Thank you,
christybiskit