Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dmesg(1m) [hpux man page]

dmesg(1M)																 dmesg(1M)

NAME
dmesg - collect system diagnostic messages to form error log SYNOPSIS
DESCRIPTION
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, com- putes (incrementally) the new messages since the last time it was run and places these on the standard output. This is typically used with (see cron(1)) to produce the error log by running the command: every 10 minutes. The arguments and allow substitution for the defaults and where should be a file containing the image of the kernel virtual memory saved by the savecrash(1M) command and should be the corresponding kernel. If the system is booted with a kernel other than /stand/vmunix say /stand/vmunix_new, must be passed this name, the command must be, WARNINGS
The system error message buffer is of small, finite size. is run only every few minutes, so there is no guarantee that all error messages will be logged. AUTHOR
was developed by the University of California, Berkeley. FILES
error log (conventional location) memory scratch file for option special file containing the image of kernel virtual memory the kernel, system name list SEE ALSO
savecrash(1M). dmesg(1M)

Check Out this Related Man Page

DMESG(8)						    BSD System Manager's Manual 						  DMESG(8)

NAME
dmesg -- display the system message buffer SYNOPSIS
dmesg [-ac] [-M core [-N system]] DESCRIPTION
The dmesg utility displays the contents of the system message buffer. If the -M option is not specified, the buffer is read from the cur- rently running kernel via the sysctl(3) interface. Otherwise, the buffer is read from the specified core file, using the name list from the specified kernel image (or from the default image). The options are as follows: -a Show all data in the message buffer. This includes any syslog records and /dev/console output. -c Clear the kernel buffer after printing. -M Extract values associated with the name list from the specified core. -N If -M is also specified, extract the name list from the specified system instead of the default, which is the kernel image the system has booted from. FILES
/var/run/dmesg.boot usually a snapshot of the buffer contents taken soon after file systems are mounted at startup time SEE ALSO
sysctl(3), syslogd(8) HISTORY
The dmesg utility appeared in 4.0BSD. BSD
May 9, 2013 BSD
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

sun dmesg says

Oct 22 13:40:07 snmpdx: community_check() : bad community from Oct 22 13:40:07 snmpdx: session_open() failed for a pdu received from any help? thanks (4 Replies)
Discussion started by: yls177
4 Replies

2. UNIX for Advanced & Expert Users

unix from scratch

hi all, i'm trying to write a unix system from scratch (not re-writing the kernel) does anyone have information about that? tips and stuff...?i would appreciate every help, thnks :) (9 Replies)
Discussion started by: elzalem
9 Replies

3. HP-UX

file system full (1 block extent)

When i run dmesg, I get the following message which clearly indicates that the file system is full. Please let me know what does (1 block extent) means in the following error message? msgcnt 1 vxfs : mesg 001: vx_nospace - /dev/vg00/lvol4 file system full (1 block extent) Thanks (6 Replies)
Discussion started by: Adams Nave
6 Replies

4. UNIX for Advanced & Expert Users

kernel: Out of Memory: Killed process 2990

There is a tomcat webserver running that is used to host a java application. Sometime the service goes down with error logs. I see the following error messages in /var/log/messages: kernel: Out of Memory: Killed process 2990 (co). Out of Memory: Killed process 25671 (httpd) Out of Memory:... (7 Replies)
Discussion started by: bsandeep_80
7 Replies

5. Programming

How do I get system answer in c

How do I get the answer of a system call that is printed in the terminal? for example: I execute system("pwd"); and get the answer /home/user/ But because I need to send this result to somewhere, I need to store it in a string. Thanks in advance. (7 Replies)
Discussion started by: eldaran
7 Replies

6. Solaris

server restarting

Hello people, My solaris server is rebooting, not sure how!!! Which log should I look in to? I checked /var/adm/messages and dmesg also. How do I check older dmesg logs? I checked lastlog and also ran the last command. Nothing useful pointing to why server rebooted. Also when server reboots I... (4 Replies)
Discussion started by: rcmrulzz
4 Replies

7. Programming

system() command

hello everybody! i write this following command: system ("time (md5sum ./a.out)>log 2>&1"); as a part of a c program. but it printf the following error: sh: Syntax error: word unexpected (expecting ")") can anybody tell me why? thanx in advance (6 Replies)
Discussion started by: nicos
6 Replies

8. Red Hat

Does RHEL 5 provide a command to collect RHEL system log in single compress file?

Hi, I heard a command that can collect all RHEL 5 log in a single compress file before I forget. Does any body know...What the command is ? Thanks. (4 Replies)
Discussion started by: nnnnnnine
4 Replies

9. Solaris

/var/adm/messages empty

Hi all, One of the server is showing empty messages # logger -p user.error HELLO_SYSLOGD # dmesg Mon Apr 23 15:11:19 MYT 2012 /etc/syslog.conf file, i tried copy the conf file from another server, still it is not working *.err;kern.notice;auth.notice /dev/sysmsg... (8 Replies)
Discussion started by: beginningDBA
8 Replies

10. UNIX for Advanced & Expert Users

Users get booted

Hello....weird problem but hoping someone can help! Server: PowerEdge 2850 - 8 core - 12gb ram - 32 bit processor OS: Redhat ES 6 Setting: University setting .. use server for Computer Science student accounts (350 users) Every so often the system just boots you, no matter what you are... (14 Replies)
Discussion started by: cookdl
14 Replies

11. Shell Programming and Scripting

Grep last 30 minutes log only

I have below command, which i use for checking last two hours log file, but i want to check 30 minutes log and discard old log, only match current time with last 30 minutes. Command i am using. This below attach log file format is for this week, but sometime it got change in time of log, so i need... (6 Replies)
Discussion started by: learnbash
6 Replies

12. Solaris

Display Message Question

I'm have a script that I am creating and I want the dmesg command to only show output for the current day and the day before. What would be the command to make this work? Thanks (8 Replies)
Discussion started by: MattyJ2009
8 Replies

13. Shell Programming and Scripting

Searching Error Message from a log life between timestamp of every 10 minutes

HI Everyone, My task is to search error messages last 10 minutes everytime from a log file. My script, date1=`date -d '10 minutes ago' "+%H:%M:%S"` date2=`date "+%H:%M:%S"` awk -v d1="${date1}" -v d2="${date2}" '$0~d1{p=1} $0~d2{p=0} p' filename No error getting in... (3 Replies)
Discussion started by: ctscbe
3 Replies

14. HP-UX

Dmesg with date possible?

Hi there, I miss date information when executing # dmesg Is it possible to add this a date information to my results of # dmesg ? Best wishes (12 Replies)
Discussion started by: System
12 Replies

15. Shell Programming and Scripting

Grep last 2 minutes log only

I have newbie, which i use for checking last one hours log file, but i want to check 2 minutes log and discard old log, only match current time with last 2 minutes. Ex log. 2018-07-03 20:09:17 2018-07-03 20:05:17 2018-07-03 20:05:18 2018-07-03 20:05:20 2018-07-03 20:06:22 2018-07-03... (5 Replies)
Discussion started by: ooilinlove
5 Replies