* What is it with binary.errlog and uerf?
@ 1999-07-03 4:00 Peter da Silva
1999-07-05 4:00 ` Paul Szabo
1999-07-05 4:00 ` Peter Mayne
0 siblings, 2 replies; 14+ messages in thread
From: Peter da Silva @ 1999-07-03 4:00 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 681 bytes --]
I like Digital UNIX (or whatever it's called this week) in general, but I
must say that whoever came up with the program "uerf" must have been high
on something pretty damn exotic when he came up with that output format.
I mean, it takes true skill to come up with an 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 that
doesn't suck toxic waste through dryer hose?
--
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: What is it with binary.errlog and uerf?
1999-07-03 4:00 What is it with binary.errlog and uerf? Peter da Silva
@ 1999-07-05 4:00 ` Paul Szabo
1999-07-05 4:00 ` Peter Mayne
1 sibling, 0 replies; 14+ messages in thread
From: Paul Szabo @ 1999-07-05 4:00 UTC (permalink / raw)
To: Peter da Silva
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: What is it with binary.errlog and uerf?
1999-07-03 4:00 What is it with binary.errlog and uerf? Peter da Silva
1999-07-05 4:00 ` Paul Szabo
@ 1999-07-05 4:00 ` Peter Mayne
1999-07-05 4:00 ` Peter da Silva
1999-07-06 4:00 ` Stuart R. Fuller
1 sibling, 2 replies; 14+ messages in thread
From: Peter Mayne @ 1999-07-05 4:00 UTC (permalink / raw)
uerf is obsolete. Depending on your platform, you should be using DECevent
(the dia command) or, if you have a DS10/DS10, Compaq Analyze.
PJDM
----
Peter Mayne, Compaq Computer Australia, Canberra, ACT
These are my opinions, and have nothing to do with Compaq.
"The wise man knows that he knows nothing." - Bill. "That's us, dude!" - Ted.
Peter da Silva <peter@baileynm.com> wrote in message
news:7ljnt7$hcm@web.nmti.com...
> I like Digital UNIX (or whatever it's called this week) in general, but I
> must say that whoever came up with the program "uerf" must have been high
> on something pretty damn exotic when he came up with that output format.
>
> I mean, it takes true skill to come up with an 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 that
> doesn't suck toxic waste through dryer hose?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: What is it with binary.errlog and uerf?
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 ` Stuart R. Fuller
1 sibling, 1 reply; 14+ messages in thread
From: Peter da Silva @ 1999-07-05 4:00 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 694 bytes --]
In article <7loq60$iuv@usenet.pa.dec.com>,
Peter Mayne <Peter.Mayne@compaq.com> wrote:
>uerf is obsolete. Depending on your platform, you should be using DECevent
>(the dia command) or, if you have a DS10/DS10, Compaq Analyze.
% uname -a
OSF1 subsonic.eng.baileynm.com V4.0 878 alpha
% man dia
No reference page found for dia.
% dia
dia: Command not found.
We have systems here that have to remain at 3.2G until all our customers have
upgraded to 4.0. Can I run "dia" on these systems, assuming I can find 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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: What is it with binary.errlog and uerf?
1999-07-05 4:00 ` Peter da Silva
@ 1999-07-05 4:00 ` Monty Brandenberg
1999-07-06 4:00 ` Peter da Silva
0 siblings, 1 reply; 14+ messages in thread
From: Monty Brandenberg @ 1999-07-05 4:00 UTC (permalink / raw)
Peter da Silva wrote:
>
> We have systems here that have to remain at 3.2G until all our customers have
> upgraded to 4.0. Can I run "dia" on these systems, assuming I can find it?
>
Yes:
http://www1.service.digital.com/svctools/decevent/
--
Monty Brandenberg, Software Consultant MCB,
Inc.
mcbinc@world.std.com P.O. Box
426188
mcbinc@ne.mediaone.net Cambridge, MA
02142-0021
617.864.6907
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: What is it with binary.errlog and uerf?
1999-07-05 4:00 ` Monty Brandenberg
@ 1999-07-06 4:00 ` Peter da Silva
1999-07-06 4:00 ` Peter Mayne
0 siblings, 1 reply; 14+ messages in thread
From: Peter da Silva @ 1999-07-06 4:00 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1439 bytes --]
In article <37805B8D.C95B3403@ne.mediaone.net>,
Monty Brandenberg <mcbinc@ne.mediaone.net> wrote:
>Peter da Silva wrote:
>> We have systems here that have to remain at 3.2G until all our customers have
>> upgraded to 4.0. Can I run "dia" on these systems, assuming I can find it?
>Yes:
>http://www1.service.digital.com/svctools/decevent/
|What is the DECevent license used for and why is it issued on a yearly
|basis?
|
| The Product Authorization Key (PAK) license is required in order to
| utilize the DECevent analysis and notification capabilities. The
| analysis and notification capabilities enable Digital to more
| efficiently provide service to our customers. The license is issued on
| annual basis to customers with equipment which has hardware warranty, a
| hardware service contract or service obligation agreement, to ensure
| that customers are provided with a premium service capability during
| the term of the agreements.
In other words while we do have the necessary contracts and will be
able to get this package, at least for now, it is NOT a general replacement
for uerf, which brings me back to the original question... is there a tool
for reading binary.errlog that doesn't suck swamp muck through a dirty
garden hose?
--
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: What is it with binary.errlog and uerf?
1999-07-06 4:00 ` Peter da Silva
@ 1999-07-06 4:00 ` Peter Mayne
1999-07-26 4:00 ` Peter da Silva
0 siblings, 1 reply; 14+ messages in thread
From: Peter Mayne @ 1999-07-06 4:00 UTC (permalink / raw)
I don't understand how you reached the conclusion "it is NOT a general
replacement for uerf" from the stated paragraph.
You can install DECevent and use it for reading the error log without any PAKs
at all, just like you can with uerf. If you want to use the extra
functionality of real-time error analysis with automatic notification, you can
get a PAK to enable it.
So, without a PAK, dia does what uerf does. Why do you think it's NOT a
general replacement for uerf?
PJDM
----
Peter Mayne, Compaq Computer Australia, Canberra, ACT
These are my opinions, and have nothing to do with Compaq.
"The wise man knows that he knows nothing." - Bill. "That's us, dude!" - Ted.
Peter da Silva <peter@baileynm.com> wrote in message
news:7lrpk0$20b@web.nmti.com...
>
> |What is the DECevent license used for and why is it issued on a yearly
> |basis?
> |
> | The Product Authorization Key (PAK) license is required in order to
> | utilize the DECevent analysis and notification capabilities. The
> | analysis and notification capabilities enable Digital to more
> | efficiently provide service to our customers. The license is issued on
> | annual basis to customers with equipment which has hardware warranty, a
> | hardware service contract or service obligation agreement, to ensure
> | that customers are provided with a premium service capability during
> | the term of the agreements.
>
> In other words while we do have the necessary contracts and will be
> able to get this package, at least for now, it is NOT a general replacement
> for uerf, which brings me back to the original question... is there a tool
> for reading binary.errlog that doesn't suck swamp muck through a dirty
> garden hose?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: What is it with binary.errlog and uerf?
1999-07-05 4:00 ` Peter Mayne
1999-07-05 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 ` Peter Mayne
1 sibling, 2 replies; 14+ messages in thread
From: Stuart R. Fuller @ 1999-07-06 4:00 UTC (permalink / raw)
Peter Mayne (Peter.Mayne@compaq.com) wrote:
: uerf is obsolete. Depending on your platform, you should be using DECevent
: (the dia command) or, if you have a DS10/DS10, Compaq Analyze.
Yes, uerf is obsolete, and one should be using DECevent. However, it doesn't
answer the original poster's question, since DECevent uses the same output
format as uerf does. I haven't seen Compaq Analyze, though.
Stu
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: What is it with binary.errlog and uerf?
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
1 sibling, 1 reply; 14+ messages in thread
From: Peter da Silva @ 1999-07-06 4:00 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 610 bytes --]
In article <nb0sl7.viu.ln@localhost>,
Stuart R. Fuller <stufuller@usa.net> wrote:
>Yes, uerf is obsolete, and one should be using DECevent. However, it doesn't
>answer the original poster's question, since DECevent uses the same output
>format as uerf does.
*boggle*
UERF/DIA are straight ports from some VMS utility, right? If I was designing
an output format to be hard to deal with, I couldn't do a better job if I
tried.
--
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: What is it with binary.errlog and uerf?
1999-07-06 4:00 ` Stuart R. Fuller
1999-07-06 4:00 ` Peter da Silva
@ 1999-07-07 4:00 ` Peter Mayne
1999-07-07 4:00 ` Peter da Silva
1 sibling, 1 reply; 14+ messages in thread
From: Peter Mayne @ 1999-07-07 4:00 UTC (permalink / raw)
Stuart R. Fuller <stu@c49395-a.wodhvn1.mi.home.com> wrote in message
news:nb0sl7.viu.ln@localhost...
> Peter Mayne (Peter.Mayne@compaq.com) wrote:
> : uerf is obsolete. Depending on your platform, you should be using DECevent
> : (the dia command) or, if you have a DS10/DS10, Compaq Analyze.
>
> Yes, uerf is obsolete, and one should be using DECevent. However, it
doesn't
> answer the original poster's question, since DECevent uses the same output
> format as uerf does. I haven't seen Compaq Analyze, though.
>
> Stu
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).
dia also shows more information in a more readable format than uerf. I've got
two windows side-by-side with uerf in one and dia in the other, and I'd rather
read the dia output. (Personal preference, of course.)
Further, I believe that uerf is not supported on some more recent platforms
where dia is supported.
The original post said
> I mean, it takes true skill to come up with an output format that is
> simultaneously so hard for a human to read and so hard to grovel
> through with tools like grep.
Well, dia is easier for a human to read and easier to use grep on.
PJDM
----
Peter Mayne, Compaq Computer Australia, Canberra, ACT
These are my opinions, and have nothing to do with Compaq.
"The wise man knows that he knows nothing." - Bill. "That's us, dude!" - Ted.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: What is it with binary.errlog and uerf?
1999-07-06 4:00 ` Peter da Silva
@ 1999-07-07 4:00 ` Fred Zwarts
0 siblings, 0 replies; 14+ messages in thread
From: Fred Zwarts @ 1999-07-07 4:00 UTC (permalink / raw)
Peter da Silva <peter@baileynm.com> wrote in message news:7lt7f6$l5j@web.nmti.com...
> In article <nb0sl7.viu.ln@localhost>,
> Stuart R. Fuller <stufuller@usa.net> wrote:
> >Yes, uerf is obsolete, and one should be using DECevent. However, it doesn't
> >answer the original poster's question, since DECevent uses the same output
> >format as uerf does.
>
> *boggle*
>
> UERF/DIA are straight ports from some VMS utility, right?
Maybe UERF is. But when I try to use DIA on VMS I have the feeling
that it is a port from some Unix utility. It does not know about clusters.
I need to install it 25 times in our 25-node cluster. True VMS utilities need
only one installation per system disk. Just as most Unix utilities DIA does
not know how to handle a shared database in a cluster environment. For each
node in the cluster it requires a separate database (25 databases in our case),
although these database are almost identical. True VMS utilities, such as VAXSIM,
the predecessor of DIA, know how to handle one shared database for a VMS cluster.
> If I was designing
> an output format to be hard to deal with, I couldn't do a better job if I
> tried.
>
> --
> 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
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: What is it with binary.errlog and uerf?
1999-07-07 4:00 ` Peter Mayne
@ 1999-07-07 4:00 ` Peter da Silva
1999-07-14 4:00 ` Peter Mayne
0 siblings, 1 reply; 14+ messages in thread
From: Peter da Silva @ 1999-07-07 4:00 UTC (permalink / raw)
[-- 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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: What is it with binary.errlog and uerf?
1999-07-07 4:00 ` Peter da Silva
@ 1999-07-14 4:00 ` Peter Mayne
0 siblings, 0 replies; 14+ messages in thread
From: Peter Mayne @ 1999-07-14 4:00 UTC (permalink / raw)
Peter da Silva <peter@baileynm.com> wrote in message
news:7lvojs$re4@web.nmti.com...
> Speaking of cutting, could you post some sample dia output?
# dia -o brief
******************************** ENTRY 1 ********************************
Logging OS 2. Digital UNIX
System Architecture 2. Alpha
Event sequence number 18.
Timestamp of occurrence 07-MAY-1999 21:24:06
Host name litlun
System type register x00000004 DEC 3000
Number of CPUs (mpnum) x00000001
CPU logging event (mperr) x00000000
Event validity 1. O/S claims event is valid
Event severity 3. High Priority
CPU Minor class 4. 620 System Correctable Error
- ALPHA CHIP REGISTERS -
Hardware Int Request Reg x0000000000000000
NO Hrdw Int Req With Companion Enable Set
NO Softw Int Req With Companion Enable
Set
NO AST Int Req With Companion Enable Set
Memory Management CSR x0000000000000000
MMCSR Valid Only on Mem Mgt Err, DTB
Miss,
D-Stream Fault, Dcache Parity Error.
Last Faulting Instruction RA Field: R0
Last Faulting Instruction Opcode Follows:
x00 - PALcode (CALL_PAL) Opcodes
(Data) Cache Status Reg x0000000000000000
This is EV4 Data Cache Status
Reg(DC_STAT)
EV4 Chip is Early Version of 21064
Last Load or Store Missed Dcache
Bus Interface Status Reg x0000000000000000
Bcache Tag Reg x0000000000000000
Last Bcache Access Resulted in a Miss
Parity Bit for Bcache Tag Status Bits Clr
Bcache Tag Dirty Bit Clear
Bcache Tag Shared Bit Clear
Bcache Tag Valid Bit Clear
Bcache Tag Addrress Parity Bit Clear
Tag Being Probed: x0000000000000000
******************************** ENTRY 2 ********************************
Logging OS 2. Digital UNIX
System Architecture 2. Alpha
Event sequence number 17.
Timestamp of occurrence 22-APR-1999 01:30:23
Host name litlun
System type register x00000004 DEC 3000
Number of CPUs (mpnum) x00000001
CPU logging event (mperr) x00000000
Event validity 1. O/S claims event is valid
Event severity 5. Low Priority
Bus Number 0.
Unit Number x0000 Target = 0.
LUN = 0.
Class x00 Disk
Subsystem x00 Disk
Device Name DEC RZ28B (C) DEC0003
SCSI Status x00 Good Condition
PJDM
----
Peter Mayne, Compaq Computer Australia, Canberra, ACT
These are my opinions, and have nothing to do with Compaq.
"The wise man knows that he knows nothing." - Bill. "That's us, dude!" - Ted.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: What is it with binary.errlog and uerf?
1999-07-06 4:00 ` Peter Mayne
@ 1999-07-26 4:00 ` Peter da Silva
0 siblings, 0 replies; 14+ messages in thread
From: Peter da Silva @ 1999-07-26 4:00 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 526 bytes --]
In article <7lrqi5$jki@usenet.pa.dec.com>,
Peter Mayne <Peter.Mayne@compaq.com> wrote:
>You can install DECevent and use it for reading the error log without any PAKs
>at all, just like you can with uerf.
Ah, well, that's good to know. I got the impression that it required a PAK
to use it at all.
--
In hoc signo hack, Peter da Silva <peter@baileynm.com>
`-_-' Ar rug t� barr�g ar do mhact�re inniu?
'U` << <KH> you did technical support for Hell ?
<susan> Didn't we all, in our youth? >:) >>
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~1999-07-26 4:00 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-07-03 4:00 What is it with binary.errlog and uerf? Peter da Silva
1999-07-05 4:00 ` Paul Szabo
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox