Hello,
Here is the output of two version we have from netapp Ontap ToolKit:
When running from Native windows installed Powershell Ontap ToolKit it works fine 🙂
PS H:\> Get-NaToolkitVersion
Major Minor Build Revision
----- ----- ----- --------
3 1 0 179
PS H:\>
PS H:\> Set-NcQuota -Type tree -Volume segot_segott0001_dsfs_4001 -Target /vol/segot_segott0001_dsfs_4001/segott0001_dsfs_4001_q1001n -VserverContext segotx9009
QuotaType QuotaTarget Volume Qtree DiskLimit FileLimit Vserver
--------- ----------- ------ ----- --------- --------- -------
tree /vol/segot_segott0001_dsfs_... segot_segott0... 122880 - segotx9009
PS H:\>
====================================================================================================================================
But then running from WFA's installed Powershell Ontap ToolKit it does not works and ends with the same issue....
PS C:\Program Files\NetApp\WFA\PoSH> .\profile.ps1
PS C:\Program Files\NetApp\WFA\PoSH> Get-NaToolkitVersion
Major Minor Build Revision
----- ----- ----- --------
3 3 0 62
PS C:\Program Files\NetApp\WFA\PoSH>
PS C:\Program Files\NetApp\WFA\PoSH> Set-NcQuota -Type tree -Volume segot_segott0001_dsfs_4001 -Target /vol/segot_segott0001_dsfs_4001/segott0001_dsfs_4001_q1001n -VserverContext segotx9009
Set-NcQuota : Object reference not set to an instance of an object.
At line:1 char:1
+ Set-NcQuota -Type tree -Volume segot_segott0001_dsfs_4001 -Target /vol/segot_seg ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (10.220.58.210:NcController) [Set-NcQuota], NullReferenceException
+ FullyQualifiedErrorId : QuotaGetEntryFailed,DataONTAP.C.PowerShell.SDK.Cmdlets.Quota.SetNcQuota
PS C:\Program Files\NetApp\WFA\PoSH>
Anyone Any help or suggestations.
,Sheel