Errors codes

The following error codes are supported by the tool and may be returned at the runtime.

Error codes for klbscan tool

Code

Numeric value (hex)

Description

RC_OK

0x0

No threats detected, the scanned file is clean.

RC_MALWARE_DETECTED

0x1

Threats are found while scanning with default the KAV_SKIP scanning mode.

The error code indicates that threats were found but no action was performed to disinfect the file or delete it if disinfection was not possible, because no disinfection switches were specified at the command line for the klbscan tool.

By default, the klbscan tool runs in the KAV_SKIP mode in which the tool scans files without doing extra work to clean the detected malware or remove the malicious file when a threat is detected.

You may opt to re-scan files cleaning procedures applied when malware is detected. Please use the following switch parameters at the klbscan command line to apply specific action:

  • --disinfect

    This scanning mode switch parameter turns on the KAV_CLEAN_SKIP cleaning mode in the KAV Engine. This mode enables automatic disinfection for threats found during scanning procedure. If disinfection attempt fails, the infected file is skipped and the klbscan tool moves to the next file in scanning queue. For more information about the cleaning modes, see section "Cleaning modes".

  • --delete

    This scanning mode switch parameter turns on the KAV_DELETE cleaning mode in the KAV Engine. This mode enables the scanning engine to automatically delete infected files found during scanning procedure. For more information about the cleaning modes, see section "Cleaning modes".

RC_MALWARE_DISINFECTED

0x2

Threats were found and successfully eliminated.

This error code indicates that infected files were detected during the scan operation and have been successfully disinfected.

This code also indicates that KAV_CLEAN_SKIP cleaning mode is turned on and the klbscan tool is running with –disinfect option specified at its command line.

RC_MALWARE_DELETED

0x3

Threats were found and malicious file has been successfully deleted.

This error code indicates that infected files were detected during the scan operation and have been successfully removed from their location.

This code also indicates that either KAV_DELETE or KAV_CLEAN_DELETE cleaning mode is turned on and the klbscan tool is running with –-delete option specified at its command line or both --delete and --disinfect options are specified simultaneously.

RC_ERROR

0x4

An error occurred while scanning files for threats, and scanning cannot be finished.

If multiple files were added for scanning, the tool stops proceeding queued files when this error occurs while scanning, disinfecting, or deleting an infected file in the queue.

Page top