<?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: Get total filer capacity and available capacity in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-total-filer-capacity-and-available-capacity/m-p/27057#M1218</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Craig, We can attain the same using powershell custom objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at the code below and run it in your environment to get the required information. We can use Get-NaDisk and extract the total,available and used storage on the controller&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$info = New-Object -TypeName PSObject -Property&amp;nbsp; @{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;'FilerName' = (Get-NaSystemInfo).systemname;&lt;/P&gt;&lt;P&gt;'Total Physical Disk Space Capacity (TB)'=([math]::round((((Get-NaDisk | % { $_.PhysicalSpace} | Measure-Object -Sum).sum)/1TB),2));&lt;/P&gt;&lt;P&gt;'Used Disk Space Capacity (TB)'=([math]::round((((Get-NaDisk | % { $_.UsedSpace} | Measure-Object -Sum).sum)/1TB),2));&lt;/P&gt;&lt;P&gt;'Available Disk Capacity (TB)'=(([math]::round((((Get-NaDisk | % { $_.PhysicalSpace} | Measure-Object -Sum).sum)/1TB),2)) - ([math]::round((((Get-NaDisk | % { $_.UsedSpace} | Measure-Object -Sum).sum)/1TB),2)));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;} &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$info&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/18309_capacity.png" style="height: 309px; width: 842.7272727272727px;" width="843" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use custom hash tables to append all values to one place rather than using Add-Content to create reusable objects, please have a look at the link &lt;A class="jive-link-external-small active_link" href="http://blogs.msdn.com/b/powershell/archive/2009/12/05/new-object-psobject-property-hashtable.aspx" style="font-style: inherit; font-family: inherit; color: #009fda;" target="_blank"&gt;http://blogs.msdn.com/b/powershell/archive/2009/12/05/new-object-psobject-property-hashtable.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do let me know if this is what you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jan 2013 02:31:05 GMT</pubDate>
    <dc:creator>vinith</dc:creator>
    <dc:date>2013-01-10T02:31:05Z</dc:date>
    <item>
      <title>Get total filer capacity and available capacity</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-total-filer-capacity-and-available-capacity/m-p/27053#M1217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to powershell and am trying to create a script that will give the total capacity of the filer and available capacity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen the getnavol and getaggr and use them to get that data but am stumped on how to get total capacity data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance is appreciated&amp;nbsp; &lt;SPAN __jive_emoticon_name="confused" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.netapp.com/5.0.1/images/emoticons/confused.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:12:33 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-total-filer-capacity-and-available-capacity/m-p/27053#M1217</guid>
      <dc:creator>CRAIGEGROSS</dc:creator>
      <dc:date>2025-06-05T06:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get total filer capacity and available capacity</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-total-filer-capacity-and-available-capacity/m-p/27057#M1218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Craig, We can attain the same using powershell custom objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at the code below and run it in your environment to get the required information. We can use Get-NaDisk and extract the total,available and used storage on the controller&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$info = New-Object -TypeName PSObject -Property&amp;nbsp; @{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;'FilerName' = (Get-NaSystemInfo).systemname;&lt;/P&gt;&lt;P&gt;'Total Physical Disk Space Capacity (TB)'=([math]::round((((Get-NaDisk | % { $_.PhysicalSpace} | Measure-Object -Sum).sum)/1TB),2));&lt;/P&gt;&lt;P&gt;'Used Disk Space Capacity (TB)'=([math]::round((((Get-NaDisk | % { $_.UsedSpace} | Measure-Object -Sum).sum)/1TB),2));&lt;/P&gt;&lt;P&gt;'Available Disk Capacity (TB)'=(([math]::round((((Get-NaDisk | % { $_.PhysicalSpace} | Measure-Object -Sum).sum)/1TB),2)) - ([math]::round((((Get-NaDisk | % { $_.UsedSpace} | Measure-Object -Sum).sum)/1TB),2)));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;} &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$info&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/18309_capacity.png" style="height: 309px; width: 842.7272727272727px;" width="843" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use custom hash tables to append all values to one place rather than using Add-Content to create reusable objects, please have a look at the link &lt;A class="jive-link-external-small active_link" href="http://blogs.msdn.com/b/powershell/archive/2009/12/05/new-object-psobject-property-hashtable.aspx" style="font-style: inherit; font-family: inherit; color: #009fda;" target="_blank"&gt;http://blogs.msdn.com/b/powershell/archive/2009/12/05/new-object-psobject-property-hashtable.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do let me know if this is what you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 02:31:05 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-total-filer-capacity-and-available-capacity/m-p/27057#M1218</guid>
      <dc:creator>vinith</dc:creator>
      <dc:date>2013-01-10T02:31:05Z</dc:date>
    </item>
  </channel>
</rss>

