Operating System - HP-UX
1820553 Members
3630 Online
109626 Solutions
New Discussion юеВ

Re: Logging console messages

 
Haitham Hamad
Regular Advisor

Logging console messages

Is it possible to log console messages in D350/D370 HP servers for later review?. thanks HHH
8 REPLIES 8
Scott_14
Regular Advisor

Re: Logging console messages

hello there:

Well, if I understand correctly, you should check your /etc/syslog.conf file, there should be an entry for alerts from the console to be logged in the /var/adm/syslog/syslog.log file.

scott
Alex Glennie
Honored Contributor

Re: Logging console messages

Not sure how to do this for boot messages but you may want to look at hpterm -C or xconsole if you have access to an Xwindow enviroment & for once the system has booted ?
David Child_1
Honored Contributor

Re: Logging console messages

Unless /etc/syslog.conf has been modified, they are already being logged in /var/adm/syslog/syslog.log

You could also run "dmesg > mylog" to save recent error msgs to a log of your choice.

David
Craig Rants
Honored Contributor

Re: Logging console messages

Look at what your /etc/syslog.conf file has about directing output to /dev/console. Then create a similar line with output to a logfile you specify. Remember to put a tab not a space between the entries.

Good luck

C

Also, you may want to check on you auditing level, you could easily fill up filesystem with console messages if you have some sort of auditing on...
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
S.K. Chan
Honored Contributor

Re: Logging console messages

You can re-route error message reported to system console to a log file. Attached is the procedure. I have not tried it myself .. so good luck ..
harry d brown jr
Honored Contributor

Re: Logging console messages


You can even buy stuff to do it:

http://www.asptech.com/pub/main.html

live free or die
harry
Live Free or Die
Bernie Vande Griend
Respected Contributor

Re: Logging console messages

The ideas above are good, syslog.conf can be changed to get most items into a log. SK's idea is probably the best though to guarantee that you capture everything. You still wouldn't see some boot up messages, etc until the networking pieces are working.

One idea not mentioned yet, is that if you have your console connected to some central serial device such as a terminal server or serial ports off another unix box, then you can use the conserver software to log everything that goes to the console as well as using it to access the console. It would log everything that is typed by a user and what is displayed back.
For details: www.conserver.com
Ye who thinks he has a lot to say, probably shouldn't.
Haitham Hamad
Regular Advisor

Re: Logging console messages

Thanks everyone for your replies, these are all good ideas. I should have described my situation more. I have a "remote" D350 server that I reboot the first day of each month via a cron job

10 1 1 * * shutdown -r -y 0

It has been running fine since March. The last 2 months, the server would shutdown but not reboot and we have to hard boot it again. I added the patch PHCO_21534 before the last reboot and still the server hanged in the middle. /etc/rc.log.old shows the server went down till the end but /etc/rc.log only shows starting up at the time we do the hardboot as if the system halted. /etc/shutdown log shows a reboot not a halt. I am going to reboot the server today and show HP if the console shows anything. Since it is a remote server, I will have to ask someone by the console to read for me!