HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Console message
Operating System - HP-UX
1830979
Members
2075
Online
110018
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2004 12:50 PM
08-09-2004 12:50 PM
Console message
Hi,
Is there any file that keep the console messages?
regards.
Is there any file that keep the console messages?
regards.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2004 01:00 PM
08-09-2004 01:00 PM
Re: Console message
Try adding this entry to the /etc/syslog.conf file
*.alert /var/adm/syslog/syslog.log
Restart the syslog daemon:
# /sbin/init.d/syslogd stop
# /sbin/init.d/syslogd start
*.alert /var/adm/syslog/syslog.log
Restart the syslog daemon:
# /sbin/init.d/syslogd stop
# /sbin/init.d/syslogd start
Anyone for a Mutiny ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2004 01:27 PM
08-09-2004 01:27 PM
Re: Console message
While Michael's answer will almost certainly help; the precise answer to your question is no. Not every message that is sent to the console is sent via syslogd. You can also execute dmesg but that is a circular buffer of limited capacity but it would get a few more messages that syslogd might miss. A process could write directly to /dev/console and the only file (more properly a device node) that would receive those messages (in addition to those sent by syslogd, dmesg, et al) is /dev/console itself. If you absolutely, positively want to capture everything get yourself a hardcopyterminal (actually a printer with a keyboard). That's the way in was done in the good old days of UNIX and is still done that way in a few very mission critical cases. Plan B: Connect a PC as the console terminal and have its terminal emulation software write every incoming character to a file.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2004 01:56 PM
08-09-2004 01:56 PM
Re: Console message
Well written Unix applications and processes will write to syslog (in HP-UX, /var/adm/syslog/syslog.log). However, kernel messages and some daemons can't take the time or store the code needed write to the syslog daemon and will instead write to the console. The dmesg command will show this buffer in memory. But as Clay mentioned, this buffer is limited in size and additional messages will push the older text off the top.
You can log dmesg regularly (and add a time stamp) by running a job like this from cron:
0,10,20,30,40,50 * * * * /usr/sbin/dmesg - >> /var/adm/dmesg.log
That will keep a permanent log of dmesg messages. Note: this just checks dmesg for changes from 10 minutes ago. If a lot of messages are sent to the console, only the most recent will be written to the log.
As Clay mentioned, a paper terminal or an electronic terminal logging device is needed to truly capture every message.
Bill Hassell, sysadmin
You can log dmesg regularly (and add a time stamp) by running a job like this from cron:
0,10,20,30,40,50 * * * * /usr/sbin/dmesg - >> /var/adm/dmesg.log
That will keep a permanent log of dmesg messages. Note: this just checks dmesg for changes from 10 minutes ago. If a lot of messages are sent to the console, only the most recent will be written to the log.
As Clay mentioned, a paper terminal or an electronic terminal logging device is needed to truly capture every message.
Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP