- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- viewing console messages
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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-11-2003 05:17 PM
08-11-2003 05:17 PM
Is there a way where I can view any messages that were directed to the console (/dev/console) from various programs. I have a number of programs that write messages to the console and I would like it for my customer to go the the console and view these messages but as some messages may have scrolled of the top of the screen, it would be better to just view the one file. Is there a file that automatically logs everything written to the console. I have checked syslog.log and rc.log but not much help as these are system messages. Although my apps write to different log files I was hoping the console captures all its messages and saves it to a file.
Any help here would be appreciated.
Thanks in advance
PA
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2003 05:33 PM
08-11-2003 05:33 PM
SolutionSee the syslogd man page, but here some examples:
mail.debug /var/adm/syslog/mail.log
*.info;mail.none /var/adm/syslog/syslog.log
*.alert /dev/console
*.alert root
*.emerg *
You can redirect these messages anywhere you wish, including email.
Make sure that you restart the syslog daemon after making the changes.
# kill -HUP `cat /var/run/syslog.pid`
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2003 05:46 PM
08-11-2003 05:46 PM
Re: viewing console messages
but what level would my application messages be at. The man pages mentions emerg and alert but what about standard application messages that write to /dev/console ?
Also if I direct all console messages to /apps/messages.log then would this file need to cleared at each boot ?
PA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2003 05:53 PM
08-11-2003 05:53 PM
Re: viewing console messages
Check out /var/adm/syslog/syslog.log.If the required logs appear in this file , you can write a shell script to extract those files from syslog.log and put into your file.
Other option is that,If you have software like CRT , there is option to capture text.Just say the ouput file path, this file will be generated on your PC under the path you specify.
So do telnet to GSP,go to console and What ever coming in that telnet screen will be appaended to the file you specify.
regds,
baiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2003 06:01 PM
08-11-2003 06:01 PM
Re: viewing console messages
/apps/messages.01 /apps/messages.02
Don't forget to re-start the syslog daemon as I demonstrated in my earlier response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2003 06:18 PM
08-11-2003 06:18 PM