Operating System - HP-UX
1833777 Members
1973 Online
110063 Solutions
New Discussion

Is there a way to find out when the system was shut down?

 
Joshua Goi
Frequent Advisor

Is there a way to find out when the system was shut down?

Hi,

Is there a way to find out when the system was last shut down? Is there a log file that will tell me that? Thanks!
7 REPLIES 7
A. Clay Stephenson
Acclaimed Contributor

Re: Is there a way to find out when the system was shut down?

/etc/shutdownlog
If it ain't broke, I can fix that.
Jeff Schussele
Honored Contributor

Re: Is there a way to find out when the system was shut down?

Ditto...

/etc/shutdownlog
You can usually also infer shutdown time from the *last* entry in
/var/adm/syslog/OLDsyslog.log
...but not always because the possibility exists that the syslogd daemon *could* have hung.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Gregory Fruth
Esteemed Contributor

Re: Is there a way to find out when the system was shut down?

The command "last reboot" will show when the
machine was rebooted. Perhaps that will help?
Paul_481
Respected Contributor

Re: Is there a way to find out when the system was shut down?

Hi,

also check the last entry of /var/adm/syslog/OLDsyslog.log

This file is renamed from /var/adm/syslog.log after every reboot.

regds,
paul

MarkSyder
Honored Contributor

Re: Is there a way to find out when the system was shut down?

who -b

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Peter Godron
Honored Contributor

Re: Is there a way to find out when the system was shut down?

Joshua,
"uptime" will tell you how long the machine has been running since last reboot.
Regards
Gordon  Morrison
Trusted Contributor

Re: Is there a way to find out when the system was shut down?

In addition to all the above, look at /var/adm/syslog/syslog.log (and OLDsyslog.log if there is one)
What does this button do?