<?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: Need a help with powershell script in Ask The Experts</title>
    <link>https://community.netapp.com/t5/Ask-The-Experts/Need-a-help-with-powershell-script/m-p/153913#M1291</link>
    <description>&lt;P&gt;Hey Donny,&amp;nbsp; Thanks a lot for the code you shared yesterday. It works fine. However i was looking for something different. I need the volumes whose consumed size is 85% of the autosize. I mean.. Used=0.85*autosize By "Used" i mean Total-available. Can you please help here.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/77625"&gt;@donny_lang&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Here you go:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$vols = Get-NcVol
foreach ($vol in $vols) {
    if ($vol.TotalSize -gt 0.85*$($vol.VolumeAutosizeAttributes.MaximumSize)) {
     Write-Output $vol.Name
    } 
 } &lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2020 22:43:26 GMT</pubDate>
    <dc:creator>Biswarup_D</dc:creator>
    <dc:date>2020-01-29T22:43:26Z</dc:date>
    <item>
      <title>Need a help with powershell script</title>
      <link>https://community.netapp.com/t5/Ask-The-Experts/Need-a-help-with-powershell-script/m-p/153868#M1286</link>
      <description>&lt;P&gt;I would need&amp;nbsp; a script to generate the list of volumes which have consumed more than 85% of the maximum-autosize.&lt;/P&gt;
&lt;P&gt;Can someone help.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 23:20:31 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Ask-The-Experts/Need-a-help-with-powershell-script/m-p/153868#M1286</guid>
      <dc:creator>Biswarup_D</dc:creator>
      <dc:date>2020-01-28T23:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help with powershell script</title>
      <link>https://community.netapp.com/t5/Ask-The-Experts/Need-a-help-with-powershell-script/m-p/153871#M1287</link>
      <description>&lt;P&gt;Here you go:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$vols = Get-NcVol
foreach ($vol in $vols) {
    if ($vol.TotalSize -gt 0.85*$($vol.VolumeAutosizeAttributes.MaximumSize)) {
     Write-Output $vol.Name
    } 
 } &lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Jan 2020 01:47:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Ask-The-Experts/Need-a-help-with-powershell-script/m-p/153871#M1287</guid>
      <dc:creator>donny_lang</dc:creator>
      <dc:date>2020-01-29T01:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help with powershell script</title>
      <link>https://community.netapp.com/t5/Ask-The-Experts/Need-a-help-with-powershell-script/m-p/153872#M1288</link>
      <description>&lt;P&gt;Gold star for you&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/77625"&gt;@donny_lang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 01:49:09 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Ask-The-Experts/Need-a-help-with-powershell-script/m-p/153872#M1288</guid>
      <dc:creator>SpindleNinja</dc:creator>
      <dc:date>2020-01-29T01:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help with powershell script</title>
      <link>https://community.netapp.com/t5/Ask-The-Experts/Need-a-help-with-powershell-script/m-p/153913#M1291</link>
      <description>&lt;P&gt;Hey Donny,&amp;nbsp; Thanks a lot for the code you shared yesterday. It works fine. However i was looking for something different. I need the volumes whose consumed size is 85% of the autosize. I mean.. Used=0.85*autosize By "Used" i mean Total-available. Can you please help here.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/77625"&gt;@donny_lang&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Here you go:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$vols = Get-NcVol
foreach ($vol in $vols) {
    if ($vol.TotalSize -gt 0.85*$($vol.VolumeAutosizeAttributes.MaximumSize)) {
     Write-Output $vol.Name
    } 
 } &lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 22:43:26 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Ask-The-Experts/Need-a-help-with-powershell-script/m-p/153913#M1291</guid>
      <dc:creator>Biswarup_D</dc:creator>
      <dc:date>2020-01-29T22:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help with powershell script</title>
      <link>https://community.netapp.com/t5/Ask-The-Experts/Need-a-help-with-powershell-script/m-p/153915#M1292</link>
      <description>&lt;P&gt;Oops, you're right.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$vols = Get-NcVol
foreach ($vol in $vols) {
if ($($vol.VolumeSpaceAttributes.SizeUsed) -gt 0.85*$($vol.VolumeAutosizeAttributes.MaximumSize)) {
Write-Output $vol.Name
   } 
}&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Jan 2020 22:58:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Ask-The-Experts/Need-a-help-with-powershell-script/m-p/153915#M1292</guid>
      <dc:creator>donny_lang</dc:creator>
      <dc:date>2020-01-29T22:58:44Z</dc:date>
    </item>
  </channel>
</rss>

