Greetings,
I feel like I've been making progress teaching myself a lot about the log files, and the unix tools. I've created a batch file that will hopefully count the total number of viruses, the total number of vulnerabilities, a few spam tests, and finally the total number of messages. I'm passing this to the list in hopes that it may help someone else, and also in hopes that someone will say, "Hey, you can't do it like that!" or "Hey, here's a better way to do that!" So if I'm missing something, please let me know.


Thanks,
Russ

REM Virus Section

grep INFECTED s:\vir10*.log | grep -cv Vulnerability

grep Vulnerability s:\vir10*.log | cut -d " " -f 3 | usort | uniq | grep -c Q

REM Spam Section

egrep -i " Msg failed WEIGHT20 | Msg failed WEIGHT30 | Msg failed SNIFFER " s:\dec10*.log

grep -ic " Msg failed WEIGHT20 " c:\batch\temp

grep -ic " Msg failed WEIGHT30 " c:\batch\temp

grep -ic " Msg failed SNIFFER " c:\batch\temp

REM Total Message Section

grep -i SMTPD s:\sys10*.log | grep -ci "rcpt to:"

---
[This E-mail scanned for viruses by Declude Virus]

---
[This E-mail was scanned for viruses by Declude Virus (http://www.declude.com)]

---
This E-mail came from the Declude.JunkMail mailing list.  To
unsubscribe, just send an E-mail to [EMAIL PROTECTED], and
type "unsubscribe Declude.JunkMail".  The archives can be found
at http://www.mail-archive.com.

Reply via email to