Specify file path exclusion for scanning in Symantec Protection Engine

You can select the files to be excluded from scanning by specifying the file path. Symantec Protection Engine excludes files from scanning based on the location of the files.
A maximum of 32 file paths can be excluded from scanning.
File path exclusion scanning settings lists the file path exclusion scanning settings.
File path exclusion scanning settings
XPath
Field value
Default setting
/filtering/FileAttribute/​ DenyFilePaths/items/item/@value
A valid field value.
The file path is case sensitive and each file path must be at a separate line.
None
  1. To add an exclusion file path
  2. Create a
    .txt
    file with the list of file paths to be used by Symantec Protection Engine that are to be excluded from scanning.
    The file paths are case sensitive and each file path must be at a new line.
    Also, the file paths must be unique. The xmlmodifier command does not check for duplicate file path entries.
  3. Save the file to your system.
  4. Run the following command:
    xmlmodifier -b //filtering/FileAttribute/DenyFilePaths <Path of a text file containing list of exclude file> filtering.xml
    For example:
    xmlmodifier -b //filtering/FileAttribute/DenyFilePaths F:\Path_list.txt filtering.xml
    where
    F:\Path_list.txt
    contains the following file paths:
    • C:\testfiles\
    • F:\test\
    • \\10.217.1.2\ONTAP_ADMIN$\vol\vol0\home\test\abc\
    The file path can include the name of the file too. For example,
    C:\testfiles\abc.txt
    , which means that only the
    abc.txt
    file in the testfiles folder is excluded from scanning.
  5. Restart the Symantec Protection Engine service.
  6. To manually modify/delete an exclusion file path
  7. Open the
    filtering.xml
    file and manually delete the file path that needs to be modified.
  8. Save the file.
  9. Add the new file path to the
    .txt
    file, and save the file.
    The file paths must be unique. The xmlmodifier command does not check for duplicate file path entries.
  10. Run the following command:
    xmlmodifier -b //filtering/FileAttribute/DenyFilePaths <Path of a text file containing list of exclude file> filtering.xml
  11. Restart the Symantec Protection Engine service.
  12. To modify/delete an exclusion file path using the xmlmodifier command
  13. Run the following command:
    xmlmodifier -r //filtering/FileAttribute/DenyFilePaths/items filtering.xml
    This command removes all the file paths.
  14. Add the new file paths to the
    .txt
    file, and save the file.
    The file paths must be unique. The xmlmodifier command does not check for duplicate file path entries.
  15. Run the following command:
    xmlmodifier -b //filtering/FileAttribute/DenyFilePaths <Path of a text file containing list of exclude file> filtering.xml
  16. Restart the Symantec Protection Engine service.