TWiki> Main Web>WebPreferences>AmsLaptopAntivirus (revision 1)EditAttachPDF

clamav update and scan

0. manually install clamav on laptop2 with rmp, yumdownload, scp virus database to laptop, wait for cron to run

(see the kufwd-update-clamav-db script as an example: https://ams-vobox04.cern.ch/elog/DATA/1822)

1. laptop2

[ams@amslaptop ~]$ cat /etc/cron.d/clamav-cron
0 4,12,20 * * * root bash /home/ams/eAss/scripts/run-clamav.sh
#10 14 * * * root bash /home/ams/eAss/scripts/run-clamav.sh

2. POCC console

[data@pcpoc00: ~ ] head scripts/kufwd-update-clamav-db.sh
#!/bin/bash

#
# Download and update ClamAV DB on the laptop
#

KUFS='./kufwd-functions.sh' # KuFwd fucntions
DLS='./download-clamav-db.sh' # ClamAV DB download script

DESTLT=freshclam/ # destination directory on the laptop

3. check the script runnig on laptop2:

[root@amslaptop eAss]# cat /home/ams/eAss/scripts/run-clamav.sh

II. Make it automatic

= add acron's jobs on ams-backup.cern.ch to handle the table of versions

Django + python scripts

ID Downloaded Laptop2 Laptop Type Status
1 2017.06.19 2017.06.19 2017.06.19 main OK
2 2017.06.19 2017.06.19 2017.06.19 daily KO
3 2017.06.19 2017.06.19 2017.06.19 bytecode KO

Edit | Attach | Watch | Print version | History: r5 | r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r1 - 2017-06-23 - AndreyPashnin
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback