<?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: [Netapp Powershell Toolkit] Assigning an export-policy in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Netapp-Powershell-Toolkit-Assigning-an-export-policy/m-p/139561#M30815</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/61291"&gt;@Nick_Talbot&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You probably found &lt;A href="https://community.netapp.com/t5/Microsoft-Cloud-and-Virtualization-Discussions/How-to-apply-an-ExportPolicy-to-a-volume/td-p/73742" target="_self"&gt;that post.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It is basically all in there:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Connect to a controller:&lt;/P&gt;
&lt;PRE&gt;Connect-NcController&lt;/PRE&gt;
&lt;P&gt;2. Create your policy and rule:&lt;/P&gt;
&lt;PRE&gt;New-NcExportPolicy -VserverContext SVM_NAME -Name POLICY_NAME 

New-NcExportRule -VserverContext SVM_NAME -Policy POLICY_NAME -ClientMatch HOSTS&lt;/PRE&gt;
&lt;P&gt;3. Apply the policy to the Volume:&lt;/P&gt;
&lt;PRE&gt;update-ncvol -query @{name="VOL_NAME"} -Attributes @{volumeexportattributes=@{policy="POLICY_NAME"}}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will need to change the follwing information:&lt;/P&gt;
&lt;P&gt;- SVM_NAME&lt;/P&gt;
&lt;P&gt;- POLICY_NAME (3 times)&lt;/P&gt;
&lt;P&gt;- HOSTS (the client match is either a client or a range of IPs, or a subnet)&lt;/P&gt;
&lt;P&gt;- VOL_NAME&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope that helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Ron.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Apr 2018 17:35:00 GMT</pubDate>
    <dc:creator>wronald</dc:creator>
    <dc:date>2018-04-12T17:35:00Z</dc:date>
    <item>
      <title>[Netapp Powershell Toolkit] Assigning an export-policy</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Netapp-Powershell-Toolkit-Assigning-an-export-policy/m-p/139547#M30807</link>
      <description>&lt;P&gt;I'm having a hard time figuring out how to apply an export-policy to a volume using the netapp powershell toolkit.&amp;nbsp; Does anyone have a good example of how to do this?&amp;nbsp; I saw another thread on this subject on these forums but it didn't make it very clear to me.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 14:38:41 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Netapp-Powershell-Toolkit-Assigning-an-export-policy/m-p/139547#M30807</guid>
      <dc:creator>Nick_Talbot</dc:creator>
      <dc:date>2018-04-12T14:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: [Netapp Powershell Toolkit] Assigning an export-policy</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Netapp-Powershell-Toolkit-Assigning-an-export-policy/m-p/139561#M30815</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/61291"&gt;@Nick_Talbot&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You probably found &lt;A href="https://community.netapp.com/t5/Microsoft-Cloud-and-Virtualization-Discussions/How-to-apply-an-ExportPolicy-to-a-volume/td-p/73742" target="_self"&gt;that post.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It is basically all in there:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Connect to a controller:&lt;/P&gt;
&lt;PRE&gt;Connect-NcController&lt;/PRE&gt;
&lt;P&gt;2. Create your policy and rule:&lt;/P&gt;
&lt;PRE&gt;New-NcExportPolicy -VserverContext SVM_NAME -Name POLICY_NAME 

New-NcExportRule -VserverContext SVM_NAME -Policy POLICY_NAME -ClientMatch HOSTS&lt;/PRE&gt;
&lt;P&gt;3. Apply the policy to the Volume:&lt;/P&gt;
&lt;PRE&gt;update-ncvol -query @{name="VOL_NAME"} -Attributes @{volumeexportattributes=@{policy="POLICY_NAME"}}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will need to change the follwing information:&lt;/P&gt;
&lt;P&gt;- SVM_NAME&lt;/P&gt;
&lt;P&gt;- POLICY_NAME (3 times)&lt;/P&gt;
&lt;P&gt;- HOSTS (the client match is either a client or a range of IPs, or a subnet)&lt;/P&gt;
&lt;P&gt;- VOL_NAME&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope that helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Ron.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 17:35:00 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Netapp-Powershell-Toolkit-Assigning-an-export-policy/m-p/139561#M30815</guid>
      <dc:creator>wronald</dc:creator>
      <dc:date>2018-04-12T17:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: [Netapp Powershell Toolkit] Assigning an export-policy</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Netapp-Powershell-Toolkit-Assigning-an-export-policy/m-p/441427#M41740</link>
      <description>&lt;P&gt;Thanks for this&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/9827"&gt;@wronald&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Worked for me and now saved to my 'netapp ps snippets'.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 20:51:13 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Netapp-Powershell-Toolkit-Assigning-an-export-policy/m-p/441427#M41740</guid>
      <dc:creator>OhGrossAZ</dc:creator>
      <dc:date>2023-02-03T20:51:13Z</dc:date>
    </item>
  </channel>
</rss>

