<?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: Powershell Code to return Storage Data info in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Powershell-Code-to-return-Storage-Data-info/m-p/167705#M6407</link>
    <description>&lt;P&gt;For aggregate info use "Get-NcAggr"&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Connect-NcController {ipaddress}&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Get-NcAggr&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;$aggr = Get-NcAggr -Name {aggregate name in list}&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;$aggr | format-list&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...if you need more detailed info then drill into any of the 'DataONTAP.C.Types' objects you see listed...&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;$aggr.AggrSpaceAttributes&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...to reference specific properties use $aggr.{propertyname} to retrieve the value&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;$aggr.AggregateName&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;$aggr.AggregateTotalSize&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;$aggr.AggregateUsed&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;$aggr.AggregateAvailable&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;$aggr.AggrSpaceAttributes.PhysicalUsedPercent&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Volume info use Get-NcVol and for LUNs use Get-NcLun, and do the same drill downs as in the Get-NcAggr example above to find the needed values...and use tab completion when drilling down into the objects - makes it a LOT easier than all that typing&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jun 2021 14:48:06 GMT</pubDate>
    <dc:creator>JohnChampion</dc:creator>
    <dc:date>2021-06-11T14:48:06Z</dc:date>
    <item>
      <title>Powershell Code to return Storage Data info</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Powershell-Code-to-return-Storage-Data-info/m-p/167635#M6406</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Firstly I've never used any of the NetApp Powershell commandlets.&lt;/P&gt;&lt;P&gt;Developing a script here to do some estate reporting, (while we have multiple tools they all output in different formats and either show too much or not enough info !!)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;So what am I trying to do..&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Return&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Aggregate Name. Overall Capacity / used space / free space / Over committed %&lt;/LI&gt;&lt;LI&gt;Volume Name. Used space / free space&amp;nbsp;dedupe and compression stats.&lt;/LI&gt;&lt;LI&gt;LUN Name.&amp;nbsp;Used space / free space&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any one have some example code I can work with as I'm really unsure where to start.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers in advance&lt;/P&gt;&lt;P&gt;P&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 10:22:11 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Powershell-Code-to-return-Storage-Data-info/m-p/167635#M6406</guid>
      <dc:creator>OldGreyBeard</dc:creator>
      <dc:date>2025-06-04T10:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell Code to return Storage Data info</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Powershell-Code-to-return-Storage-Data-info/m-p/167705#M6407</link>
      <description>&lt;P&gt;For aggregate info use "Get-NcAggr"&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Connect-NcController {ipaddress}&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Get-NcAggr&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;$aggr = Get-NcAggr -Name {aggregate name in list}&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;$aggr | format-list&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...if you need more detailed info then drill into any of the 'DataONTAP.C.Types' objects you see listed...&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;$aggr.AggrSpaceAttributes&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...to reference specific properties use $aggr.{propertyname} to retrieve the value&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;$aggr.AggregateName&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;$aggr.AggregateTotalSize&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;$aggr.AggregateUsed&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;$aggr.AggregateAvailable&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;$aggr.AggrSpaceAttributes.PhysicalUsedPercent&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Volume info use Get-NcVol and for LUNs use Get-NcLun, and do the same drill downs as in the Get-NcAggr example above to find the needed values...and use tab completion when drilling down into the objects - makes it a LOT easier than all that typing&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 14:48:06 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Powershell-Code-to-return-Storage-Data-info/m-p/167705#M6407</guid>
      <dc:creator>JohnChampion</dc:creator>
      <dc:date>2021-06-11T14:48:06Z</dc:date>
    </item>
  </channel>
</rss>

