<?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 volsize and aggrsize in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73134#M3621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to show every volume that is more than 90% full and pipe the snapmirror status of only those volumes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 09 Jun 2013 13:39:51 GMT</pubDate>
    <dc:creator>JSHACHER11</dc:creator>
    <dc:date>2013-06-09T13:39:51Z</dc:date>
    <item>
      <title>get volsize and aggrsize</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73117#M3617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm after a script that will show me volumes over 90% full (total, available, used) and then will show the same thing in the containing aggregates (total, available, used)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is what I use now to get the vol size:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+++++++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import-Module Dataontap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function Get-VolOverEighty {&lt;/P&gt;&lt;P&gt;Get-NaVol | select name,aggregate,used,@{Name="Available(GB)";Expression={[math]::Round([decimal]$_.Available/1gb,0)}},@{Name="SizeTotal(GB)";Expression={[math]::Round([decimal]$_.sizetotal/1gb,0)}} | ? { $_.used -gt 90 } &lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$filer = Read-Host "Enter the filer name"&lt;/P&gt;&lt;P&gt;$user = "root"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connect-NaController -Name $filer -Credential $user&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get-VolOverEighty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+++++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine but I want it to report the size in the containing aggregates as well - is that possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:01:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73117#M3617</guid>
      <dc:creator>JSHACHER11</dc:creator>
      <dc:date>2025-06-05T06:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: get volsize and aggrsize</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73122#M3618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should give you that information, Note that i have appended the Aggr Size information in TB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13707726737462905" jivemacro_uid="_13707726737462905"&gt;&lt;P&gt;Function Get-VolOverEighty {&lt;/P&gt;&lt;P&gt;Get-NaVol | ? { $_.used -gt 90 } | select name,aggregate,used,@{Name="VolumeAvailable(GB)";Expression={[math]::Round([decimal]$_.Available/1gb,0)}},`&lt;/P&gt;&lt;P&gt;@{Name="VolumeSizeTotal(GB)";Expression={[math]::Round([decimal]$_.sizetotal/1gb,0)}}, `&lt;/P&gt;&lt;P&gt;@{Name="AggregateSizeTotal(TB)";Expression={[math]::Round([decimal] ((Get-NaAggr -Name $_.Aggregate | select -ExpandProperty SizeTotal)/1tb),2)}},`&lt;/P&gt;&lt;P&gt;@{Name="AggregateSizeAvailable(TB)";Expression={[math]::Round([decimal] ((Get-NaAggr -Name $_.Aggregate | select -ExpandProperty SizeAvailable)/1tb),2)}},`&lt;/P&gt;&lt;P&gt;@{Name="AggregateSizeUsed(TB)";Expression={[math]::Round([decimal] ((Get-NaAggr -Name $_.Aggregate | select -ExpandProperty SizeUsed)/1tb),2)}} &lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get-VolOverEighty&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/21545_aggr.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jun 2013 10:13:16 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73122#M3618</guid>
      <dc:creator>vinith</dc:creator>
      <dc:date>2013-06-09T10:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: get volsize and aggrsize</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73127#M3619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+++++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Missing expression after ','.&lt;/P&gt;&lt;P&gt;+ @{Name="VolumeSizeTotal(GB)";Expression={[math]::Round([decimal]$_.sizetotal/1gb,0)}}, &amp;lt;&amp;lt;&amp;lt;&amp;lt; `&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : ParserError: (,:String) [], ParseException&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : MissingExpressionAfterToken&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jun 2013 10:33:01 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73127#M3619</guid>
      <dc:creator>JSHACHER11</dc:creator>
      <dc:date>2013-06-09T10:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: get volsize and aggrsize</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73131#M3620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just copy paste this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Get-VolOverEighty {&amp;nbsp; &lt;/P&gt;&lt;P&gt;Get-NaVol | ? { $_.used -gt 90 } | select name,aggregate,used,@{Name="VolumeAvailable(GB)";Expression={[math]::Round([decimal]$_.Available/1gb,0)}},`&amp;nbsp; &lt;/P&gt;&lt;P&gt;@{Name="VolumeSizeTotal(GB)";Expression={[math]::Round([decimal]$_.sizetotal/1gb,0)}}, `&amp;nbsp; &lt;/P&gt;&lt;P&gt;@{Name="AggregateSizeTotal(TB)";Expression={[math]::Round([decimal] ((Get-NaAggr -Name $_.Aggregate | select -ExpandProperty SizeTotal)/1tb),2)}},`&amp;nbsp; &lt;/P&gt;&lt;P&gt;@{Name="AggregateSizeAvailable(TB)";Expression={[math]::Round([decimal] ((Get-NaAggr -Name $_.Aggregate | select -ExpandProperty SizeAvailable)/1tb),2)}},`&amp;nbsp; &lt;/P&gt;&lt;P&gt;@{Name="AggregateSizeUsed(TB)";Expression={[math]::Round([decimal] ((Get-NaAggr -Name $_.Aggregate | select -ExpandProperty SizeUsed)/1tb),2)}}&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;}&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Get-VolOverEighty&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jun 2013 11:21:11 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73131#M3620</guid>
      <dc:creator>vinith</dc:creator>
      <dc:date>2013-06-09T11:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: get volsize and aggrsize</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73134#M3621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to show every volume that is more than 90% full and pipe the snapmirror status of only those volumes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jun 2013 13:39:51 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73134#M3621</guid>
      <dc:creator>JSHACHER11</dc:creator>
      <dc:date>2013-06-09T13:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: get volsize and aggrsize</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73138#M3622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also use the built in cmdlet instead of all that math - convertto-formattednumber..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 12:15:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73138#M3622</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2013-06-10T12:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: get volsize and aggrsize</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73144#M3624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as piping them to snapmirror status, you can either pipe them to snapmirror status, or create custom objects and then work that why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm curious, why are you using a function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 12:20:14 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73144#M3624</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2013-06-10T12:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: get volsize and aggrsize</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73150#M3626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the advice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. "pipe them to snapmirror status, or create custom objects" - can you give an example please how to pipe the output of Get-VolOverEighty to Get-NaSnapmirror?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. "why are you using a function?" - is that the wrong way? Please let me know how you would do it (I'm still a newbie...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 12:34:51 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73150#M3626</guid>
      <dc:creator>JSHACHER11</dc:creator>
      <dc:date>2013-06-10T12:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: get volsize and aggrsize</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73154#M3627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yah.. Functions are not what you are after.. That is not the proper way to do thing in my opinion for this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For piping directly to snapmirror status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get-navol | get-nasnapmirror&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 12:38:00 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73154#M3627</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2013-06-10T12:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: get volsize and aggrsize</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73158#M3628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so in my case if I want to get the snapmirror status of (only) the volumes that are more than 90% full I should use this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get-VolOverEighty | GetNaSnapmirror&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 12:48:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73158#M3628</guid>
      <dc:creator>JSHACHER11</dc:creator>
      <dc:date>2013-06-10T12:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: get volsize and aggrsize</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73162#M3629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get-navol | ? {$_.used -gt 90} | get-nasnapmirror&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 12:56:09 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73162#M3629</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2013-06-10T12:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: get volsize and aggrsize</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73165#M3630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I actually use 'truncate':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get-naaggr | select name,@{Name="Total Size (in GB)";Expression={[math]::truncate($_.totalsize/1gb)}}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 13:25:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73165#M3630</guid>
      <dc:creator>JSHACHER11</dc:creator>
      <dc:date>2013-06-10T13:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: get volsize and aggrsize</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73169#M3631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it that way, but the boys at netapp wrote an awesome cmdlet convertto-formattednumber.. Check that one out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 13:27:33 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73169#M3631</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2013-06-10T13:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: get volsize and aggrsize</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73173#M3632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;short and sweet &lt;SPAN __jive_emoticon_name="silly" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.netapp.com/5.0.1/images/emoticons/silly.gif"&gt;&lt;/SPAN&gt;, thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;another question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I use the below command in a console it gives me nice table with 9 columns but in the script it gives a long list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get-navol | ? {$_.used -gt 90}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to put Format-Table at the end (in the script) but it gives an error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+++++++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import-Module Dataontap&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;write-host "This script will list volumes over 80% full, the containing aggregates and snapmirror relationships" -foregroundcolor yellow&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;write-host "You will also get an option to increase a volume size" -foregroundcolor yellow&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;$filer = Read-Host "Enter the filer name"&lt;/P&gt;&lt;P&gt;$user = Read-Host "Enter username"&lt;/P&gt;&lt;P&gt;Connect-NaController -Name $filer -Credential $user&lt;/P&gt;&lt;P&gt;get-navol | ? {$_.used -gt 80}&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;write-host "Here are the aggregates:" -foregroundcolor yellow&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;get-naaggr&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;write-host "and the snapmirror relationships:" -foregroundcolor yellow&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;get-navol | ? {$_.used -gt 80} | get-nasnapmirror&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;$ans = Read-Host -prompt "Would you like to increase one of the volumes? [Y/N]" &lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;if ($ans -eq "N") {&lt;/P&gt;&lt;P&gt;exit&lt;/P&gt;&lt;P&gt;} else {&lt;/P&gt;&lt;P&gt;$vol = Read-Host "Enter volume name"&lt;/P&gt;&lt;P&gt;$size = Read-Host "How much more space do you want to give it? (example: +100g)"&lt;/P&gt;&lt;P&gt;Set-NaVolsize -Name $vol -NewSize $size -Confirm&lt;/P&gt;&lt;P&gt;Write-Host ""&lt;/P&gt;&lt;P&gt;Write-Host ""&lt;/P&gt;&lt;P&gt;Write-Host "Check the new size:" -foregroundcolor yellow&lt;/P&gt;&lt;P&gt;Write-Host ""&lt;/P&gt;&lt;P&gt;Write-Host ""&lt;/P&gt;&lt;P&gt;Get-NaVol -Name $vol | select name,used,@{Name="Available Size (in GB)";Expression={[math]::truncate($_.Available/1gb)}},@{Name="Total Size (in GB)";Expression={[math]::truncate($_.sizetotal/1gb)}}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+++++++++++++++++++++++++++++++++++&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 13:37:53 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73173#M3632</guid>
      <dc:creator>JSHACHER11</dc:creator>
      <dc:date>2013-06-10T13:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: get volsize and aggrsize</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73176#M3633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow.. I have no idea what you are trying to accomplish.. This script is all over the place man...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at the multi report i sent you for reporting.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have onCommand installed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 13:42:12 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73176#M3633</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2013-06-10T13:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: get volsize and aggrsize</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73180#M3634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I cracked it. You just need to add Out-String and the Format-Table will look fine. Here's the new script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;++++++++++++++++++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import-Module Dataontap&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;write-host "This script will list volumes over 80% full, the containing aggregates and snapmirror relationships" -foregroundcolor yellow&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;write-host "You will also get an option to increase a volume size" -foregroundcolor yellow&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;$filer = Read-Host "Enter the filer name"&lt;/P&gt;&lt;P&gt;$user = Read-Host "Enter username"&lt;/P&gt;&lt;P&gt;Connect-NaController -Name $filer -Credential $user&lt;/P&gt;&lt;P&gt;get-navol | ? {$_.used -gt 80} | select name,used,@{Name="Available Size (in GB)";Expression={[math]::truncate($_.Available/1gb)}},@{Name="Total Size (in GB)";Expression={[math]::truncate($_.sizetotal/1gb)}} | ft -Autosize | Out-String&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;write-host "Here are the aggregates:" -foregroundcolor yellow&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;get-naaggr | select name,@{Name="Total Size (in GB)";Expression={[math]::truncate($_.totalsize/1gb)}},used,@{Name="Available Size (in GB)";Expression={[math]::truncate($_.available/1gb)}} | ft -Autosize | Out-String&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;write-host "and the snapmirror relationships:" -foregroundcolor yellow&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;get-navol | ? {$_.used -gt 80} | get-nasnapmirror | select source,destination | ft -Autosize | Out-String&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;$ans = Read-Host -prompt "Would you like to increase one of the volumes? [Y/N]" &lt;/P&gt;&lt;P&gt;write-host "" &lt;/P&gt;&lt;P&gt;write-host ""&lt;/P&gt;&lt;P&gt;if ($ans -eq "N") {&lt;/P&gt;&lt;P&gt;exit&lt;/P&gt;&lt;P&gt;} else {&lt;/P&gt;&lt;P&gt;$vol = Read-Host "Enter volume name"&lt;/P&gt;&lt;P&gt;$size = Read-Host "How much more space do you want to give it? (example: +100g)"&lt;/P&gt;&lt;P&gt;Set-NaVolsize -Name $vol -NewSize $size -Confirm&lt;/P&gt;&lt;P&gt;Write-Host ""&lt;/P&gt;&lt;P&gt;Write-Host ""&lt;/P&gt;&lt;P&gt;Write-Host "Check the new size:" -foregroundcolor yellow&lt;/P&gt;&lt;P&gt;Write-Host ""&lt;/P&gt;&lt;P&gt;Write-Host ""&lt;/P&gt;&lt;P&gt;Get-NaVol -Name $vol | select name,used,@{Name="Available Size (in GB)";Expression={[math]::truncate($_.Available/1gb)}},@{Name="Total Size (in GB)";Expression={[math]::truncate($_.sizetotal/1gb)}}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+++++++++++++++++++++++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everyone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 14:58:49 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73180#M3634</guid>
      <dc:creator>JSHACHER11</dc:creator>
      <dc:date>2013-06-10T14:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: get volsize and aggrsize</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73185#M3635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Really Good to see that you have come up very well with grasping powershell. Keep up the hardwork&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 15:15:53 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/get-volsize-and-aggrsize/m-p/73185#M3635</guid>
      <dc:creator>vinith</dc:creator>
      <dc:date>2013-06-10T15:15:53Z</dc:date>
    </item>
  </channel>
</rss>

