Trying to update all of our Powershell scripts using the PSTK to use REST, and ran across the following inconsitency:
Get-NcQuotaReport is returning KiloByte Values when making a Ontapi call, yet it returns Byte values when making a REST call. And this is a problem, as ocassionally it will silently fallback to using Ontapi if not disabled.
PS d:\pstkscripts> get-NaToolkitVersion
Major Minor Build Revision
----- ----- ----- --------
9 18 1 2601
PS d:\pstkscripts> Get-NcQuotareport
QuotaType QuotaTarget Volume Qtree DiskUsed FilesUsed Vserver
--------- ----------- ------ ----- -------- --------- -------
tree adglbnpmshrd pilotosm 170196221952 200344 filer1d
tree adukrpweb1 rpweb 4977668096 7201 filer1d
tree afidubfs1 profiles 4326468419584 15963217 filer1f
PS d:\pstkscripts> Get-NcQuotareport -ontapi
QuotaType QuotaTarget Volume Qtree DiskUsed FilesUsed Vserver
--------- ----------- ------ ----- -------- --------- -------
tree /vol/adglbnpmshrd/pilotosm adglbnpmshrd pilotosm 166207252 200344 filer1d
tree /vol/adukrpweb1/rpweb adukrpweb1 rpweb 4861020 7201 filer1d
tree /vol/afidubfs1/profiles afidubfs1 profiles 4225067908 15963222 filer1f