Re: [Networker] Random errors.
2006-10-03 07:56:29
You may also want to use the following perl script to analyze
/nsr/logs/daemon.log
#!/usr/bin/perl
while(<>)
{
if (/loading volume (.*) into (.*)/)
{
$vol = $1;
$dev = $2;
$volx{$dev} = $vol;
# print "$vol $dev\n";
}
if (/media warning: (.*) reading.*O error/)
{
$badev = $1;
print "ERROR $badev $volx{$badev}\n";
}
}
Further processing the output of the script like that, may spot some
order in what may seems random:
# /usr/local/TAUSRC/Local/logwatch/logwatchng.pl < /nsr/logs/daemon.log |
awk '{print $2}' | sort | uniq -c| sort -n
24 /dev/rmt/1stcbn
26 /dev/rmt/2stcbn
36 /dev/rmt/0stcbn
# /usr/local/TAUSRC/Local/logwatch/logwatchng.pl < /nsr/logs/daemon.log |
awk '{print $3}' | sort | uniq -c | sort -n
12 000002
74
-- Yaron.
To sign off this list, send email to listserv AT listserv.temple DOT edu and
type "signoff networker" in the
body of the email. Please write to networker-request AT listserv.temple DOT edu
if you have any problems
wit this list. You can access the archives at
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- Re: [Networker] Random errors.,
Yaron Zabary <=
|
|
|