AvpLinux and antiviral database update v0.7

Русская версия

What is it

AvpUpdate is a program for automated updating of antiviral database via network.

AvpUpdate allows to compare local antiviral database and antiviral database on Support-server and if it is necessary to update. AvpUpdate can run the external program if local database was successfully updated. For instance, this external program can send an announcement of new update to your colleagues. If antiviral database is successfully updated or if no update is needed, AvpUpdate will terminate with exit code 0.

Installation

Uncompress and unpack the distribution

tar zxvf AvpUpdate-0.6.tar.gz
    

Copy file AvpUpdate into /usr/sbin.

I recommend to use cron utility to run AvpUpdate. For example to start AvpUpdate on 1:00 daily one can put into the file /var/spool/cron/root this string:

0 1 * * * /usr/sbin/AvpUpdate
    
Use "man crond" and "man crontab" for references.
If you have dial-up connection to Internet is used the start-up of the Avp-Update can be put in file /etc/ppp/ip-up.local.

AvpUpdate is written on Perl Language and it is required perl-library Bundle::libnet. This library may be installed by command (root privelege and Internet access are required):

# perl -MCPAN -e shell
...
cpan> install Bundle::libnet
...
cpan> exit
#
    

Configuration

All configurable parameters are grouped in the top of the source program. One can use any text editor to change them. Follow the proper syntax please. Configurable parameters are:
UpdateServer FTP Support Server Avp. For example "ftp.avp.ru".
UpdateDir Directory name with antivirus database on FTP Support Server Avp. For example "/updates".
UpdateUser login for access to FTP Support Server Avp. For example "anonymous".
UpdatePasswd Password for access to FTP Support Server Avp. For example "user\@company.com". Please note that one should use "\" (backslash) before "@"!
UpdateTryConnect Maximum number of attempts to connect to FTP Support Server Avp. For example 10, 0 - unlimited.
avpBaseDir Directory name which contains a local antivirus database. For example "/var/lib/Avp".
UpdateExec Pathname of external program which will start running when local antivirus database is successfully updated. For example "/usr/sbin/AvpAnounce". One may ⌠comment■ this parameter if he doesn't need to run an external program.
UpdateVerbose Logging level AvpUpdate. 0 - not logging, 1 - full logging. AvpUpdate sends a log to standard output (stdout).

As an example of external program one can find AvpAnounce.example in AvpUpdate archive. This program takes the message of records counter in current antivirus database from report file and sends an E-Mail to user (Distribution list).

Links

Author

Serg Oskin
Serg Oskin
Last modified: Fri Mar 15 16:17:43 MSK 2002