Re: [clamav-users] How to get each file status when scan a ditrtectory using clamdscan
@Haywood I know that Clamd uses Multiscan mode when we perform scan over dirtectory to do Parallel scanning using available threads.. but In the case of you suggested command we only able to send the file one by one to Clamd server through clamdscan request.so we can't able to take the advantage of multi-threading.so it increases overall scanning time On 4 October 2016 at 23:02, crazy thinker wrote: > @Haywood > > Thanks for reply..i checked this command. it's working fine..but I am > planning to code changes in code base to achieve each call back file status > when perform a scan over dirtectory that conatins multiple > subdirtectories.. could you please help me on this ..i think you have good > understanding on clamav internals > > On 4 October 2016 at 22:44, G.W. Haywood > wrote: > >> Hi there, >> >> On Tue, 4 Oct 2016, crazy thinker wrote: >> >> when i scanned a dirtectory using clamdscan, i could get only error and >>> virus file infected files status in output.but i would like to see each >>> file status(including "OK" status also ) when i perform scan over sinle >>> dirtectory / multiple dirtectories >>> >>> how does it can be achived? could anyone please help me in this... >>> >> >> /usr/bin/find /path/to/files -type f -name '*' | /usr/bin/xargs -I '{}' >> /path/to/clamdscan '{}' >> >> -- >> >> 73, >> Ged. >> >> ___ >> Help us build a comprehensive ClamAV guide: >> https://github.com/vrtadmin/clamav-faq >> >> http://www.clamav.net/contact.html#ml >> > > ___ Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] How to get each file status when scan a ditrtectory using clamdscan
@Haywood Thanks for reply..i checked this command. it's working fine..but I am planning to code changes in code base to achieve each call back file status when perform a scan over dirtectory that conatins multiple subdirtectories.. could you please help me on this ..i think you have good understanding on clamav internals On 4 October 2016 at 22:44, G.W. Haywood wrote: > Hi there, > > On Tue, 4 Oct 2016, crazy thinker wrote: > > when i scanned a dirtectory using clamdscan, i could get only error and >> virus file infected files status in output.but i would like to see each >> file status(including "OK" status also ) when i perform scan over sinle >> dirtectory / multiple dirtectories >> >> how does it can be achived? could anyone please help me in this... >> > > /usr/bin/find /path/to/files -type f -name '*' | /usr/bin/xargs -I '{}' > /path/to/clamdscan '{}' > > -- > > 73, > Ged. > > ___ > Help us build a comprehensive ClamAV guide: > https://github.com/vrtadmin/clamav-faq > > http://www.clamav.net/contact.html#ml > ___ Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] How to get each file status when scan a ditrtectory using clamdscan
Hi there, On Tue, 4 Oct 2016, crazy thinker wrote: when i scanned a dirtectory using clamdscan, i could get only error and virus file infected files status in output.but i would like to see each file status(including "OK" status also ) when i perform scan over sinle dirtectory / multiple dirtectories how does it can be achived? could anyone please help me in this... /usr/bin/find /path/to/files -type f -name '*' | /usr/bin/xargs -I '{}' /path/to/clamdscan '{}' -- 73, Ged. ___ Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
[clamav-users] MaxQueue & MaxConnectionQueueLength
Hi All, I am newbie to ClamAV. what is the exact difference between MaxQueue and MaxConnectionQueueLength how many clamdscan instances can able to connect to clamd on local machine? is theere any limit on this. Any help/Suggestions would be appreciated Thanks, Crazy Thinker ___ Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] How to get each file status when scan a ditrtectory using clamdscan
Hi @kris The second option you suggested won't work if the dirtectory have mutiple subdirtectories. please find below example..I want to see same output as like calmscan output when we perform recurisve scan over dirtectory that contains mutiple subdirtectories. root@backbencher:~#* /usr/local/clamav/bin/clamdscan ~/C++/** */root/C++/Constructors: OK* */root/C++/CvsC++: OK* */root/C++/diffOput: OK* */root/C++/FOL: OK* */root/C++/Inhertiance: OK* */root/C++/OOL: OK* */root/C++/referencesInC++: OK* */root/C++/StructureVSClass: OK* --- SCAN SUMMARY --- Infected files: 0 Time: 0.459 sec (0 m 0 s) root@backbencher:~#* ls -alh ~/C++/** */root/C++/Constructors:* total 28K drwxr-xr-x 2 root root 4.0K Apr 16 22:19 . drwxr-xr-x 10 root root 4.0K Apr 21 09:56 .. -rwxr-xr-x 1 root root 11K Apr 16 20:48 a.out -rw-r--r-- 1 root root 801 Apr 16 20:48 ex1.cc -rw-r--r-- 1 root root 801 Apr 16 21:00 ex2.cc */root/C++/CvsC++:* total 64K drwxr-xr-x 2 root root 4.0K Apr 16 09:20 . drwxr-xr-x 10 root root 4.0K Apr 21 09:56 .. -rwxr-xr-x 1 root root 6.8K Apr 16 09:19 a.out -rw-r--r-- 1 root root 137 Apr 16 08:55 ex1.c -rw-r--r-- 1 root root 150 Apr 16 08:57 ex1.cc -rw-r--r-- 1 root root 96 Apr 16 09:00 ex2.c -rw-r--r-- 1 root root 132 Apr 16 09:02 ex2.cc -rw-r--r-- 1 root root 74 Apr 16 09:06 ex3.c -rw-r--r-- 1 root root 116 Apr 16 09:08 ex3.cc -rw-r--r-- 1 root root 56 Apr 16 09:10 ex4.c -rw-r--r-- 1 root root 56 Apr 16 09:10 ex4.cc -rw-r--r-- 1 root root 120 Apr 16 09:12 ex5.c -rw-r--r-- 1 root root 120 Apr 16 09:12 ex5.cc -rw-r--r-- 1 root root 92 Apr 16 09:18 ex6.c -rw-r--r-- 1 root root 163 Apr 16 09:20 ex6.cc */root/C++/diffOput:* total 40K drwxr-xr-x 2 root root 4.0K Apr 16 11:28 . drwxr-xr-x 10 root root 4.0K Apr 21 09:56 .. -rwxr-xr-x 1 root root 6.6K Apr 16 11:28 a.out -rw-r--r-- 1 root root 74 Apr 16 11:20 ex1.c -rw-r--r-- 1 root root 74 Apr 16 11:20 ex1.cc -rw-r--r-- 1 root root 208 Apr 16 11:25 ex2.c -rw-r--r-- 1 root root 208 Apr 16 11:25 ex2.cc -rw-r--r-- 1 root root 73 Apr 16 11:28 ex3.c -rw-r--r-- 1 root root 73 Apr 16 11:27 ex3.cc */root/C++/FOL:* total 28K drwxr-xr-x 2 root root 4.0K Apr 16 13:50 . drwxr-xr-x 10 root root 4.0K Apr 21 09:56 .. -rwxr-xr-x 1 root root 9.7K Apr 16 13:50 a.out -rw-r--r-- 1 root root 91 Apr 16 13:48 ex1.cc -rw-r--r-- 1 root root 417 Apr 16 13:50 ex2.cc */root/C++/Inhertiance:* total 28K drwxr-xr-x 2 root root 4.0K Apr 21 10:08 . drwxr-xr-x 10 root root 4.0K Apr 21 09:56 .. -rwxr-xr-x 1 root root 8.4K Apr 21 10:08 a.out -rw-r--r-- 1 root root 404 Apr 21 09:59 ex1.cc -rw-r--r-- 1 root root 419 Apr 21 10:08 ex2.cc */root/C++/OOL:* total 32K drwxr-xr-x 2 root root 4.0K Apr 21 09:56 . drwxr-xr-x 10 root root 4.0K Apr 21 09:56 .. -rwxr-xr-x 1 root root 9.8K Apr 21 08:04 a.out -rw-r--r-- 1 root root 458 Apr 16 22:39 BinaryOOL.cc -rw-r--r-- 1 root root 591 Apr 21 09:34 IOool.cc -rw-r--r-- 1 root root 426 Apr 16 22:11 UnaryOOL.cc */root/C++/referencesInC++:* total 48K drwxr-xr-x 2 root root 4.0K Apr 16 12:14 . drwxr-xr-x 10 root root 4.0K Apr 21 09:56 .. -rwxr-xr-x 1 root root 7.5K Apr 16 12:14 a.out -rw-r--r-- 1 root root 177 Apr 16 11:56 ex1.cc -rw-r--r-- 1 root root 134 Apr 16 11:59 ex2.cc -rw-r--r-- 1 root root 300 Apr 16 12:05 ex3.cc -rw-r--r-- 1 root root 134 Apr 16 12:10 ex4.cc -rw-r--r-- 1 root root 133 Apr 16 12:14 ex5.cc -rw-r--r-- 1 root root 12K Apr 16 13:03 .ex5.cc.swp */root/C++/StructureVSClass*: total 32K drwxr-xr-x 2 root root 4.0K Apr 16 17:55 . drwxr-xr-x 10 root root 4.0K Apr 21 09:56 .. -rwxr-xr-x 1 root root 6.8K Apr 16 17:55 a.out -rw-r--r-- 1 root root 177 Apr 16 17:52 ex1.cc -rw-r--r-- 1 root root 174 Apr 16 17:53 ex2.cc -rw-r--r-- 1 root root 264 Apr 16 17:54 ex3.cc -rw-r--r-- 1 root root 258 Apr 16 17:55 ex4.cc root@backbencher:~# On 4 October 2016 at 21:05, Kris Deugau wrote: > crazy thinker wrote: > > Hi, > > > > I would you like to get each file status call back in *Clamdscan > output* > > while perfrom scan over a dirtectory using *clamdscan*. but i able to > get > > a file status call back *(OR | ERROR| FOUND)* in *Clamdscan output* > when > > i perfrom scan over a *single file.* > > After a bit of testing this looks to be the difference between: > > clamdscan /path/to/directory > > and > > clamdscan /path/to/directory/* > > Is there any reason you can't do the second? > > Unfortunately I don't see any command-line options that might allow the > first call to produce exactly the same output as the second. > > Generally the only files that are "interesting" in the results are the > ones that did get flagged - is there some specific reason you need the > "OK" results explicitly listed as well? > > -kgd > ___ > Help us build a comprehensive ClamAV guide: > https://github.com/vrtadmin/clamav-faq > > http://www.clamav.net/contact.html#ml > ___
Re: [clamav-users] How to get each file status when scan a ditrtectory using clamdscan
crazy thinker wrote: > Hi, > > I would you like to get each file status call back in *Clamdscan output* > while perfrom scan over a dirtectory using *clamdscan*. but i able to get > a file status call back *(OR | ERROR| FOUND)* in *Clamdscan output* when > i perfrom scan over a *single file.* After a bit of testing this looks to be the difference between: clamdscan /path/to/directory and clamdscan /path/to/directory/* Is there any reason you can't do the second? Unfortunately I don't see any command-line options that might allow the first call to produce exactly the same output as the second. Generally the only files that are "interesting" in the results are the ones that did get flagged - is there some specific reason you need the "OK" results explicitly listed as well? -kgd ___ Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] How to get each file status when scan a ditrtectory using clamdscan
Hi, I would you like to get each file status call back in *Clamdscan output* while perfrom scan over a dirtectory using *clamdscan*. but i able to get a file status call back *(OR | ERROR| FOUND)* in *Clamdscan output* when i perfrom scan over a *single file.* @Steve Basford Thanks for reply. but it won't work to get each file status call back in *Clamdscan Output. *when perform scan over a dirtectory(ies).i already tried that. By enabling *LogClean*, we can print the each file status in *Clamd.log *not in *Clamdscan output.* I think we need to slight code changes in ClamAV Code Base @CamAV Dev Team Please could anyone from ClamAV Dev team would help me on this *case -1* *Admin-11s-MacBook-Air:~ sagampa$ /usr/local/clamav/bin/clamdscan /Users/sagampa/Desktop/n1905.pdf * */Users/sagampa/Desktop/n1905.pdf: OK* *--- SCAN SUMMARY ---* *Infected files: 0* *Time: 3.892 sec (0 m 3 s)* *Admin-11s-MacBook-Air:~ sagampa$ * *case -2* *Admin-11s-MacBook-Air:~ sagampa$ ls -alh /Users/sagampa/Desktop/sample * *total 15224* *drwxr-xr-x 5 sagampa staff 170B Oct 4 18:34 .* *drwx--@ 34 sagampa staff 1.1K Oct 4 18:34 ..* *-rw-r--r-- 1 sagampa staff 5.5M Sep 28 18:53 lib.zip* *-rw-r--r--@ 1 sagampa staff67K Aug 30 14:01 libltldl.zip* *-rw-r--r--@ 1 sagampa staff 1.9M Jul 14 18:57 pcre2-10.21.tar.gz* *Admin-11s-MacBook-Air:~ sagampa$ * *Admin-11s-MacBook-Air:~ sagampa$ /usr/local/clamav/bin/clamdscan /Users/sagampa/Desktop/sample * */Users/sagampa/Desktop/sample: OK* *--- SCAN SUMMARY ---* *Infected files: 0* *Time: 5.581 sec (0 m 5 s)* *Admin-11s-MacBook-Air:~ sagampa$* On 4 October 2016 at 15:21, Steve Basford wrote: > > On Mon, October 3, 2016 6:05 pm, crazy thinker wrote: > > Hi, > > > > > > when i scanned a dirtectory using clamdscan, i could get only error and > > virus file infected files status in output.but i would like to see each > > file status(including "OK" status also ) when i perform scan over sinle > > dirtectory / multiple dirtectories > > > > > how does it can be achived? could anyone please help me in this... > > clamd.conf... > > # Log time with each message. > # Default: no > LogTime yes > > # Also log clean files. Useful in debugging but drastically increases the > # log size. > # Default: no > LogClean yes > > -- > Cheers, > > Steve > Twitter: @sanesecurity > > ___ > Help us build a comprehensive ClamAV guide: > https://github.com/vrtadmin/clamav-faq > > http://www.clamav.net/contact.html#ml > ___ Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] How to get each file status when scan a ditrtectory using clamdscan
On Mon, October 3, 2016 6:05 pm, crazy thinker wrote: > Hi, > > > when i scanned a dirtectory using clamdscan, i could get only error and > virus file infected files status in output.but i would like to see each > file status(including "OK" status also ) when i perform scan over sinle > dirtectory / multiple dirtectories > > how does it can be achived? could anyone please help me in this... clamd.conf... # Log time with each message. # Default: no LogTime yes # Also log clean files. Useful in debugging but drastically increases the # log size. # Default: no LogClean yes -- Cheers, Steve Twitter: @sanesecurity ___ Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
Re: [clamav-users] How to get each file status when scan a ditrtectory using clamdscan
See man clamscan. -Al- On Mon, Oct 03, 2016 at 10:05 AM, crazy thinker wrote: > > Hi, > > when i scanned a dirtectory using clamdscan, i could get only error and > virus file infected files status in output.but i would like to see each > file status(including "OK" status also ) when i perform scan over sinle > dirtectory / multiple dirtectories > > how does it can be achived? could anyone please help me in this... > > > Thanks, > crazy thinker smime.p7s Description: S/MIME cryptographic signature ___ Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml