- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 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
06-26-2001 11:32 PM
06-26-2001 11:32 PM
Console messages
we have a HP 9000 K220 machine located at one of our remote office. we want to monitor the console messages of the same. can anybody tell me is there any way to redirect the console messages to a file ?
regards
jayamohan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2001 11:43 PM
06-26-2001 11:43 PM
Re: Console messages
The command /etc/dmesg may be used to view the current message buffer
where console messages are kept. This buffer is circular such that
older messages will scroll off the top. To monitor (and log) data
that has been added to the message buffer while running, /etc/dmesg
has an option to 'remember' what additions have been made recently.
The command /etc/dmesg - (just the minus character) will report all
the differences between the first /etc/dmesg - command and subsequent
runs of the same command. This may be appended to a file for logging
and an example of this is provided in /etc/newconfig/crontab.root.
Here is an example to log messages using cron:
# log kernel diagnostic messages every 10 minutes
05,15,25,35,45,55 * * * * /etc/dmesg - >>/usr/adm/messages
root (superuser) may be added to cron with the command:
crontab /etc/newconfig/crontab.root
To view the latest logged information, the /bin/tail command may be
used as in:
/bin/tail /usr/adm/messages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2001 11:43 PM
06-26-2001 11:43 PM
Re: Console messages
i don't think so that we can store console messages in a file and retrieve the file often.
you can use web console thru which you can access the console of the system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2001 12:04 AM
06-27-2001 12:04 AM
Re: Console messages
see man hpterm -C option + the Xconsoles section.
However you'd need an X enviroment for it to run on.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2001 12:06 AM
06-27-2001 12:06 AM
Re: Console messages
Most interesting messages are written to the syslog (/var/adm/syslog/syslog.log).
At 11.00, 'dmesg' messages are written to the syslog also and are not subject to data loss due to buffer overflow when long messages are written.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2001 12:35 AM
06-27-2001 12:35 AM
Re: Console messages
to have a live updating syslog.
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2001 12:46 AM
06-27-2001 12:46 AM
Re: Console messages
/etc/syslog.conf contains lines similar to the following:
*.alert /dev/console
kern.debug /dev/console
What you can do is add a line for the same log level and let syslog redirect the messages to an alternate log file. Like this:
*.alert /dev/console
*.alert /var/adm/syslog/console.log
kern.debug /dev/console
kern.debug /var/adm/syslog/console.log
Then, make syslogd reread its configuration file: kill -HUP
HTH.
Regards,
Vincent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2001 12:51 AM
06-27-2001 12:51 AM
Re: Console messages
Later,
Bill