<?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: NFS Create Export command - question about global export in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NFS-Create-Export-command-question-about-global-export/m-p/64912#M13479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, this would prevent global RW to all hosts.&amp;nbsp; Either removing that line or modifying it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is another option to take care of this I needed a solution to validate user inputs actually exist.&amp;nbsp; I did this by using an isValid function as part of the enable command.&amp;nbsp; I check to ensure that the user input contains a value.&amp;nbsp; Let's say that the variable is named $rwHosts.&amp;nbsp; I would put the following value into the enable portion of the Create Export Command -&amp;gt; isValid($rwHosts) ?true :false&amp;nbsp; The inline function that I used was an IF THEN.. and can be used for many other purposes.&amp;nbsp; In this case, if the user did not provide a value for $rwHosts, then the command would be disabled.&amp;nbsp; Otherwise, I will enable the command and execute.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Oct 2012 20:21:56 GMT</pubDate>
    <dc:creator>goodrum</dc:creator>
    <dc:date>2012-10-15T20:21:56Z</dc:date>
    <item>
      <title>NFS Create Export command - question about global export</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NFS-Create-Export-command-question-about-global-export/m-p/64907#M13478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I discovered that in the &lt;STRONG&gt;Create Export &lt;/STRONG&gt;command WFA tests for the presence of Read-Write hosts &amp;amp; Read-Only hosts and if none are provided the NFS share is exported with global access to everyone.&amp;nbsp; In our environment this is forbidden due to security guidelines and so I'd like to do the opposite - if no RW or RO hosts are provided the share is exported to no one.&amp;nbsp; I believe I found the Powershell code in the command where this occurs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;######################################&lt;/P&gt;&lt;P&gt;if (!$RWhosts -and !$ROhosts)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $RWhosts = "&lt;SPAN style="color: #ff0000;"&gt;all-hosts&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$expression += " -Root " + (Format-Array -Array $Roothosts) + " -ReadOnly " + (Format-Array -Array $ROhosts) + " -ReadWrite " + (Format-Array -Array $RWhosts)&lt;/P&gt;&lt;P&gt;######################################&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I don't know is the value that should replace "&lt;EM&gt;all-hosts&lt;/EM&gt;" to do this.&amp;nbsp; Is there a "&lt;EM&gt;no-hosts&lt;/EM&gt;" option from an API perspective?&amp;nbsp; I'll just create a clone of this command and call it something like "Create Export-GlobalForbidden" or something like that with this value changed to prevent global access.&amp;nbsp; Alternatively, maybe I just need to rip out this &lt;EM&gt;if &lt;/EM&gt;statement altogether and not set RWhosts to "&lt;EM&gt;all-hosts&lt;/EM&gt;" - I'll play around with it the meantime to see if I can find the answer.&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:17:24 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NFS-Create-Export-command-question-about-global-export/m-p/64907#M13478</guid>
      <dc:creator>dcornely1</dc:creator>
      <dc:date>2025-06-05T06:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: NFS Create Export command - question about global export</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NFS-Create-Export-command-question-about-global-export/m-p/64912#M13479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, this would prevent global RW to all hosts.&amp;nbsp; Either removing that line or modifying it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is another option to take care of this I needed a solution to validate user inputs actually exist.&amp;nbsp; I did this by using an isValid function as part of the enable command.&amp;nbsp; I check to ensure that the user input contains a value.&amp;nbsp; Let's say that the variable is named $rwHosts.&amp;nbsp; I would put the following value into the enable portion of the Create Export Command -&amp;gt; isValid($rwHosts) ?true :false&amp;nbsp; The inline function that I used was an IF THEN.. and can be used for many other purposes.&amp;nbsp; In this case, if the user did not provide a value for $rwHosts, then the command would be disabled.&amp;nbsp; Otherwise, I will enable the command and execute.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 20:21:56 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NFS-Create-Export-command-question-about-global-export/m-p/64912#M13479</guid>
      <dc:creator>goodrum</dc:creator>
      <dc:date>2012-10-15T20:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: NFS Create Export command - question about global export</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NFS-Create-Export-command-question-about-global-export/m-p/64921#M13480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&amp;nbsp; I just finished testing 2 conditions:&lt;/P&gt;&lt;P&gt;1) Removing the if statement altogether.&amp;nbsp; What I found is that the share still does get exported globally.&amp;nbsp; So no dice there.&lt;/P&gt;&lt;P&gt;2) Changing the value from "all-hosts" to "no-hosts" to test if this was also a command option.&amp;nbsp; It's not but I found something useful.&amp;nbsp; Here's what the /etc/exports entry looks like with no changes at all (what I can't use):&lt;/P&gt;&lt;P&gt;/vol/frank/dave -sec=sys,rw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This of course is globally accessible by all as read-write.&amp;nbsp; But with with the code value changed to "no-hosts" this is what I got:&lt;/P&gt;&lt;P&gt;/vol/frank/dave -sec=sys,rw=no-hosts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, this means that if the value of this variable isn't set to a command option (like all-hosts) it'll just set the rw client to that value.&amp;nbsp; It could therefore be useful to put something like "not.currently.accessed" or something equivalent so it's explanatory and at the same time preventing any access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't had a chance to test your suggestion about the isValid function but I like that too.&amp;nbsp; I need to determine if we're okay with having these entries in the exports file that imply it's not currently being used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 22:07:40 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NFS-Create-Export-command-question-about-global-export/m-p/64921#M13480</guid>
      <dc:creator>dcornely1</dc:creator>
      <dc:date>2012-10-15T22:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: NFS Create Export command - question about global export</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NFS-Create-Export-command-question-about-global-export/m-p/64926#M13481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After changing your code/command from all-hosts to no-hosts, this is what you you see on your exportfs (rdfile /etc/exports).&lt;/P&gt;&lt;P&gt;/vol/frank/dave -sec=sys,rw=no-hosts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above entry in /etc/exports does allow read-write access to client whose name is 'no-hosts'. I feel what you are looking is 'no client' should get read-write access. For that your /etc/exports should contain like this (no rw entry).&lt;/P&gt;&lt;P&gt;/vol/frank/dave -sec=sys &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me check PowerShell command and get back to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Giri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 07:32:09 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NFS-Create-Export-command-question-about-global-export/m-p/64926#M13481</guid>
      <dc:creator>girirp</dc:creator>
      <dc:date>2012-10-16T07:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: NFS Create Export command - question about global export</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NFS-Create-Export-command-question-about-global-export/m-p/64930#M13482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NetApp Controllers have an auto-export option which is enabled by default.&amp;nbsp; When a volume is created, an export will be generated by default.&amp;nbsp; Since your company has strict no global export rules, it would be a good idea to disable the option.&amp;nbsp; Here is the KB on the option:&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="https://kb.netapp.com/support/index?page=content&amp;amp;id=1011639&amp;amp;actp=search&amp;amp;viewlocale=en_US&amp;amp;searchid=1350392902686" title="https://kb.netapp.com/support/index?page=content&amp;amp;id=1011639&amp;amp;actp=search&amp;amp;viewlocale=en_US&amp;amp;searchid=1350392902686" target="_blank"&gt;https://kb.netapp.com/support/index?page=content&amp;amp;id=1011639&amp;amp;actp=search&amp;amp;viewlocale=en_US&amp;amp;searchid=1350392902686&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should ensure that no export is created when the volume is created&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 13:18:36 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NFS-Create-Export-command-question-about-global-export/m-p/64930#M13482</guid>
      <dc:creator>goodrum</dc:creator>
      <dc:date>2012-10-16T13:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: NFS Create Export command - question about global export</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NFS-Create-Export-command-question-about-global-export/m-p/64939#M13485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please replace 'all-hosts' with 'not.currently.accessed'. This is perfectly fine. Your export entry looks like this.&lt;/P&gt;&lt;P&gt;/vol/vol0/home&amp;nbsp; -sec=sys,rw=not.currently.accessed&lt;/P&gt;&lt;P&gt;Above line says host/client with name 'not.currently.accessed' can only access this storage path. But as you know there is host with host name 'not.currently.accessed' in your network.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Giri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 14:01:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NFS-Create-Export-command-question-about-global-export/m-p/64939#M13485</guid>
      <dc:creator>girirp</dc:creator>
      <dc:date>2012-10-16T14:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: NFS Create Export command - question about global export</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NFS-Create-Export-command-question-about-global-export/m-p/64948#M13487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all - I did do something similar to "&lt;EM&gt;not.currently.accessed&lt;/EM&gt;" in that it's such an obscure phrase that no host will have that name.&amp;nbsp; Also, thanks for pointing out the NFS &lt;EM&gt;auto-update &lt;/EM&gt;option, we've had that turned off for some time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 16:59:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NFS-Create-Export-command-question-about-global-export/m-p/64948#M13487</guid>
      <dc:creator>dcornely1</dc:creator>
      <dc:date>2012-10-16T16:59:34Z</dc:date>
    </item>
  </channel>
</rss>

