1834470 Members
2992 Online
110067 Solutions
New Discussion

Re: dmesg

 
khilari
Regular Advisor

dmesg

Hi people, i saw the output of dmesg. So what exactly is it doing and how sould it determine me any problems on the system.
5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: dmesg

You should start by reviewing the man page. Dmesg collects system diagnostic messages in a circular buffer - that is, once it fills, it begins writing over itself and earlier messages are lost. On a healthy system, all you will see from dmesg are start-up diagnostics from the last boot. On a system that is having problems, you will see error messages logged that help identify the problem.


Pete

Pete
Chauhan Amit
Respected Contributor

Re: dmesg

dmesg collects system diagnostic messages to form error log. The system error message buffer is of small, finite size. dmesg is run only every few minutes, so there is no guarantee that all error messages will be logged. dmesg looks in a system buffer for recently printed diagnostic messages and prints them on the standard output. The messages are those printed by the system when unusual events occur (such as when system tables overflow or the system crashes).

In case of any issues with the system , first run #dmesg and check whether any errors are being logged: ex
a) SCSI lbolt errors
b) file system full
c) system tables overflow

-Amit
If you are not a part of solution , then you are a part of problem
Muthukumar_5
Honored Contributor

Re: dmesg

Based on the error message and message type you can necessary steps into action.

Please post messages or errors if you are not able to *fix* it.

--
Muthu
Easy to suggest when don't know about the problem!
Sivakumar TS
Honored Contributor

Re: dmesg


Hi,

dmesg looks in a system buffer for recently printed diagnostic messages and prints them on the standard output. The messages are those printed by the system when unusual events occur (such as when system tables overflow or the system crashes). If the - argument is specified, dmesg computes (incrementally) the new messages since the last time it was run and places these on the standard output.

The man page has the right info.

Regards,

Siva.
Nothing is Impossible !
Arunvijai_4
Honored Contributor

Re: dmesg

Hi Khilari,

"dmesg" collect system diagnostic messages to form error log.

Based on what kind of error you see on the log, you can debug from there.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"