Stuart Henderson wrote:
On 2006/08/07 16:15, Gabriel George POPA wrote:
1) When the OS generates too much messages, old messages are lost
(oldest lines present in `dmesg` are lost).
What can I do to see ALL messages ever recorded for dmesg printing? More
precisely, take a look at my `dmesg`:
/var/log/messages if they're not rotated too far away
(change newsyslog.conf if you want to keep them for longer).
PLEASE, NO. Bad advice.
Either use the dmesg command or the /var/run/dmesg.boot DO NOT pull
your dmesg out of messages if you are seriously expecting help from
others. If for some reason messages is your only option, carefully edit
out the date and time stuff before posting. If you just paste in your
messages output raw, I'm unlikely to spend much time looking at your
query. Some people may...but not me.
Which would you rather dig through looking for the one little gem that
explains a problem?
This:
Jul 24 09:03:27 njh-9 /bsd: OpenBSD 3.9-current (GENERIC) #922: Wed Jun
28 23:06
:50 MDT 2006
Jul 24 09:03:27 njh-9 /bsd:
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/
compile/GENERIC
Jul 24 09:03:27 njh-9 /bsd: cpu0: Intel(R) Pentium(R) 4 CPU 1300MHz
("GenuineInt
el" 686-class) 1.30 GHz
Jul 24 09:03:27 njh-9 /bsd: cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PG
E,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM
Jul 24 09:03:27 njh-9 /bsd: real mem = 133296128 (130172K)
Jul 24 09:03:27 njh-9 /bsd: avail mem = 114892800 (112200K)
Jul 24 09:03:27 njh-9 /bsd: using 1652 buffers containing 6766592 bytes
(6608K)
of memory
Jul 24 09:03:27 njh-9 /bsd: mainbus0 (root)
Jul 24 09:03:27 njh-9 /bsd: bios0 at mainbus0: AT/286+(00) BIOS, date
11/30/00,
BIOS32 rev. 0 @ 0xffe90, SMBIOS rev. 2.3 @ 0xf0450 (97 entries)
Jul 24 09:03:27 njh-9 /bsd: bios0: Dell Computer Corporation Dimension 8100
...
or this:
OpenBSD 3.9-current (GENERIC) #922: Wed Jun 28 23:06:50 MDT 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 CPU 1300MHz ("GenuineIntel" 686-class) 1.30 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,
DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM
real mem = 133296128 (130172K)
avail mem = 114892800 (112200K)
using 1652 buffers containing 6766592 bytes (6608K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 11/30/00, BIOS32 rev. 0 @
0xffe90, SMB
IOS rev. 2.3 @ 0xf0450 (97 entries)
bios0: Dell Computer Corporation Dimension 8100
,,,
All the date and time crap doesn't add anything for us, it just makes it
completely unreadable, at least to me.
If you want our help on something, MAKE IT EASY FOR US. Note how ugly
that all looks, I was (intentionally) completely careless with the line
wraps, and it STILL looks a lot better than some of the crap you guys
post to the lists.
But watch this: If I use my mail client smartly:
OpenBSD 3.9-current (GENERIC) #922: Wed Jun 28 23:06:50 MDT 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 CPU 1300MHz ("GenuineIntel" 686-class) 1.30 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM
real mem = 133296128 (130172K)
avail mem = 114892800 (112200K)
using 1652 buffers containing 6766592 bytes (6608K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 11/30/00, BIOS32 rev. 0 @ 0xffe90, SMB
IOS rev. 2.3 @ 0xf0450 (97 entries)
bios0: Dell Computer Corporation Dimension 8100
...
wow...so much more readable (assuming I didn't really snip my dmesg, of
course). Yes, it took at least ten seconds longer to do that than it
did to stupidly copy/paste, but I can assure you, I'd spend a lot more
time reading it without stupid wrapping.
Nick.