avconfig command

Name

avconfig - Antivirus service configuration helper.

Synopsis

avconfig [-d] [-h | -V | -C <params> | -U <params>]

Description

The avconfig command can be used to validate and modify the configuration file, config.ini, for the antivirus tools.

The configuration file consists of three sections: [avsvc], for the antivirus service, [avscan], for the on-demand scanner, and a [notify] section which describes notification methods that can be used by either tool.

Configuration options for avsvc are described in the avsvc manual page.

Configuration options for avscan are described in the avscan manual page.

The <params> argument is a space-separated list of section names and option settings. Examples are given below.

Root privilege is required to perform operations on the configuration file.

Options

-d Include debug output. This must be the first parameter.

-h Show this man page.

-V Produce a validation report for the current config.ini file.

-C <params>

Create a new configuration file by overriding the product defaults.

-U <params>

Create a new configuration file by overriding the current settings in config.ini.

Notification Support

The [notify] section of the configuration file defines commands and options for the notifiers requested in the [avscan] and [avsvc] section.

A notifier name is configured through name.cmd and name.options lines in the [notify] section of the configuration file.

The name.cmd parameter is used to specify the name of an executable file that is to perform the notification. The name.options parameter is used to specify the notification events that are to be sent. This is a comma-separated list containing one or more of:

none   

Notifications disabled.

all    

All notification events will occur.

started

Service or program start.

ended 

Service or program end.

error 

Errors reported during scanning.

timeout

Timeouts that occur during scanning.

virus  

Virus detected.

quarantine

File has been quarantined.

delete 

File has been deleted.

repair 

File has been repaired.

Exit Status

On success, 0 is returned, a non-zero failure code otherwise.

 

Related Topics