setCMClamav

Last Updated : Apr 04, 2018 |

Syntax

Run the following commands as a super-user:

setCMClamav [-u <freshclam|wget|manual>] <enabled|disabled>
-u

Allows you to specify the database update type.

  • freshclam: Uses mirrors to download the updates most efficiently, but does not work in every network

  • wget: If DNS settings on the server are setup correctly and internet access is available, this method will usually work. However, it does not always use the most efficient mirror, and as a result it can be slow sometimes.

    The "wget" method is enabled by default.

  • manual: Does not put any update cron job in place. Use this method if your server does not have internet access.

In 7.1.x release, you must install a service pack with the ClamAV RPMs before ClamAV starts working. After the SSP is installed with RPMs, the system is configured automatically to start the scan every night. Use ClamavUpdate to change the method used for automatical virus/malware definition updates, or to perform a manual definition update if there is no Internet connectivity in your network.

Description

Use setCMClamav to scan the system every night for viruses and malware. Results are sent to /var/log/messages.