From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,af4c7b7b2f016316 X-Google-Attributes: gidfee84,public From: peter@baileynm.com (Peter da Silva) Subject: Re: What is it with binary.errlog and uerf? Date: 1999/07/07 Message-ID: <7lvojs$re4@web.nmti.com>#1/1 X-Deja-AN: 498408046 References: <7ljnt7$hcm@web.nmti.com> <7loq60$iuv@usenet.pa.dec.com> <7lu3qc$bv8@usenet.pa.dec.com> Organization: Bailey Network Management Newsgroups: comp.unix.osf.osf1 In article <7lu3qc$bv8@usenet.pa.dec.com>, Peter Mayne 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 `-_-' Ar rug t� barr�g ar do mhact�re inniu? 'U` "Be vewy vewy quiet...I'm hunting Jedi." -- Darth Fudd