<?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 How to create fploicy to limite only txt file? in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/How-to-create-fploicy-to-limite-only-txt-file/m-p/453575#M43732</link>
    <description>&lt;P&gt;&lt;FONT size="4"&gt;I create a fpolicy to limited a volume can be store .txt file&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;I use this command&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;First I create a event&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;filer&amp;gt;vserver fpolicy policy event create -vserver fpsvm1 -event-name event1 -file-operations create,write,rename -protocol cifs&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Than I create a policy&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;filer&amp;gt;vserver fpolicy policy create -vserver fpsvm1 -policy-name policy1 -events event1 -engine native -is-mandatory true -allow-privileged-access no -is-passthrough-read-enabled false&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;And I create a scope&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;filer&amp;gt;vserver fpolicy policy scope create -vserver fpsvm1 -policy-name policy1 -file-extensions-to-exclude txt -volumes-to-include vol1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;finially I enable the policy&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;filer&amp;gt;vserver fpolicy enable -vserver fpsvm1 -policy-name policy1 -sequence-number 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;but I found the volume still can store any file&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;How must I modify configuration?&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jul 2024 06:18:10 GMT</pubDate>
    <dc:creator>AllenChang</dc:creator>
    <dc:date>2024-07-02T06:18:10Z</dc:date>
    <item>
      <title>How to create fploicy to limite only txt file?</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/How-to-create-fploicy-to-limite-only-txt-file/m-p/453575#M43732</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;I create a fpolicy to limited a volume can be store .txt file&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;I use this command&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;First I create a event&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;filer&amp;gt;vserver fpolicy policy event create -vserver fpsvm1 -event-name event1 -file-operations create,write,rename -protocol cifs&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Than I create a policy&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;filer&amp;gt;vserver fpolicy policy create -vserver fpsvm1 -policy-name policy1 -events event1 -engine native -is-mandatory true -allow-privileged-access no -is-passthrough-read-enabled false&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;And I create a scope&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;filer&amp;gt;vserver fpolicy policy scope create -vserver fpsvm1 -policy-name policy1 -file-extensions-to-exclude txt -volumes-to-include vol1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;finially I enable the policy&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;filer&amp;gt;vserver fpolicy enable -vserver fpsvm1 -policy-name policy1 -sequence-number 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;but I found the volume still can store any file&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;How must I modify configuration?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 06:18:10 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/How-to-create-fploicy-to-limite-only-txt-file/m-p/453575#M43732</guid>
      <dc:creator>AllenChang</dc:creator>
      <dc:date>2024-07-02T06:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to create fploicy to limite only txt file?</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/How-to-create-fploicy-to-limite-only-txt-file/m-p/453583#M43735</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While creating the scope, we had used the option&amp;nbsp;&lt;STRONG&gt;-file-extensions-to-exclude.&lt;BR /&gt;&lt;/STRONG&gt;This parameter specifies list of file extensions for which FPolicy processing will be excluded.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Please modify the&amp;nbsp; scope and use option&amp;nbsp;&lt;STRONG&gt;-file-extensions-to-include txt&amp;nbsp;&lt;/STRONG&gt;in place of&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;-file-extensions-to-exclude &lt;/STRONG&gt;to make Fpolicy process this file extension.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here is the matching KB for your reference:&amp;nbsp;&lt;A href="https://kb.netapp.com/on-prem/ontap/da/NAS/NAS-KBs/How_to_configure_native_Fpolicy_in_ONTAP_to_block_extensions" target="_blank"&gt;https://kb.netapp.com/on-prem/ontap/da/NAS/NAS-KBs/How_to_configure_native_Fpolicy_in_ONTAP_to_block_extensions&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please do let me know if it fixed the issue for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 13:24:26 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/How-to-create-fploicy-to-limite-only-txt-file/m-p/453583#M43735</guid>
      <dc:creator>ChLokesh</dc:creator>
      <dc:date>2024-07-02T13:24:26Z</dc:date>
    </item>
  </channel>
</rss>

