*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> dmesg (1m)              


 dmesg(1M)                                                         dmesg(1M)

 NAME    [Toc]    [Back]
      dmesg - collect system diagnostic messages to form error log

 SYNOPSIS    [Toc]    [Back]
      /usr/sbin/dmesg [-] [core] [system]

 DESCRIPTION    [Toc]    [Back]
      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.  This is
      typically used with cron (see cron(1)) to produce the error log
      /var/adm/messages by running the command:

           /usr/sbin/dmesg - >> /var/adm/messages

      every 10 minutes.

      The arguments core and system allow substitution for the defaults
      /dev/kmem and /stand/vmunix respectively, where core should be a file
      containing the image of the kernel virtual memory saved by the
      savecrash(1M) command and system should be the corresponding kernel.
      If the system is booted with a kernel other than /stand/vmunix say
      /stand/vmunix_new, dmesg must be passed this name, the command must

           /usr/sbin/dmesg [-] /dev/kmem /stand/vmunix_new

 WARNINGS    [Toc]    [Back]
      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.

 AUTHOR    [Toc]    [Back]
      dmesg was developed by the University of California, Berkeley.

 FILES    [Toc]    [Back]
      /var/adm/messages        error log (conventional location)
      /var/adm/msgbuf          memory scratch file for - option
      /dev/kmem                special file containing the image of kernel
                               virtual memory
      /stand/vmunix            the kernel, system name list

 SEE ALSO    [Toc]    [Back]

 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003
[ Back ]
 Similar pages
Name OS Title
syslogc OpenBSD collect messages from syslog memory buffer
strerror_r FreeBSD system error messages
sys_nerr FreeBSD system error messages
sys_errlist FreeBSD system error messages
perror FreeBSD system error messages
strerror FreeBSD system error messages
perror IRIX get system error messages
perror IRIX print system error messages
satconfig IRIX configure the system audit trail to collect particular events
perror NetBSD write error messages to standard error
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service