<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Inconsistency with Get-NcQuotaReport between REST and ONTAPI in PSTK in PowerShell Discussions</title>
    <link>https://community.netapp.com/t5/PowerShell-Discussions/Inconsistency-with-Get-NcQuotaReport-between-REST-and-ONTAPI-in-PSTK/m-p/465593#M47</link>
    <description>&lt;P&gt;Trying to update all of our Powershell scripts using the PSTK to use REST, and ran across the following inconsitency:&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;PS d:\pstkscripts&amp;gt; get-NaToolkitVersion&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Major Minor Build Revision&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;----- ----- ----- --------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;9 18 1 2601&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;PS d:\pstkscripts&amp;gt; Get-NcQuotareport&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;QuotaType QuotaTarget Volume Qtree DiskUsed FilesUsed Vserver&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;--------- ----------- ------ ----- -------- --------- -------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;tree&amp;nbsp; &amp;nbsp; &amp;nbsp;adglbnpmshrd pilotosm 170196221952 200344 filer1d&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;tree&amp;nbsp; &amp;nbsp; &amp;nbsp;adukrpweb1 rpweb 4977668096 7201 filer1d&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;tree&amp;nbsp; &amp;nbsp; &amp;nbsp;afidubfs1 profiles 4326468419584 15963217 filer1f&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;PS d:\pstkscripts&amp;gt; Get-NcQuotareport -ontapi&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;QuotaType QuotaTarget Volume Qtree DiskUsed FilesUsed Vserver&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;--------- ----------- ------ ----- -------- --------- -------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;tree /vol/adglbnpmshrd/pilotosm adglbnpmshrd pilotosm 166207252 200344 filer1d&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;tree /vol/adukrpweb1/rpweb adukrpweb1 rpweb 4861020 7201 filer1d&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;tree /vol/afidubfs1/profiles afidubfs1 profiles 4225067908 15963222 filer1f&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Feb 2026 15:14:21 GMT</pubDate>
    <dc:creator>TheGoat</dc:creator>
    <dc:date>2026-02-09T15:14:21Z</dc:date>
    <item>
      <title>Inconsistency with Get-NcQuotaReport between REST and ONTAPI in PSTK</title>
      <link>https://community.netapp.com/t5/PowerShell-Discussions/Inconsistency-with-Get-NcQuotaReport-between-REST-and-ONTAPI-in-PSTK/m-p/465593#M47</link>
      <description>&lt;P&gt;Trying to update all of our Powershell scripts using the PSTK to use REST, and ran across the following inconsitency:&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;PS d:\pstkscripts&amp;gt; get-NaToolkitVersion&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Major Minor Build Revision&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;----- ----- ----- --------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;9 18 1 2601&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;PS d:\pstkscripts&amp;gt; Get-NcQuotareport&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;QuotaType QuotaTarget Volume Qtree DiskUsed FilesUsed Vserver&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;--------- ----------- ------ ----- -------- --------- -------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;tree&amp;nbsp; &amp;nbsp; &amp;nbsp;adglbnpmshrd pilotosm 170196221952 200344 filer1d&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;tree&amp;nbsp; &amp;nbsp; &amp;nbsp;adukrpweb1 rpweb 4977668096 7201 filer1d&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;tree&amp;nbsp; &amp;nbsp; &amp;nbsp;afidubfs1 profiles 4326468419584 15963217 filer1f&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;PS d:\pstkscripts&amp;gt; Get-NcQuotareport -ontapi&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;QuotaType QuotaTarget Volume Qtree DiskUsed FilesUsed Vserver&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;--------- ----------- ------ ----- -------- --------- -------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;tree /vol/adglbnpmshrd/pilotosm adglbnpmshrd pilotosm 166207252 200344 filer1d&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;tree /vol/adukrpweb1/rpweb adukrpweb1 rpweb 4861020 7201 filer1d&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;tree /vol/afidubfs1/profiles afidubfs1 profiles 4225067908 15963222 filer1f&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2026 15:14:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/PowerShell-Discussions/Inconsistency-with-Get-NcQuotaReport-between-REST-and-ONTAPI-in-PSTK/m-p/465593#M47</guid>
      <dc:creator>TheGoat</dc:creator>
      <dc:date>2026-02-09T15:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistency with Get-NcQuotaReport between REST and ONTAPI in PSTK</title>
      <link>https://community.netapp.com/t5/PowerShell-Discussions/Inconsistency-with-Get-NcQuotaReport-between-REST-and-ONTAPI-in-PSTK/m-p/466216#M48</link>
      <description>&lt;P&gt;We have a PS script that gathers volume, qtree, and aggregate space across 3 clusters, then exports results to a CSV to send to Xymon (aka Big Brother) monitoring system where it's sorted and presented on a unified webpage. Our operators use that to monitor space and send Servicenow tickets to the on-call person rather than having AIQUM spam everyone with alerts at night. I've been working on modifying the script to not use ONTAPI switch since that's being deprecated. I haven't experienced the problem you've described, but below is the qtree portion of the script. I do the math to get the units we prefer. They did change the units and I had to change my math to get the desired results.&lt;/P&gt;&lt;P&gt;# All we care about is Name, Allocated (GB), Free (GB), % Full, and Vserver.&amp;nbsp; A lot of what we do is driven by local Xymon expertise, so we don't get too complicated. Xymon works off percent full and sorts on that and is either green (&amp;lt;95), yellow (95-97), or red (&amp;gt;98). Pretty simple and no login required for our ops. I'm using the same PSTK version, but ONTAP 9.16.1P10. Due to some hardware EOS we can't go to 9.17 or above until later this year. Running PS 5.1. Hope this helps.&lt;/P&gt;&lt;P&gt;# Begin&lt;/P&gt;&lt;P&gt;$qtrees = Get-NcQuotaReport -Vserver * -Qtree * -QuotaType tree |&lt;BR /&gt;Where-Object { $_.DiskLimit -gt 0 } |&lt;BR /&gt;Select-Object @{&lt;BR /&gt;N="Name";E={$_.Qtree}&lt;BR /&gt;}, @{&lt;BR /&gt;N="Allocated (GB)";E={[math]::Round($_.DiskLimit/1.024GB)}&lt;BR /&gt;}, @{&lt;BR /&gt;N="Free (GB)";E={&lt;BR /&gt;$limit = [math]::Round($_.DiskLimit/1.024GB)&lt;BR /&gt;$used = [math]::Round($_.DiskUsed/1.024GB)&lt;BR /&gt;$limit - $used&lt;BR /&gt;}&lt;BR /&gt;}, @{&lt;BR /&gt;N="% Full";E={$_.DiskUsedPercentFileLimit}&lt;BR /&gt;}, @{&lt;BR /&gt;N="Vserver";E={$_.Vserver}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;# End&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2026 17:45:18 GMT</pubDate>
      <guid>https://community.netapp.com/t5/PowerShell-Discussions/Inconsistency-with-Get-NcQuotaReport-between-REST-and-ONTAPI-in-PSTK/m-p/466216#M48</guid>
      <dc:creator>sanmonkey</dc:creator>
      <dc:date>2026-03-10T17:45:18Z</dc:date>
    </item>
  </channel>
</rss>

