<?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: Create export command update in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Create-export-command-update/m-p/55178#M11478</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tanzim,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have tested the command, previewed and executed the workflow under our existing 1.1.1 and our test 2.0 WFA.&amp;nbsp; I simply needed another set of eyes to be certain that I was not missing something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jan 2013 14:46:04 GMT</pubDate>
    <dc:creator>cscott</dc:creator>
    <dc:date>2013-01-23T14:46:04Z</dc:date>
    <item>
      <title>Create export command update</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Create-export-command-update/m-p/55166#M11474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have cloned the "create export" command to make it more secure as per our needs.&amp;nbsp; I was wondering if there are any immediate issues with this simple code?&amp;nbsp; It simply ensures that there is no world RW or RO export as it is not acceptable in the automated deployment environment we have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ($Anon) &lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; $expression += " -Anon " + $Anon&lt;/P&gt;&lt;P&gt;} &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;##&lt;/P&gt;&lt;P&gt;##New code begin&lt;/P&gt;&lt;P&gt;##&lt;/P&gt;&lt;P&gt;If (&amp;nbsp; ( $Roothosts )&amp;nbsp; -and ( !$RWhosts ) ) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $RWhosts = $Roothosts&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;##&lt;/P&gt;&lt;P&gt;##New code end &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 = "all-hosts"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:11:43 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Create-export-command-update/m-p/55166#M11474</guid>
      <dc:creator>cscott</dc:creator>
      <dc:date>2025-06-05T06:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create export command update</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Create-export-command-update/m-p/55171#M11476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Scott,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code looks fine and there do not seem to be any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tested it briefly and it works as expected when "Roothosts" is defined.&lt;/P&gt;&lt;P&gt;Providing the relevant snippet of the command test log below:&lt;/P&gt;&lt;P&gt; "Add-NaNfsExport -Persistent -Path /vol/testvol -Root @('1.1.1.1') -ReadOnly @() -ReadWrite @('1.1.1.1')"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI (in case you have missed it): WFA provides a "Test" feature per command for the very purpose mentioned in this thread. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tanzim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 09:38:16 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Create-export-command-update/m-p/55171#M11476</guid>
      <dc:creator>tanzim</dc:creator>
      <dc:date>2013-01-23T09:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create export command update</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Create-export-command-update/m-p/55178#M11478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tanzim,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have tested the command, previewed and executed the workflow under our existing 1.1.1 and our test 2.0 WFA.&amp;nbsp; I simply needed another set of eyes to be certain that I was not missing something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 14:46:04 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Create-export-command-update/m-p/55178#M11478</guid>
      <dc:creator>cscott</dc:creator>
      <dc:date>2013-01-23T14:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create export command update</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Create-export-command-update/m-p/55183#M11479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Scott,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another point worth noting:&lt;/P&gt;&lt;P&gt;Cloned commands do not retain the Reservation characteristics that certified commands have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if that's overly critical with said command, but worth noting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW - You could have done that in the define of the export as well, and then retain the usage of our certified command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the RWHosts write something like&lt;/P&gt;&lt;P&gt;$RWHosts == "" ? $RootHosts : $RWHosts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a screen cap of the definition and the results (When RootHosts contain data while RWHosts is empty):&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/18483_exp-def.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/18484_exp-result.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yaron Haimsohn&lt;/P&gt;&lt;P&gt;WFA Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 11:34:54 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Create-export-command-update/m-p/55183#M11479</guid>
      <dc:creator>yaronh</dc:creator>
      <dc:date>2013-01-24T11:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create export command update</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Create-export-command-update/m-p/55191#M11480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Yaron! &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I didn't even think about using the variable in the find chart to correct it.&amp;nbsp; I am going to use this method so that I still am using the certified command structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 20:44:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Create-export-command-update/m-p/55191#M11480</guid>
      <dc:creator>cscott</dc:creator>
      <dc:date>2013-01-24T20:44:03Z</dc:date>
    </item>
  </channel>
</rss>

