This article discusses how to create File Scan Exclusions on a NetApp Cluster System running ONTAP (CDOT) 8.3.x.
For a File Extension Scan Exclusion to be effective on a NetApp Cluster System running ONTAP (CDOT) 8.3.x, it has to be configured using the NetApp Filer Command Line Interface. This can either be achieved by accessing the NetApp Console directly or via SSH.
- To list the set File Extension Scan Exclusion, execute the command below to provide you with the current setting:
vserver vscan on-access-policy show
- To add a File Extension Scan Exclusion or a list of file extensions to not scan to the specified policy name, execute the following command:
vserver vscan on-access-policy file-ext-to-exclude add
This command is not supported for a Vserver with Infinite Volume.
Parameters
The following parameter specifies the name of the Vserver containing the specified on-access policy to which you want to add a file extension or a list of file extensions not to scan:
-vserver- Vserver
The following parameter specifies the name of the on-access policy to which you want to add a file extension or a list of file extensions not to scan:
-policy-name- Policy
The following parameter specifies the file extension or a list of file extensions not to scan that you want to add to the specified on-access policy:
-file-ext-to-exclude, ... - File-Extensions Not to Scan
Examples
The following example adds a list of file extensions not to scan to the specified on-access policy.
cluster1::> vserver vscan on-access-policy file-ext-to-exclude add -vserver vs1
-policy-name policy1 -file-ext-to-exclude txt,mp4
cluster1::> vserver vscan on-access-policy file-ext-to-exclude show -vserver vs1
-policy-name policy1
Vserver: vs1
Policy: policy1
File-Extensions Not to Scan: mp3, mp4, txt, wav