Difference: AmsLaptopAntivirus (4 vs. 5)

Revision 52017-07-17 - AndreyPashnin

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

"Daily" clamav database update procedure

Changed:
<
<
1. ssh data@pcpoc30
>
>
1. ssh data@pcpoc30
 
Changed:
<
<
2. cd ~/freshclam
>
>
2. cd ~/freshclam
 
Changed:
<
<
3. mv daily.cvd daily.cvd.curr; mv bytecode.cvd bytecode.cvd.curr; mv main.cvd main.cvd.curr
>
>
3. (shouldn't exist any .cvd) 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
Line: 14 to 14
  5. execute wget on pcpoc30:
Changed:
<
<
[data@pcpoc30 freshclam]$ wget http://database.clamav.net/{main,daily,bytecode}.cvd
>
>
[data@pcpoc30 freshclam]$ wget http://database.clamav.net/{main,daily,bytecode}.cvd
 
Changed:
<
<
6. (TODO: bash command) remove rm XXX.cvd if has the same size (better: same md5) as XXX.cvd.curr
>
>
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
Changed:
<
<
[data@pcpoc30 freshclam]$ scp ./*.cvd ams@amslaptop2:~/freshclam/
>
>
[data@pcpoc30 freshclam]$ scp ./.cvd ams@amslaptop2:~/freshclam/*
  8. ssh to amslaptop2
Changed:
<
<
[data@pcpoc30 freshclam]$ ssh ams@amslaptop2
>
>
[data@pcpoc30 freshclam]$ ssh ams@amslaptop2
  9. run clamav scan manually on amslapto2
Changed:
<
<
[ams@amslaptop freshclam]$ sudo /home/ams/eAss/scripts/run-clamav.sh
>
>
[ams@amslaptop freshclam]$ sudo /home/ams/eAss/scripts/run-clamav.sh
  10. wait to finish, check for infected files found
Changed:
<
<

SCAN SUMMARY -----------
Known viruses: 6299082
Engine version: 0.99.2
Scanned directories: 19135
Scanned files: 212942
Infected files: 0
Data scanned: 6833.84 MB
Data read: 7775.82 MB (ratio 0.88:1)
Time: 2382.783 sec (39 m 42 s)
>
>
[ams@amslaptop ~]$ tail -f /dat0/log/clamav_*


SCAN SUMMARY -----------
Known viruses: 6299082
Engine version: 0.99.2
Scanned directories: 19135
Scanned files: 212942
Infected files: 0
Data scanned: 6833.84 MB
Data read: 7775.82 MB (ratio 0.88:1)
Time: 2382.783 sec (39 m 42 s)

10.1 check for the updated DB files:

[ams@amslaptop ~]$ tail -f /dat0/log/clamav_2017_198.log
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
--- clamav_2017_198.log at 08:39:43
~ ~ ~ ~ daily.cvd freshened
~ ~ ~ ~ bytecode.cvd freshened
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
--- clamav_2017_198.log at 08:43:42

  11. If everything ok, proceed with AMS laptop:
 
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