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.

Microsoft Virtualization Discussions

get-ncquota and set-ncquota use different Disklimits

koenraad0
6,927 Views

Set-NcQuota accepts a Disklimit in bytes.
Get-NcQuota returns Disklimit in kilobytes.

This is confusing and difficult when used in scripts.

I think this is a bug.
Toolkit version = 4.5
Cluster Ontap Version: NetApp Release 9.1P3

To reproduce:

Set-NcQuota -User 'domain\user' -volume testvolume - disklimit 3500MB -vservercontext VS0

(Get-NcQuota -Type User -Target 'domain\user' -volume testvolume -vservercontext VS0).Disklimit / 1MB


I'm transforming a 7-Mode script to Cluster-Mode.
Get-NaQuota & Set-NaQuota work as expected.

3 REPLIES 3

asulliva
6,851 Views

Hello @koenraad0,

 

This does appear to be a "quirk" of the PowerShell Toolkit.  The API returns values in KB.  I created a bug (#1128658).

 

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

KevinKruithof
6,154 Views

Hey Andrew, is there a fix forthcoming?  We ran into the same issue.

 

Thanks!

Kevin

Francis_Favorini
5,384 Views

Get-NcQuotaReport also reports space usage in KB. Kind of annoying and un-PowerShell. 🙁

Public