<?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 CIFS NDO and Continuously Available Shares in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/CIFS-NDO-and-Continuously-Available-Shares/m-p/144041#M31893</link>
    <description>&lt;P&gt;This is my first attempt at using the powershell toolkit, I'm trying to get a list of the space available on all of our cifs and nfs shares. It mostly works but its a bit clunky and I was wondering if anyone has any suggestiosn&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$report=@();&lt;/P&gt;
&lt;P&gt;$cifShares=Get-NcCifsShare | select ShareName,Volume&lt;BR /&gt;foreach($cifShare in $cifShares)&lt;BR /&gt;{&lt;BR /&gt; $object=New-Object System.object&lt;BR /&gt; $object | Add-Member -Type NoteProperty -Name "Share Name" -Value $cifShare.ShareName&lt;BR /&gt; $object | Add-Member -Type NoteProperty -Name "Volume Name" -Value $cifShare.Volume&lt;BR /&gt; $vol=Get-Ncvol $cifShare.Volume | Select TotalSize,Available,Used&lt;BR /&gt; $volTotalSize=$vol.TotalSize | ConvertTo-FormattedNumber -Type DataSize&lt;BR /&gt; $volAvailableSize=$vol.Available | ConvertTo-FormattedNumber -Type DataSize&lt;BR /&gt; $object | Add-Member -Type NoteProperty -Name "Total Size" -Value $volTotalSize&lt;BR /&gt; $object | Add-Member -Type NoteProperty -Name "Available" -Value $volAvailableSize&lt;BR /&gt; $object | Add-Member -Type NoteProperty -Name "Used" -Value $vol.Used&lt;BR /&gt; $report+=$object&lt;BR /&gt; $object&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;$nfsExports=Get-NcNfsExport | where {$_.JunctionPath -ne "/"}&lt;BR /&gt;foreach ($nfsExport in $nfsExports)&lt;BR /&gt;{&lt;BR /&gt; $vol=Get-NcVol | where {$_.JunctionPath -eq $nfsExport.Pathname -and $_.JunctionPath -ne "/"}&lt;BR /&gt; if($vol.JunctionPath -eq $nfsExport.Pathname)&lt;BR /&gt; {&lt;BR /&gt; $volTotalSize=$vol.TotalSize | ConvertTo-FormattedNumber -Type DataSize&lt;BR /&gt; $volAvailableSize=$vol.Available | ConvertTo-FormattedNumber -Type DataSize&lt;BR /&gt; $object=New-Object System.object&lt;BR /&gt; $object | Add-Member -Type NoteProperty -Name "Share Name" -Value $nfsExport.Pathname&lt;BR /&gt; $object | Add-Member -Type NoteProperty -Name "Volume Name" -Value $vol.Name&lt;BR /&gt; $object | Add-Member -Type NoteProperty -Name "Total Size" -Value $volTotalSize&lt;BR /&gt; $object | Add-Member -Type NoteProperty -Name "Available" -Value $volAvailableSize&lt;BR /&gt; $object | Add-Member -Type NoteProperty -Name "Used" -Value $vol.Used&lt;BR /&gt; $report+=$object&lt;BR /&gt; $object&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;}&lt;BR /&gt;$report | export-csv -NoTypeInformation C:\netappcifsnfs.csv&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 13:12:34 GMT</pubDate>
    <dc:creator>zenmatrix83</dc:creator>
    <dc:date>2025-06-04T13:12:34Z</dc:date>
    <item>
      <title>CIFS NDO and Continuously Available Shares</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/CIFS-NDO-and-Continuously-Available-Shares/m-p/144041#M31893</link>
      <description>&lt;P&gt;This is my first attempt at using the powershell toolkit, I'm trying to get a list of the space available on all of our cifs and nfs shares. It mostly works but its a bit clunky and I was wondering if anyone has any suggestiosn&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$report=@();&lt;/P&gt;
&lt;P&gt;$cifShares=Get-NcCifsShare | select ShareName,Volume&lt;BR /&gt;foreach($cifShare in $cifShares)&lt;BR /&gt;{&lt;BR /&gt; $object=New-Object System.object&lt;BR /&gt; $object | Add-Member -Type NoteProperty -Name "Share Name" -Value $cifShare.ShareName&lt;BR /&gt; $object | Add-Member -Type NoteProperty -Name "Volume Name" -Value $cifShare.Volume&lt;BR /&gt; $vol=Get-Ncvol $cifShare.Volume | Select TotalSize,Available,Used&lt;BR /&gt; $volTotalSize=$vol.TotalSize | ConvertTo-FormattedNumber -Type DataSize&lt;BR /&gt; $volAvailableSize=$vol.Available | ConvertTo-FormattedNumber -Type DataSize&lt;BR /&gt; $object | Add-Member -Type NoteProperty -Name "Total Size" -Value $volTotalSize&lt;BR /&gt; $object | Add-Member -Type NoteProperty -Name "Available" -Value $volAvailableSize&lt;BR /&gt; $object | Add-Member -Type NoteProperty -Name "Used" -Value $vol.Used&lt;BR /&gt; $report+=$object&lt;BR /&gt; $object&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;$nfsExports=Get-NcNfsExport | where {$_.JunctionPath -ne "/"}&lt;BR /&gt;foreach ($nfsExport in $nfsExports)&lt;BR /&gt;{&lt;BR /&gt; $vol=Get-NcVol | where {$_.JunctionPath -eq $nfsExport.Pathname -and $_.JunctionPath -ne "/"}&lt;BR /&gt; if($vol.JunctionPath -eq $nfsExport.Pathname)&lt;BR /&gt; {&lt;BR /&gt; $volTotalSize=$vol.TotalSize | ConvertTo-FormattedNumber -Type DataSize&lt;BR /&gt; $volAvailableSize=$vol.Available | ConvertTo-FormattedNumber -Type DataSize&lt;BR /&gt; $object=New-Object System.object&lt;BR /&gt; $object | Add-Member -Type NoteProperty -Name "Share Name" -Value $nfsExport.Pathname&lt;BR /&gt; $object | Add-Member -Type NoteProperty -Name "Volume Name" -Value $vol.Name&lt;BR /&gt; $object | Add-Member -Type NoteProperty -Name "Total Size" -Value $volTotalSize&lt;BR /&gt; $object | Add-Member -Type NoteProperty -Name "Available" -Value $volAvailableSize&lt;BR /&gt; $object | Add-Member -Type NoteProperty -Name "Used" -Value $vol.Used&lt;BR /&gt; $report+=$object&lt;BR /&gt; $object&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;}&lt;BR /&gt;$report | export-csv -NoTypeInformation C:\netappcifsnfs.csv&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:12:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/CIFS-NDO-and-Continuously-Available-Shares/m-p/144041#M31893</guid>
      <dc:creator>zenmatrix83</dc:creator>
      <dc:date>2025-06-04T13:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: CIFS NDO and Continuously Available Shares</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/CIFS-NDO-and-Continuously-Available-Shares/m-p/144094#M31911</link>
      <description>&lt;P&gt;Since you're exporting, I don't think its clunky. If you want a one liner use calcualted properties of select-object.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 22:28:04 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/CIFS-NDO-and-Continuously-Available-Shares/m-p/144094#M31911</guid>
      <dc:creator>darraghos</dc:creator>
      <dc:date>2018-10-19T22:28:04Z</dc:date>
    </item>
  </channel>
</rss>

