<?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 volume details from a specific list of volumes. in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/get-volume-details-from-a-specific-list-of-volumes/m-p/126326#M27263</link>
    <description>&lt;P&gt;Below is the full script that I am trying to get to work. I am trying to get a portion of the volumes on this filer, from the list Vol_BU_Owners_MTRAN.txt and thenexport the information to Excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$today=get-Date -UFormat %m%d%y&lt;BR /&gt;$Volume=Get-Content c:\NetAPP\powershell\Vol_BU_Owners_MTRAN.txt&lt;BR /&gt;Connect-NaController xxxx.xxx.xxx&lt;BR /&gt;ForEach ($vol in $Volume)&lt;BR /&gt;{&lt;BR /&gt;Get-NaVol $vol | Select name @{Label="VolumeName";Expression={$_.name}},@{Name="TotalSize(GB)";Expression={[math]::Round([decimal]$_.totalSize/1gb,2)}},@{Name="AvailableSize(GB)";Expression={[math]::Round([decimal]$_.SizeAvailable/1gb,2)}},@{l='% of Space Used';e={([Math]::Round([decimal]($_.SizeUsed)/($_.SizeTotal),2))}} | Export-Csv c:\NetAPP\VOL_BU_Owners_MTRAN-$today.csv&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2016 14:09:28 GMT</pubDate>
    <dc:creator>Pufferth</dc:creator>
    <dc:date>2016-12-15T14:09:28Z</dc:date>
    <item>
      <title>get volume details from a specific list of volumes.</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/get-volume-details-from-a-specific-list-of-volumes/m-p/126194#M27235</link>
      <description>&lt;P&gt;I want to get the volume details from a specific list of voulumes. &amp;nbsp;Below is a section of the code that I am trying to get to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get-Content Vol_BU_Owners_MTRAN.txt&lt;BR /&gt;Get-NaVol -name $_ &amp;nbsp;| select name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;apAVLcl2Ga&lt;BR /&gt;apAVLcl2Qquorum&lt;BR /&gt;apcl5Ga&lt;BR /&gt;apcl5Ga_T&lt;BR /&gt;apcl5Xdtc&lt;BR /&gt;apfinpapp&lt;BR /&gt;apidashcl6&lt;BR /&gt;apidashcl6_Q&lt;BR /&gt;apLIMcl2Ga&lt;BR /&gt;apLIMclQquorum&lt;BR /&gt;apTYMcl6Ga&lt;BR /&gt;apTYMcl6Qquorum&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Name : apappcl5Qquorum&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Name : apappcl5Qquorum_T&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Name : apAVLcl2Ga&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Name : apAVLcl2Qquorum ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is getting the volumes from the my list, then it is going back and gets the information from all of the Volumes on the filer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried several differant script&amp;nbsp;itterations to try and resolve this isssue. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is another example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get-Content Vol_BU_Owners_MTRAN.txt | ForEach-Object {Get-NaVol $_ &amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 18:05:42 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/get-volume-details-from-a-specific-list-of-volumes/m-p/126194#M27235</guid>
      <dc:creator>Pufferth</dc:creator>
      <dc:date>2025-06-04T18:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: get volume details from a specific list of volumes.</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/get-volume-details-from-a-specific-list-of-volumes/m-p/126198#M27236</link>
      <description>&lt;P&gt;I don't see a connect to a controller, are we assuming this is done?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And what is your end state goal? &amp;nbsp;Give me an example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, there is a powershell forum under oncommand somewhere on the forum site&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 20:03:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/get-volume-details-from-a-specific-list-of-volumes/m-p/126198#M27236</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2016-12-13T20:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: get volume details from a specific list of volumes.</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/get-volume-details-from-a-specific-list-of-volumes/m-p/126253#M27252</link>
      <description>&lt;P&gt;I'm not 100% what you want to happen, you've got a list of volume names and you want to write a script to get all the volume names? Anyway, I think this is what you're after. Maybe...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;connect-nacontroller toaster01&lt;/P&gt;&lt;P&gt;$vollist = Get-Content Vol_BU_Owners_MTRAN.txt&lt;/P&gt;&lt;P&gt;foreach ($vol in $vollist){&lt;/P&gt;&lt;P&gt;(get-navol $vol).name&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 16:30:40 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/get-volume-details-from-a-specific-list-of-volumes/m-p/126253#M27252</guid>
      <dc:creator>bazmercer</dc:creator>
      <dc:date>2016-12-14T16:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: get volume details from a specific list of volumes.</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/get-volume-details-from-a-specific-list-of-volumes/m-p/126319#M27259</link>
      <description>&lt;P&gt;The connection to the controller was just left off, I am connecting to the controllers without issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My new report will look&amp;nbsp;something like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MTFS1.mc.local VolumeName TotalSize(GB) AvailableSize(GB) % of Space Used&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;apappcl5Qquorum&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;0.99&lt;/TD&gt;&lt;TD&gt;0.50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;apappcl5Qquorum_T&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;0.99&lt;/TD&gt;&lt;TD&gt;0.50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;apAVLcl2Ga&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;49.79&lt;/TD&gt;&lt;TD&gt;0.50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;apAVLcl2Qquorum&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;0.99&lt;/TD&gt;&lt;TD&gt;0.50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;apcl5Ga&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;9.95&lt;/TD&gt;&lt;TD&gt;0.50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;apcl5Ga_T&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;19.95&lt;/TD&gt;&lt;TD&gt;0.33&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;apcl5Xdtc&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;0.99&lt;/TD&gt;&lt;TD&gt;0.50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;apfinpapp&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;1.87&lt;/TD&gt;&lt;TD&gt;0.77&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;apidashcl6&lt;/TD&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;TD&gt;69.53&lt;/TD&gt;&lt;TD&gt;0.01&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The end result is to analyze usage&amp;nbsp;by Business&amp;nbsp;units, so this will be exported to Excel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My mistake with the location of my question first time using this site.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 13:18:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/get-volume-details-from-a-specific-list-of-volumes/m-p/126319#M27259</guid>
      <dc:creator>Pufferth</dc:creator>
      <dc:date>2016-12-15T13:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: get volume details from a specific list of volumes.</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/get-volume-details-from-a-specific-list-of-volumes/m-p/126322#M27261</link>
      <description>&lt;P&gt;So, if you search the archives in poweshell on this forum, I should have some of my scripts in there which you could use.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if you want selected columns as you do below, you are going to have to use convertto-formattednumber cmdlet with an expression statement b/c the default cmdlets use a default output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example if you do&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;get-navol vol1 | Select totalsize&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that will look much different then if you do&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;get-navol vol1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, are there other volumes on the controller that you do NOT want &amp;nbsp;or are those all the volumes?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 13:27:32 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/get-volume-details-from-a-specific-list-of-volumes/m-p/126322#M27261</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2016-12-15T13:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: get volume details from a specific list of volumes.</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/get-volume-details-from-a-specific-list-of-volumes/m-p/126326#M27263</link>
      <description>&lt;P&gt;Below is the full script that I am trying to get to work. I am trying to get a portion of the volumes on this filer, from the list Vol_BU_Owners_MTRAN.txt and thenexport the information to Excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$today=get-Date -UFormat %m%d%y&lt;BR /&gt;$Volume=Get-Content c:\NetAPP\powershell\Vol_BU_Owners_MTRAN.txt&lt;BR /&gt;Connect-NaController xxxx.xxx.xxx&lt;BR /&gt;ForEach ($vol in $Volume)&lt;BR /&gt;{&lt;BR /&gt;Get-NaVol $vol | Select name @{Label="VolumeName";Expression={$_.name}},@{Name="TotalSize(GB)";Expression={[math]::Round([decimal]$_.totalSize/1gb,2)}},@{Name="AvailableSize(GB)";Expression={[math]::Round([decimal]$_.SizeAvailable/1gb,2)}},@{l='% of Space Used';e={([Math]::Round([decimal]($_.SizeUsed)/($_.SizeTotal),2))}} | Export-Csv c:\NetAPP\VOL_BU_Owners_MTRAN-$today.csv&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 14:09:28 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/get-volume-details-from-a-specific-list-of-volumes/m-p/126326#M27263</guid>
      <dc:creator>Pufferth</dc:creator>
      <dc:date>2016-12-15T14:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: get volume details from a specific list of volumes.</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/get-volume-details-from-a-specific-list-of-volumes/m-p/126328#M27264</link>
      <description>&lt;P&gt;Ok, that looks ok.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would use the convertto-formattednumber cmdlet from the data ontap module. &amp;nbsp;It's easier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The last line should look like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;| Export-Csv c:\NetAPP\VOL_BU_Owners_MTRAN-$today.csv -append -notypeinformation&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I'm not sure what you are doing here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Select name @{Label="VolumeName";Expression={$_.name}}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You already have Name, why create an expression statement for volumename?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 14:51:18 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/get-volume-details-from-a-specific-list-of-volumes/m-p/126328#M27264</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2016-12-15T14:51:18Z</dc:date>
    </item>
  </channel>
</rss>

