Operating System - HP-UX
1833573 Members
3816 Online
110061 Solutions
New Discussion

Re: Does the reboot command generate log entries?

 
thewho?
Frequent Advisor

Does the reboot command generate log entries?

Hello,
N4000, HP-UX 11.0.
I know the shutdown commands logs to /etc/shutdownlog and syslog, but does anybody know if the reboot command (particularly 'reboot -qh') logs anywhere?
We had a problem with high temperature and last entry in syslog said that it reached a critical level but it doesn't say exactly when the system was brought down (because envd used reboot).
Thanks in advance,
Luis
We'll get through this together.
6 REPLIES 6
Eric Ladner
Trusted Contributor

Re: Does the reboot command generate log entries?


Look at "last -R | grep reboot" and see if the reboot entries show up there.

Another thing (if it was a recent reboot) you can compare timestamps in the syslog.log and OLDsyslog.log (i.e. tail -1 /var/adm/OLDsyslog.log; head -1 /var/adm/syslog.log)

Eric
Lou Zirko_1
Frequent Advisor

Re: Does the reboot command generate log entries?

I have not tested it, but the man page for reboot states that reboot writes a message to /etc/shutdownlog if it exists with containing the time of shutdown, who ran reboot and the reason.

It is possible that your system was brought down by other means. If the processor failed it could have halted the system but recovered when it attempted to reboot. I do know that it the system issues it's own reboot after a panic it is noted in the log along with the isr.ior entry. They also have reboot entries but do not specify a user.


Lou Zirko
Sanjay_6
Honored Contributor

Re: Does the reboot command generate log entries?

Hi Luis,

Use
last -5 reboot

It will list the 5 times your system was booted. The top entry will be for present boot.

Hope this helps.

Thanks
linuxfan
Honored Contributor

Re: Does the reboot command generate log entries?

Hi Luis,


Normally reboot logs to /etc/shutdownlog but when invoked with -q option it doesn't do any logging, and it ignores the -t and -m options as well.

Look at the man page for reboot (-q option)

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Bill McNAMARA_1
Honored Contributor

Re: Does the reboot command generate log entries?

If you have ems configured you'll get an email notification in the syslog:
Sep 19 10:35:41 kibo EMS [1235]: ----- EMS Monitor Restart due to system reboot
----- Title: FC60_monitor Command: /usr/sbin/stm/uut/bin/tools/monitor/fc6
0mon Vendor: Hewlett-Packard Co. Version: A.01.05 To obtain a list of
currently monitored resources, execute the following: /opt/resmon/bin/resdata -
M 1652016795

A random panic should at least generate a hpmc tombstone sig /var/tombstones and a crash dump in /var/adm/crash

My shutdownlog in anycase does give info on reboot as well as shutdowns.

You should also have a look a t the systems GSP to have a look at chassis logs.

Note that EMS will generate warnings on temperature problems. You should ensure diagnostics is on.

Bill
It works for me (tm)
thewho?
Frequent Advisor

Re: Does the reboot command generate log entries?

Thanks for all your prompt replies.
I had checked the OLDsyslog, /etc/shutdownlog and EMS, they tell me when the system came back up but not when the reboot command was issued (because it had the -q in it).
I didn't know about the last -R command but again it tells me when the system came back up.
I was hoping for some hidden log file that is always updated by the reboot command even when it's run with the -q.
Luis
We'll get through this together.