Change On-Access Attributes (AVCHGA)
The AVCHGA command allows you to configure the settings for on-access scanning.
On‑Access type (ACCESS)
Clean infected files (CLEAN)
Specifies if the engine should remove the virus from the file ("clean"). If a file cannot be cleaned, the CLEANFAIL parameter provides a secondary choice.
Action if not cleaned (CLEANFAIL)
Heuristic analysis (HEURISTIC)
Include heuristic analysis to find new viruses. When you use heuristic analysis, the scanning engine employs heuristic technology to detect potentially unknown viruses in executable files (programs). Without this option, the engine can only find viruses that are already known and identified in the current virus definition files.
Macro analysis (MACRO)
Specifies if you want to treat embedded macros that have code resembling a virus as if they were viruses. This parameter is similar to Heuristic analysis but scans for new viruses in compound document formats; for example, Microsoft OLE formats such as Word documents.
You can use both Macro Analysis and Heuristic Analysis as parameters, and the engine determines which heuristics to implement based on the file type.
Potentially unwanted programs (PROGRAMS)
Specifies if you want scanning activities to include detection of some widely available applications, such as password crackers or remote access utilities that can be used maliciously or pose a security threat.
Scan archives (ARCHIVES)
Specifies if you want scanning activities to include archive files. Archive files contain embedded files and usually end with one of the following extensions: .ZIP, .TAR, .CAB, .LZH, .JAR and .UUE. This option will also permit scanning of MSCompress files.
Files (FILES)
Specifies the types of files to include in scanning activities.
Exclude Directories (EXCL)
Even if a directory is omitted from on-access scanning, Powertech Antivirus for IBM i will still scan the directory if it is included in an on-demand scan task.
Specifies the list of directories to exclude from on-access scanning. Domino data directories are a good choice here, since Domino is known to have problems when it cannot open infected files. To exclude a single file, use the command CHGATR OBJ(file-name) ATR(*SCAN) VALUE(*NO), where file-name is the fully qualified path of the object you want to exclude from scanning).
The maximum path length is 4096.
To go beyond this size, the command needs to be entered without the prompt by using CALL QCMD and pressing F11.
Timeout (TIMEOUT)
Specifies the maximum number of seconds the product will spend scanning any one particular file during an on-access scan. After the specified number of seconds, the file is allowed to be opened and the file’s scan status remains unchanged. The default setting is 30 (seconds).
Logging level (LOGLVL)
Specifies the amount of information logged to the avsvr.log file. Settings 2 and 3 can be used for troubleshooting but are not recommended for long term use as the log file can grow very large, and reduces scanning performance.