From: peter@baileynm.com (Peter da Silva)
Subject: Re: What is it with binary.errlog and uerf?
Date: 1999/07/07 [thread overview]
Message-ID: <7lvojs$re4@web.nmti.com> (raw)
In-Reply-To: 7lu3qc$bv8@usenet.pa.dec.com
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2319 bytes --]
In article <7lu3qc$bv8@usenet.pa.dec.com>,
Peter Mayne <Peter.Mayne@compaq.com> wrote:
>No it doesn't. uerf stacks data up on the right hand side, with lots of line
>wrapping, while dia starts things on the left hand side so they stay on one
>line, so it's easier to grep for data (since UNIX lacks $SEARCH/WINDOW
>functionality).
|% man cut
|User Commands cut(1)
|
|NAME
| cut - cut out selected fields of each line of a file
|
[...]
Speaking of cutting, could you post some sample dia output?
Here's the problem I have with uerf output:
|********************************* ENTRY 1. ********************************
|
|----- EVENT INFORMATION -----
|
|EVENT CLASS ERROR EVENT
|OS EVENT TYPE 199. CAM SCSI
|SEQUENCE NUMBER 64214.
|OPERATING SYSTEM DEC OSF/1
|OCCURRED/LOGGED ON Tue Jan 12 18:40:07 1999
|OCCURRED ON SYSTEM grendel
|SYSTEM ID x0007001B
|SYSTYPE x00000000
|
|----- UNIT INFORMATION -----
|
|CLASS x0022 DEC SIM
|SUBSYSTEM x0000 DISK
|BUS # x0003
| x00C8 LUN x0
| TARGET x1
|
|********************************* ENTRY 2. ********************************
Regardless of what side things are lined up, grepping this will give you
data that's just too hard to correlate to events. I am working on a Tcl
script that parses this and turns it into a stream that looks like:
event.section-n.tag: text
|% uerf | ua 'CLASS'
|1.EVENT INFORMATION-0.EVENT CLASS: ERROR EVENT
|1.UNIT INFORMATION-0.CLASS: x0022 DEC SIM
|2.EVENT INFORMATION-0.EVENT CLASS: ERROR EVENT
|2.UNIT INFORMATION-0.CLASS: x0000 DISK
THIS is greppable. I don't understand why this stuff needs to be stuck in
binary files in the first place, but a tool like my 'ua' is something that
really ought to be a standard part of the toolchain.
When I've got it tidied up I'll post it.
--
In hoc signo hack, Peter da Silva <peter@baileynm.com>
`-_-' Ar rug t� barr�g ar do mhact�re inniu?
'U` "Be vewy vewy quiet...I'm hunting Jedi." -- Darth Fudd
next prev parent reply other threads:[~1999-07-07 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 [this message]
1999-07-14 4:00 ` Peter Mayne
1999-07-05 4:00 ` Paul Szabo
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