<?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 script for aggregate utilization is showing data in 1 cell in General Discussion</title>
    <link>https://community.netapp.com/t5/General-Discussion/Powershell-script-for-aggregate-utilization-is-showing-data-in-1-cell/m-p/445725#M1531</link>
    <description>&lt;P&gt;Hello khulbe1,&lt;/P&gt;&lt;P&gt;if you want to export the Results you got there from powershell to excel correctly, you need to install the Powershell Excel-Modul. With that module you should be able to get the output you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And for the Aggr Sizes you need:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$GetNcAggr = Get-NcAggr&lt;/P&gt;&lt;P&gt;$GetNcAggr.TotalSize /1GB&lt;/P&gt;&lt;P&gt;$GetNcAggr.Available /1GB &amp;lt;- This will get you the Available Date in GB. And with that you can do the calculation for the percentage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jul 2023 07:10:47 GMT</pubDate>
    <dc:creator>TzwaynY</dc:creator>
    <dc:date>2023-07-03T07:10:47Z</dc:date>
    <item>
      <title>Powershell script for aggregate utilization is showing data in 1 cell</title>
      <link>https://community.netapp.com/t5/General-Discussion/Powershell-script-for-aggregate-utilization-is-showing-data-in-1-cell/m-p/445709#M1530</link>
      <description>&lt;P&gt;Team - I am new to powershell and I am trying to create a script which can show us aggregate&amp;nbsp;size, physical-used, physical-used-percent and committed capacity. I have taken few scripts from here n there and tried creating one with my requirements. Except committed space I am able to get the data but all the result in getting imported in 1 cell. Also if someone can help in how to get committed capacity that would be great!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$netappcs = gc E:\Script\Health_check\test.txt&lt;BR /&gt;Get-Module ImportExcel | Import-Module&lt;BR /&gt;Import-Module DataONTAP&lt;BR /&gt;$User = "*******"&lt;BR /&gt;$PWord = ConvertTo-SecureString -String '********' -AsPlainText -Force&lt;/P&gt;&lt;P&gt;$cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $User, $PWord&lt;/P&gt;&lt;P&gt;foreach($netapp in $netappcs)&lt;BR /&gt;{&lt;BR /&gt;Connect-NaController $netapp -Credential $cred&lt;BR /&gt;$a = Get-NcCluster&lt;BR /&gt;$clus = $a.ClusterName&lt;BR /&gt;#$clusip = $a.NcController&lt;BR /&gt;$b = Get-NcNode&lt;BR /&gt;$node = $b.Node&lt;BR /&gt;$nodehealth = $b.IsNodeHealthy&lt;BR /&gt;$Netagg = "aggr show -aggregate * -fields size, physical-used, physical-used-percent"&lt;BR /&gt;Invoke-NcSsh -Command $Netagg | Select-Object Value, NcController | Export-Excel -path "E:\Script\Aggregate_Utilization_-$((Get-Date).ToString('dd-MM-yyyy')).xlsx" -TableStyle Medium16 -AutoSize&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:47:20 GMT</pubDate>
      <guid>https://community.netapp.com/t5/General-Discussion/Powershell-script-for-aggregate-utilization-is-showing-data-in-1-cell/m-p/445709#M1530</guid>
      <dc:creator>Khulbe1</dc:creator>
      <dc:date>2025-06-04T09:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script for aggregate utilization is showing data in 1 cell</title>
      <link>https://community.netapp.com/t5/General-Discussion/Powershell-script-for-aggregate-utilization-is-showing-data-in-1-cell/m-p/445725#M1531</link>
      <description>&lt;P&gt;Hello khulbe1,&lt;/P&gt;&lt;P&gt;if you want to export the Results you got there from powershell to excel correctly, you need to install the Powershell Excel-Modul. With that module you should be able to get the output you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And for the Aggr Sizes you need:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$GetNcAggr = Get-NcAggr&lt;/P&gt;&lt;P&gt;$GetNcAggr.TotalSize /1GB&lt;/P&gt;&lt;P&gt;$GetNcAggr.Available /1GB &amp;lt;- This will get you the Available Date in GB. And with that you can do the calculation for the percentage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 07:10:47 GMT</pubDate>
      <guid>https://community.netapp.com/t5/General-Discussion/Powershell-script-for-aggregate-utilization-is-showing-data-in-1-cell/m-p/445725#M1531</guid>
      <dc:creator>TzwaynY</dc:creator>
      <dc:date>2023-07-03T07:10:47Z</dc:date>
    </item>
  </channel>
</rss>

