Difference: AmsLaptopAntivirus (1 vs. 2)

Revision 22017-06-30 - AndreyPashnin

Line: 1 to 1
 
META TOPICPARENT name="TWiki.WebPreferences"
Added:
>
>

"Daily" clamav database update procedure

1. ssh data@pcpoc30

2. cd ~/freshclam

3. mv daily.cvd daily.cvd.curr; mv bytecode.cvd bytecode.cvd.curr; mv main.cvd main.cvd.curr

4. open somewhere a browser at: https://www.clamav.net/downloads

4.1 open tab Virus Database, copy link to daily.cvd

5. execute wget on pcpoc30:

[data@pcpoc30 freshclam]$ wget http://database.clamav.net/{main,daily,bytecode}.cvd

6. (TODO: bash command) remove rm XXX.cvd if has the same size (better: same md5) as XXX.cvd.curr

7. copy updated files to amslaptop2

[data@pcpoc30 freshclam]$ scp ./*.cvd ams@amslaptop2:~/freshclam/

8. ssh to amslaptop2

[data@pcpoc30 freshclam]$ ssh ams@amslaptop2

9. run clamav scan manually on amslapto2

[ams@amslaptop freshclam]$ sudo /home/ams/eAss/scripts/run-clamav.sh

 

clamav update and scan

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

Changed:
<
<
(see the kufwd-update-clamav-db script as an example: https://ams-vobox04.cern.ch/elog/DATA/1822)
>
>
(see the kufwd-update-clamav-db script as an example: https://ams-vobox04.cern.ch/elog/DATA/1822)
  1. laptop2
Line: 14 to 44
  [data@pcpoc00: ~ ] head scripts/kufwd-update-clamav-db.sh
#!/bin/bash
Changed:
<
<
#
# Download and update ClamAV DB on the laptop
#
>
>
#
# Download and update <a href="https://twiki.cern.ch/twiki/bin/edit/Main/ClamAV?topicparent=Main.AndreyPashnin;nowysiwyg=0" rel="nofollow" title="this topic does not yet exist; you can create it."> ClamAV </a> DB on the laptop
#
 
Changed:
<
<
KUFS='./kufwd-functions.sh' # KuFwd fucntions
DLS='./download-clamav-db.sh' # ClamAV DB download script
>
>
KUFS='./kufwd-functions.sh' # <a href="https://twiki.cern.ch/twiki/bin/edit/Main/KuFwd?topicparent=Main.AndreyPashnin;nowysiwyg=0" rel="nofollow" title="this topic does not yet exist; you can create it."> KuFwd </a> fucntions
DLS='./download-clamav-db.sh' # <a href="https://twiki.cern.ch/twiki/bin/edit/Main/ClamAV?topicparent=Main.AndreyPashnin;nowysiwyg=0" rel="nofollow" title="this topic does not yet exist; you can create it."> ClamAV </a> DB download script
  DESTLT=freshclam/ # destination directory on the laptop

Revision 12017-06-23 - AndreyPashnin

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="TWiki.WebPreferences"

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

 
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