Configure the on-access scan profile to add exclusions.
Log on to the system as a user with administrator rights.
Navigate to the default or custom directory. For example:
cd /opt/McAfee/ens/tp/binRun a command using this syntax.
./mfetpcli --setoasprofileconfig --profile [standard | highrisk | lowrisk] [exclusion options]Specify the profile risk level from which you want to exclude files:
standard,highrisk, orlowrisk.Note
The high-risk and low-risk process type are enforced only when the
--procsettingsis set toriskbased. If the--procsettingsvalue is set tostandard, then all processes are defined as standard processes. Run themfetpcli --helpcommand to see the software Help.Replace
[exclusion options]with these options:Specific when to exclude the files or directories using one of these options.
Option
Definition
--addexclusionreadAdds exclusions to the On-Access Scan exclusion list during read operations.
--addexclusionwriteAdds exclusions to the On-Access Scan exclusion list during write operations.
--addexclusionrwAdds exclusions to the On-Access Scan exclusion list during read and write operations.
Specify the files or directories to exclude using these options.
Option
Definition
--excludepathsExcludes the specified files or directories from the scan. Provide the Absolute file name, just the name of a file, or Absolute name of the directory according to these guidelines:
Wildcards [*, ?] are allowed as part of the value.
An Absolute file name and directory name must start with a [/].
A directory must end with a leading slash [/].
Multiple comma-separated values are allowed.
If any of the values have spaces in between, specify the values in double quotes ("").
--excludefiletypeSpecifies the extensions to exclude. Provide the extension names according to these guidelines:
Wildcard [?] is allowed as part of the value.
Multiple comma-separated values are allowed.
If any of the values have spaces in between, specify the value in double quotes ("").
-- excludesubfolderSpecifies the directory and it's all subdirectories that must be excluded.
Example
:
--addexclusionread --excludepaths "/home/user1/,/home/user/file1" --excludefiletype "txt,doc,pdf" --excludesubfolderThe command excludes to read these files:
All files in the /home/user1/ directory
/home/user/file1
All .txt, .doc or .pdf file types from any file systems
Also, the
--excludesubfolderattribute excludes the files in the directory and all its subdirectories.