From: Paul Szabo <no-spam-please@usyd.edu.au>
To: Peter da Silva <peter@baileynm.com>
Subject: Re: What is it with binary.errlog and uerf?
Date: 1999/07/05 [thread overview]
Message-ID: <377FE944.167E@usyd.edu.au> (raw)
In-Reply-To: 7ljnt7$hcm@web.nmti.com
Peter da Silva wrote:
> ... [uerf] output format that is simultaneously so hard for a human to
> read and so hard to grovel through with tools like grep.
> Does someone out there have a tool for browsing binary.errlog ...
Yes: try perl. I often use something like:
/usr/sbin/uerf -c err -o full | uerf.sanitize
where uerf.sanitize is the following perl script:
#!/usr/local/bin/perl -w
# Sanitize 'uerf -o full' output:
# remove disk spin-up events (when 'Disk spin down' is set with dxpower)
sub mypr {
return if $X eq '';
return if $X =~ m/ CAM SCSI \n.* cdisk_rec_status \n.*\n *Recovery progress event, this is NOT \n *_an error \n/s;
print $X;
}
$X = '';
while (<>) {
&mypr, $X='' if /^\*\*\*/;
$X .= $_;
}
&mypr;
--
[ The email address is munged in the headers and in the lines below, in an ]
[ attempt to avoid junk (spam) mail. Sorry about the inconvenience caused. ]
--
Paul Szabo - System Manager // School of Mathematics and Statistics
psz at maths . usyd . edu . au // University of Sydney, NSW 2006, Australia
prev parent reply other threads:[~1999-07-05 4:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-07-03 4:00 What is it with binary.errlog and uerf? Peter da Silva
1999-07-05 4:00 ` Peter Mayne
1999-07-05 4:00 ` Peter da Silva
1999-07-05 4:00 ` Monty Brandenberg
1999-07-06 4:00 ` Peter da Silva
1999-07-06 4:00 ` Peter Mayne
1999-07-26 4:00 ` Peter da Silva
1999-07-06 4:00 ` Stuart R. Fuller
1999-07-06 4:00 ` Peter da Silva
1999-07-07 4:00 ` Fred Zwarts
1999-07-07 4:00 ` Peter Mayne
1999-07-07 4:00 ` Peter da Silva
1999-07-14 4:00 ` Peter Mayne
1999-07-05 4:00 ` Paul Szabo [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox