<?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 Re: How to Get Top 10 Consumers Via Get-NcQuotaReport in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/How-to-Get-Top-10-Consumers-Via-Get-NcQuotaReport/m-p/146300#M32481</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;why do you don't do the sort before the format table ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Gidi&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jan 2019 13:42:50 GMT</pubDate>
    <dc:creator>GidonMarcus</dc:creator>
    <dc:date>2019-01-30T13:42:50Z</dc:date>
    <item>
      <title>How to Get Top 10 Consumers Via Get-NcQuotaReport</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/How-to-Get-Top-10-Consumers-Via-Get-NcQuotaReport/m-p/146001#M32429</link>
      <description>&lt;P&gt;We would like to create a report that gives us the top X consumers of storage space on our volumes.&amp;nbsp; We can get a list of the users and their space used via&amp;nbsp;Get-NcQuotaReport | select QuotaUsers,DiskUsed.&amp;nbsp; However, the number in the DiskUsed field is left aligned so it does not sort well. We can use a Format-Table to right-align the numbers, but we get an error if we try and sort after the formatting is done. How can we get the disk used right-aligned so we can sort on it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;function Get-Usage{&lt;/P&gt;
&lt;P&gt;Get-NcQuotaReport | select QuotaUsers,DiskUsed | format-table QuotaUsers,@{n='Bytes';e={$_.DiskUsed};align='right'}&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;Get-Usage | Sort-Object -Property Bytes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;out-lineoutput : The object of type &lt;/P&gt;
&lt;P&gt;"Microsoft.PowerShell.Commands.Internal.Format.FormatEntryData" is not valid &lt;BR /&gt;or not in the correct sequence. This is likely caused by a user-specified &lt;BR /&gt;"format-*" command which is conflicting with the default formatting.&lt;BR /&gt; + CategoryInfo : InvalidData: (:) [out-lineoutput], InvalidOperat &lt;BR /&gt; ionException&lt;BR /&gt; + FullyQualifiedErrorId : ConsoleLineOutputOutOfSequencePacket,Microsoft.P &lt;BR /&gt; owerShell.Commands.OutLineOutputCommand&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 12:56:41 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/How-to-Get-Top-10-Consumers-Via-Get-NcQuotaReport/m-p/146001#M32429</guid>
      <dc:creator>EdS</dc:creator>
      <dc:date>2025-06-04T12:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get Top 10 Consumers Via Get-NcQuotaReport</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/How-to-Get-Top-10-Consumers-Via-Get-NcQuotaReport/m-p/146300#M32481</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;why do you don't do the sort before the format table ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Gidi&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 13:42:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/How-to-Get-Top-10-Consumers-Via-Get-NcQuotaReport/m-p/146300#M32481</guid>
      <dc:creator>GidonMarcus</dc:creator>
      <dc:date>2019-01-30T13:42:50Z</dc:date>
    </item>
  </channel>
</rss>

