<?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 Getting Share information from 7 mode to map to cmode in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-Share-information-from-7-mode-to-map-to-cmode/m-p/103674#M4250</link>
    <description>&lt;P&gt;Greetings -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to get all of our share information (path, acl share and vols name) and size of the vols exported to a csv / excel sheet. So I can evaluate and look to where I need to map and create these new shares on our cmode filers. I do not wish to use the 7Mode transition tool as we wish to re-do our shares on the cmode system that are cleaner.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone provide some codde snippets for this as I am somewhat of a newb on the dataontap kit / posh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks much. If clarification is neede please advise.. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jun 2025 04:30:21 GMT</pubDate>
    <dc:creator>peter65</dc:creator>
    <dc:date>2025-06-05T04:30:21Z</dc:date>
    <item>
      <title>Getting Share information from 7 mode to map to cmode</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-Share-information-from-7-mode-to-map-to-cmode/m-p/103674#M4250</link>
      <description>&lt;P&gt;Greetings -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to get all of our share information (path, acl share and vols name) and size of the vols exported to a csv / excel sheet. So I can evaluate and look to where I need to map and create these new shares on our cmode filers. I do not wish to use the 7Mode transition tool as we wish to re-do our shares on the cmode system that are cleaner.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone provide some codde snippets for this as I am somewhat of a newb on the dataontap kit / posh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks much. If clarification is neede please advise.. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 04:30:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-Share-information-from-7-mode-to-map-to-cmode/m-p/103674#M4250</guid>
      <dc:creator>peter65</dc:creator>
      <dc:date>2025-06-05T04:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Share information from 7 mode to map to cmode</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-Share-information-from-7-mode-to-map-to-cmode/m-p/103675#M4251</link>
      <description>&lt;P&gt;Hello Peter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you considered using nSANITY and the 7-Mode Parser tool?&amp;nbsp; nSANITY will pull data from your controllers and the 7-mode Parser tool will create the spreadsheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;nSANITY: &lt;A href="https://private-communities.netapp.com/community/netapp_partners_network/ps/service/tools/nsanity" target="_blank"&gt;https://private-communities.netapp.com/community/netapp_partners_network/ps/service/tools/nsanity&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;7-Mode Parser Tool: &lt;A href="https://private-communities.netapp.com/docs/DOC-28497" target="_blank"&gt;https://private-communities.netapp.com/docs/DOC-28497&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 14:05:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-Share-information-from-7-mode-to-map-to-cmode/m-p/103675#M4251</guid>
      <dc:creator>billyd</dc:creator>
      <dc:date>2015-04-23T14:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Share information from 7 mode to map to cmode</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-Share-information-from-7-mode-to-map-to-cmode/m-p/103681#M4253</link>
      <description>&lt;P&gt;Hello Peter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In case you want to avoid using tools, or really want to keep it simple, a script along the lines of the one given below should get the job done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This script would create a CSV file with the Path, Acl, ShareName, Volume name and VolumeSize of all shares on a 7mode system. If you need any additional data, you need to determine which cmdlet will return the data and then extend the script. You would also need to add error handling.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;param([String]$output_name)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;"Share Name, Mount Point, Volume Name, Volume Size, ACL Information" | Out-File $output_name&lt;/FONT&gt; #Writes the Excel headers&lt;BR /&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;$shares = Get-NaCifsShare #Get a list of all shares in the system&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;foreach ($share in $shares) {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $share_name = $share.ShareName&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $vol_name = ($share.MountPoint -split "/")[2] #Since mountpoint will always be of form /vol/vol_name/&amp;lt;possibly something_else&amp;gt;&lt;/FONT&gt; and splitting produces null,vol,vol_name,&amp;lt;something_else&amp;gt;&lt;BR /&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ($vol_name -eq $null) { continue } #Helps skip the admin shares like /etc&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $vol_size = (Get-NaVolSize $vol_name).VolumeSize&lt;/FONT&gt; #If you require any other volume attributes, Get-NaVol should return those&lt;BR /&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $acl_information_array = (Get-NaCifsShareAcl $share_name).UserAclInfo&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $acl_information = $acl_information_array -join ';'&lt;/FONT&gt; #Converting the array in to a string and using ; as delimiter since , is used as delimiter in the CSV&lt;BR /&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $share_name + "," + $share.MountPoint + "," + $vol_name + "," + $vol_size + "," + $acl_information | Out-File $output_name -Append&lt;/FONT&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&amp;nbsp; &lt;/FONT&gt;#Append the row&lt;BR /&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will probably want to add cases for qtress at the very least before using this (i.e. if a share is a qtree, rather than a volume, do you want the Qtree information as well?). But hopefully this will help you start.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aparajita&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 15:06:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-Share-information-from-7-mode-to-map-to-cmode/m-p/103681#M4253</guid>
      <dc:creator>Aparajita</dc:creator>
      <dc:date>2015-04-23T15:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Share information from 7 mode to map to cmode</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-Share-information-from-7-mode-to-map-to-cmode/m-p/103687#M4254</link>
      <description>&lt;P&gt;^^&lt;BR /&gt;This is assuming he's not using vfilers&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 15:17:55 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-Share-information-from-7-mode-to-map-to-cmode/m-p/103687#M4254</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2015-04-23T15:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Share information from 7 mode to map to cmode</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-Share-information-from-7-mode-to-map-to-cmode/m-p/103698#M4255</link>
      <description>Not able to access either link. I was able to grab nsanity from the utility chest but link is no good for the 7 mode parser and 7 mode parser is not found in the utility chest.&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Apr 2015 18:57:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-Share-information-from-7-mode-to-map-to-cmode/m-p/103698#M4255</guid>
      <dc:creator>peter65</dc:creator>
      <dc:date>2015-04-23T18:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Share information from 7 mode to map to cmode</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-Share-information-from-7-mode-to-map-to-cmode/m-p/103779#M4258</link>
      <description>&lt;P&gt;Hi Peter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assuming you have mulitple controllers and are running OnCommand unified manager (AKA DFM) to montior them all, have you considered running a DFM report to gather this information?&lt;/P&gt;&lt;P&gt;Here is an example of listing the default reports:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;dfm report list | find /i "qtree"&lt;/P&gt;&lt;P&gt;&amp;gt;dfm report list | find /i "cifs"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example of running the dfm report and outputting the results to a .csv file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;dfm report view -F csv cifs-shares &amp;gt; cifs-shares.csv&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assuming you have added controllers to a DFM group (EG all file serving controllers are in a DFM file serving group) then you can also run the report on the DFM group object ID to filter the results.&lt;/P&gt;&lt;P&gt;See "dfm group list" to find the ID and then run the report on that id to limit the results to a list of controllers in the group. EG "dfm report view -F csv cifs-shares %dfmObjectID% &amp;gt; cifs-shares.csv"&lt;/P&gt;&lt;P&gt;The "qtrees-capacity" report will provide the size of the data in your shares. DFM won't provide the NTFS Permissions of the shares (but this can easy be done by creating a batch file). EG&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;icacls %uncpath% | find /i ":"&amp;nbsp; &amp;gt;&amp;gt; ntfs.txt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/matt&lt;/P&gt;</description>
      <pubDate>Sun, 26 Apr 2015 01:05:27 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-Share-information-from-7-mode-to-map-to-cmode/m-p/103779#M4258</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2015-04-26T01:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Share information from 7 mode to map to cmode</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-Share-information-from-7-mode-to-map-to-cmode/m-p/104022#M4263</link>
      <description>&lt;P&gt;Thanks I was able to take this code and add to it. even the ability to output in "GB", "TB" etc..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2015 19:11:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-Share-information-from-7-mode-to-map-to-cmode/m-p/104022#M4263</guid>
      <dc:creator>peter65</dc:creator>
      <dc:date>2015-05-01T19:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Share information from 7 mode to map to cmode</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-Share-information-from-7-mode-to-map-to-cmode/m-p/104023#M4264</link>
      <description>&lt;P&gt;this also helped me as well.&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2015 19:12:53 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-Share-information-from-7-mode-to-map-to-cmode/m-p/104023#M4264</guid>
      <dc:creator>peter65</dc:creator>
      <dc:date>2015-05-01T19:12:53Z</dc:date>
    </item>
  </channel>
</rss>

