<?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 Reports from netgroup/exports in Network and Storage Protocols</title>
    <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Reports-from-netgroup-exports/m-p/50752#M4651</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking to generate a report from the netgroup and exports files showing what host has what access (readonly, read/write) to which file systems.&amp;nbsp; Given that the negroup files contain nested groups, parsing it is non-trivial so I'm hoping that somebody has already done the work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The final goal is to be able to generate an fstab for a host based on the permissions that the filer has.&amp;nbsp; If we add a host to a netgroup, we should be able to regenerate fstab entries for all file systems on that filer with the right mount options (ro, rw).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any pointers would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; .../Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 07:20:53 GMT</pubDate>
    <dc:creator>ewilts_mc</dc:creator>
    <dc:date>2025-06-05T07:20:53Z</dc:date>
    <item>
      <title>Reports from netgroup/exports</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Reports-from-netgroup-exports/m-p/50752#M4651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking to generate a report from the netgroup and exports files showing what host has what access (readonly, read/write) to which file systems.&amp;nbsp; Given that the negroup files contain nested groups, parsing it is non-trivial so I'm hoping that somebody has already done the work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The final goal is to be able to generate an fstab for a host based on the permissions that the filer has.&amp;nbsp; If we add a host to a netgroup, we should be able to regenerate fstab entries for all file systems on that filer with the right mount options (ro, rw).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any pointers would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; .../Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 07:20:53 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Reports-from-netgroup-exports/m-p/50752#M4651</guid>
      <dc:creator>ewilts_mc</dc:creator>
      <dc:date>2025-06-05T07:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Reports from netgroup/exports</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Reports-from-netgroup-exports/m-p/50757#M4652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no direct or concise way to get the list that you are asking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the clients you can use - "showmount -e &amp;lt;ipaddr_NetApp Storage&amp;gt;". This will list all the mounts upto 10000 entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the NetApp Storage you can possiblely this information at one single point of time from the access cache contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The volume "test_vol" is exported out from the /etc/exports as follows:&lt;/P&gt;&lt;P&gt;/ect/test_vol&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -sec=sys,ro=172.17.39.0/29,rw=172.17.39.0/22,root=172.17.39.72,nosuid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fas6080c-svl13*&amp;gt; exportfs -c 172.17.39.72 /vol/test_vol -ro&lt;/P&gt;&lt;P&gt;exportfs: 172.17.39.72 has ro access to /vol/test_vol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2009 15:47:06 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Reports-from-netgroup-exports/m-p/50757#M4652</guid>
      <dc:creator>bikash</dc:creator>
      <dc:date>2009-12-11T15:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Reports from netgroup/exports</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Reports-from-netgroup-exports/m-p/50762#M4653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Bikash, but that doesn't really help because you have not factored in the netgroup file at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The export uses entries like rw=@hostlist.&amp;nbsp; Given that, you need to go through the netgroup file where you may have nested netgroup entries (we do here).&amp;nbsp; So it's actually a fairly complex matter to determine which host has access to which exports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm actually quite surprised that nobody has written anything like this before since it's pretty close to imperative for audit purposes.&amp;nbsp; Manually generating a list of which hosts have access to a specific mount point can be a very time-consuming exercise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; .../Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2009 16:32:40 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Reports-from-netgroup-exports/m-p/50762#M4653</guid>
      <dc:creator>ewilts_mc</dc:creator>
      <dc:date>2009-12-11T16:32:40Z</dc:date>
    </item>
  </channel>
</rss>

