From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,af4c7b7b2f016316 X-Google-Attributes: gidfee84,public From: Paul Szabo Subject: Re: What is it with binary.errlog and uerf? Date: 1999/07/05 Message-ID: <377FE944.167E@usyd.edu.au>#1/1 X-Deja-AN: 497186229 Content-Transfer-Encoding: 7bit References: <7ljnt7$hcm@web.nmti.com> To: Peter da Silva Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.usyd.edu.au X-Trace: metro.ucc.usyd.edu.au 931129656 20369 129.78.68.1 (4 Jul 1999 23:07:36 GMT) Organization: School of Mathematics and Statistics, University of Sydney Mime-Version: 1.0 NNTP-Posting-Date: 4 Jul 1999 23:07:36 GMT Newsgroups: comp.unix.osf.osf1 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