To configure a scan with your custom settings, create an on-demand task.
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 --addodstask --name [task name] [additional options]Replace
[task name]with the name that you want to set. The task name is a mandatory field and must be unique.Multiple tasks can be configured with different settings.
Replace
[additional options]with the settings that you need.Option
Values
Description
Note
--scanarchiveenable(default)disableExamines the contents of archive (compressed) files, including .jar files.
Caution
Scanning archives is resource-intensive and affects performance.
--scanmimeenabledisable(default)Detects, decodes, and scans Multipurpose Internet Mail Extensions (MIME) encoded files.
--scanpupsenable(default)disableDetects, decodes, and scans potentially unwanted programs.
--scanunknownprogramsenable(default)disableDetects, decodes, and scans unknown program files.
--scanunknownmacrosenable(default)disableDetects, decodes, and scans unknown macro viruses.
--scanlocaldrivesenabledisableScans all regular files under locally mounted file systems.
An on-demand task runs a scan on the configured files and directories. So you must set a scan path using one of these options.
--scanlocaldrives enable--scantmpfolders enable--scannetworkdrives enable--scanpaths [path]--scanpathsAbsolute file name, just the name of a file, or Absolute name of the directory, specified according to these guidelines:
An Absolute file name and directory name must start with a slash [/].
A directory must end with a slash [/].
Multiple comma-separated values are allowed.
If any values have spaces in between, specify the value in double quotes ("").
Includes the specified files or directories to the scan.
--scantmpfoldersenabledisableScans all files under these directories in the system:
/tmp
/usr/local/tmp
/var/tmp
--scannetworkdrivesenabledisableIterates and scans all network mount points on the system.
Restricted to NFS and CIFS shares mounted on the system.
--scansubfoldersenabledisableIterates through the folders specified.
Only applicable when specified with these options:
scanlocaldrivesscanpathsscantmpfoldersscannetworkdrives--filetypestoscanall(default and recommended) — Scans all files.defaultandspecified— Scans the default files and files with specified extensions.onlyspecified— Scans only files as the user specifies. Mention at least one file type usingaddfiletype.
Specifies which file types to scan.
--scanmacrosenabledisableScans for known macro threats in the list of default and specified files.
Only applicable with
filetypestoscan--addfiletypeExtension name — The file types are specified as extension names and support the wildcard [?]. Duplicate entries are automatically removed.
Adds file types to the default or specified user-defined list.
--delfiletype [extension name]Extension names — Specify the entry to be deleted.
Deletes file types from the user-defined list of the file.
--noextensionenabledisableSpecifies files to be scanned with no extension.
--excludepathsAbsolute file name, just the name of a file or Absolute name of the directory, specified according to these guidelines:
Wildcards [*, ?] are allowed.
An Absolute file name and directory name must start with a slash [/].
A directory must end with a slash[/].
Multiple comma-separated values are allowed.
If any values have spaces in between, specify the values in double quotes ("").
Excludes the specified files or directories from the scan.
--excludefiletypeExtension names, specified according to these guidelines:
Wildcard [?] is allowed.
Multiple comma-separated values are allowed.
If any of the values have spaces in between, specify the value in double quotes ("").
Specifies the extensions for exclusion.
-- excludepathwithsubfolderExcludes the specified directory and it's all sub directories.
Only applicable for directories specified as part of
excludepaths.--usescancacheenabledisableSpecifies to use the On-Access Scan cache lookup while scanning files for this task.
--primaryactioncontinue— No action is taken and the event is logged.clean(default) — Removes the threat from the detected file, if possible. The original file is quarantined by default.delete— Deletes files with potential threats. The original file is quarantined by default.
Sets the primary scan action for threat detection. If the primary action fails, the secondary action is performed.
--secondaryactioncontinue— No action is taken and the event is logged.delete(default) — Deletes files with potential threats. The original file is quarantined by default.
This action is performed when primary action fails.
This option is only available when
primaryactionis specified as clean.For the primary action Delete, the only secondary option valid is Continue.
--primaryactionpupcontinue— No action is taken and the event is logged.clean(default) — Removes the threat from the detected file, if possible. The original file is quarantined by default.delete— Deletes files with potential threats. The original file is quarantined by default.
Sets the primary scan action for potentially unwanted programs. If the primary action fails, the secondary action is performed.
--secondaryactionpupcontinue— No action is taken and the event is logged.delete(default) — Deletes files with potential threats. The original file is quarantined by default.
This action is performed when primary action for potentially unwanted programs fails.
This option is only available when
primaryactionis specified as clean.--gtienable— Enables Trellix GTI file rating.disableDisables Trellix GTI file rating.sensitivitySets the sensitivity level of Trellix GTI file rating.
The sensitivity option is available only when Trellix GTI file rating is enabled for the scan.
--setmaxcpulimitvalue
The allowed range is 25 to 100. By default, the value is set to 80.
Example
:
./mfetpcli --addodstask --name odstask --scanlocaldrives enableThe command adds the on-demand task with task name
odstask, which scans only the local drives on the system.