🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sequent
Article #104

/usr/adm/messages overflows

#104
From: Amos Shapir
Date: Tue, 05 Sep 1989 15:11
26 lines
1701 bytes
In a normal BSD kernel, repeated kernel messages (such as 'disk out of
space') are not printed verbatim; instead, just a count of repeated
identical messages is printed for each set.

In dynix, however, kernel messages contain the CPU number; since a
repeated error condition is usually encountered by different processes
running on different CPU's, this causes messages not to be identical, so
each one is printed separately and also stored in /usr/adm/messages.

If you hate to wade through hundreds of identical messages, you can
remove redundant messages by piping the output of /etc/dmesg through
'uniq' - in /usr/lib/crontab, replace the line that runs it by:

0,10,20,30,40,50 * * * * /etc/dmesg - | uniq -c +2  >>/usr/adm/messages

This will have the effect of ignoring the CPU number, and preceding each
line by the number of times it was repeated.  If you really have to see
the CPU numbers, /etc/dmesg can still print the original messages as
stored in the kernel's buffer, and of course the printing on the console
is still unchanged.

-- 
	Amos Shapir		amos@taux01.nsc.com or amos@nsc.nsc.com
National Semiconductor (Israel) P.O.B. 3007, Herzlia 46104, Israel
Tel. +972 52 522261  TWX: 33691, fax: +972-52-558322
34 48 E / 32 10 N			(My other cpu is a NS32532)
Technical Details
Message-ID: <2521@taux01.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!usc!ucsd!ucbvax!hplabs!nsc!taux01!amos

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!usc!ucsd!ucbvax!hplabs!nsc!taux01!amos
From: amos@taux01.UUCP (Amos Shapir)
Newsgroups: comp.sys.sequent
Subject: /usr/adm/messages overflows
Message-ID: <2521@taux01.UUCP>
Date: 5 Sep 89 15:11:26 GMT
Organization: National Semiconductor (IC) Ltd, Israel Home of the 32532
Lines: 26
Hdate: 5 Elul 5749