Categorization: 
Unclassified 

Thank you,

It works with suggested command. Thank you again

Gerry

-----Original Message-----
From: clamav-users <[email protected]> On Behalf Of G.W. 
Haywood via clamav-users
Sent: September 8, 2020 2:16 PM
To: Leveille, Gerald via clamav-users <[email protected]>
Cc: G.W. Haywood <[email protected]>
Subject: Re: [clamav-users] clamscan - can the hostname be added to the 
generated scan summary report

***ATTENTION***

This email originated from outside of the Government of Canada. Do not click 
links or open attachments unless you recognize the sender and believe the 
content is safe. For more information regarding reporting suspicious emails, 
please visit the KnowHow webpage: Suspicious emails - how to 
report<http://druid/KnowHow/sec-suseml-e.asp>

Ce courriel provient de l'extérieur du Gouvernement du Canada. Ne cliquez pas 
sur les liens et n’ouvrez pas les pièces jointes, à moins de connaître 
l'expéditeur et croire que le contenu est sécuritaire. Pour de plus amples 
renseignements sur la façon de signaler les courriels suspects, veuillez 
consulter la page Web SavoirFaire: Courriels suspects – Comment 
signaler<http://druid/savoirfaire/sec-suseml-f.asp>



Hi there,

On Tue, 8 Sep 2020, Leveille, Gerald via clamav-users wrote:

> I am a fairly new with ClamAV.  When I run a scan (ex. clamscan 
> --infected --recursive /home) on a Linux Server, a Scan Summary report 
> is generated, is it possible to add/generate the Host name in the Scan 
> Summary so that when looking at the summary I can see the Host name?

This isn't strictly ClamAV stuff but if you're using the command line on a 
Linux box to run a scan it's very easy to do what you want.  The 'hostname' 
command prints a line of text showing the hostname, so if you give a compound 
command like

$ hostname ; clamscan .... /home

then the hostname will appear as the first line of the output.

You can even redirect the output(s) of the command(s) to a file, to save the 
result for posterity.  Something like

$ hostname > logfile ; clamscan .... /home >>logfile

The >> is needed in the second part of the command so that the output is 
appended to the file instead of overwriting it.

--

73,
Ged.

_______________________________________________

clamav-users mailing list
[email protected]
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

_______________________________________________

clamav-users mailing list
[email protected]
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

Reply via email to