1835046 Members
2134 Online
110073 Solutions
New Discussion

Log of /etc/shutdowns

 
SOLVED
Go to solution
Ed Hon
Regular Advisor

Log of /etc/shutdowns

Is there a history log of when /etc/shutdowns occurred?
8 REPLIES 8
Clemens van Everdingen
Honored Contributor

Re: Log of /etc/shutdowns

HI,

Yes, in /etc/shutdown.log file !

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Charles McCary
Valued Contributor

Re: Log of /etc/shutdowns

in addition... who -b will tell you when the LAST shutdown occured.

tx,
c
Lisa  Mauer
Regular Advisor
Solution

Re: Log of /etc/shutdowns

There is a /etc/shutdownlog
that shows if it was a reboot, shutdown or HALT and by whom... is that what you are looking for?
hpuxrox
Respected Contributor

Re: Log of /etc/shutdowns

/etc/shutdown is the log???

Or you can use

last | grep reboot

who -b

Or look at the timestamp on /etc/rc.log
David Burgess
Esteemed Contributor

Re: Log of /etc/shutdowns

It's /etc/shutdownlog

HTH

Dave.
David Burgess
Esteemed Contributor

Re: Log of /etc/shutdowns

/etc/shutdown is a link to /usr/sbin/shutdown

ls -l /etc/shutdown

lrwxr-xr-t 1 root sys 18 Jan 18 16:40 /etc/shutdown -> /usr/
sbin/shutdown

HTH

Dave.

MANOJ SRIVASTAVA
Honored Contributor

Re: Log of /etc/shutdowns

Hi Ed


Unless there was a abrupt shutdown where in the OS was not able to function like failure of vg00 , all the shutdown logs ie the time and date will be under /etc/shutdownlog .

Manoj Srivastava
Ed Hon
Regular Advisor

Re: Log of /etc/shutdowns

Thanks everyone, I got what I needed.