NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Rest API Discussions

Get-NCQuota and Set-NCQuota not working properly in PSTK 9.14

bertvanbeusichem
959 Views

We ran in this problem after upgrading de PSTK to version 9.14, scripts on version 9.10 works ok.

when  we connect with  connect-nccontroller  "$netapp-name"  without parameters
get-ncquota -Vserver "$vserver" -QuotaTarget  "$domain\user"     ---> wil give you a complete list of all quota's 
Set-NcQuota -Vserver "$vserver" -QuotaTarget "$domain\user" -Volume "$volume" -Qtree "$qtree" -DiskLimit 16GB -type user
gives a warning: record doesn't exists

when  we connect with  connect-nccontroller  "$netapp-name" -ontapi parameter
get-ncquota -Vserver "$vserver" -QuotaTarget  "$domain\user"     ---> wil give the correct quota
Set-NcQuota -Vserver "$vserver" -QuotaTarget "$domain\user" -Volume "$volume" -Qtree "$qtree" -DiskLimit 16GB -type user 
gives an error 

Set-NcQuota : Group parameter neither specified nor set
At line:1 char:1
+ Set-NcQuota -Vserver xxxx -QuotaTarget 'xxxxx\xxxx' -Vol ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Set-NcQuota], ArgumentException
+ FullyQualifiedErrorId : Group is empty,DataONTAP.C.PowerShell.SDK.Cmdlets.Quota.SetNcQuota

any ideas?


0 REPLIES 0
Public