- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Logging /dev/console activities into a file
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
01-16-2002 01:48 PM
01-16-2002 01:48 PM
Pls note that I want to keep a log of everything and anything comming on the console.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 01:54 PM
01-16-2002 01:54 PM
SolutionThere is no standard tool on HP-UX to log all messages sent to the /dev/console device file to a file. You can write a C program using the ioctl() system call with the TIOCCONS argument as described by the ioctl(2) and termio(7) man pages. Some of the console messages can be accessed using the following methods:
Edit /etc/syslog.conf and add a line to direct all alert level messages going to /dev/console to a log file. Example:
*.alert /var/adm/console_messages
Restart syslogd with the command
$ kill -HUP `cat /var/run/syslog.pid`
Use the dmesg and cron commands to log system diagnostic messages to a file. See dmesg(1M).
On systems like the N-class you can access the console history through the GSP (Guardian Service Processor) CL command (Console Log).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 01:56 PM
01-16-2002 01:56 PM
Re: Logging /dev/console activities into a file
Have a look at configuring your /etc/syslog.conf
file to pick these messages up. All messages are generally logged to to your system log file in /var/adm/syslog/syslog.log
For the console messages have a different line
*.alert /var/adm/console_messages
HTH
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 02:27 PM
01-16-2002 02:27 PM
Re: Logging /dev/console activities into a file
It is any o/p to the device /dev/console.Like having a parallel console (just a plain flat file).
thanks for the replies.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2002 05:56 AM
01-17-2002 05:56 AM
Re: Logging /dev/console activities into a file
If so, you can use "hpterm -C" to open a console window and use the logging facility of hpterm(1) to log all output to a file ("-l" option).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2002 07:04 AM
01-17-2002 07:04 AM
Re: Logging /dev/console activities into a file
The console is 50miles away from my work place and I need to know/see the console/screen (it can be just a 700/9x or a Test station ).
The only connectivity I have is the network.
thanks for the replies