1826378 Members
4188 Online
109692 Solutions
New Discussion

shutdownlog

 
brian_31
Super Advisor

shutdownlog

any equivalents for hp-ux shutdownlog in linux where we could see how the server was rebooted?

thx

brian
2 REPLIES 2
Stuart Browne
Honored Contributor

Re: shutdownlog

You can use the 'last' command to see shutdowns, reboots and crashes, i.e.:

usera pts/0 192.168.1.8 Thu Nov 16 08:49 still logged in
reboot system boot 2.4.22-1.2199.8. Thu Nov 16 08:44 (00:05)
usera pts/0 192.168.1.8 Thu Nov 16 06:36 - crash (02:07)
reboot system boot 2.4.22-1.2199.8. Thu Nov 16 02:29 (06:19)
reboot system boot 2.4.22-1.2199.8. Wed Nov 15 23:47 (09:01)


This is from a power-outage on my machine at home overnight.
One long-haired git at your service...
Ivan Ferreira
Honored Contributor

Re: shutdownlog

Yes, the last command is the way to identify the shutdown and reboots, you can also use:

last shutdown
last reboot
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?