We have a server running RHEL 5.

Sometimes the power cuts and the server is down (the UPS handles only 30 min).

I want to be able to to identify the time of the shutdown, in an other term the last minute where the server was up.

I tried last command but it only logs shutdown started by a command.

I also checked the /var/log/messages but I don't see anything useful for my question.


you can try the following command

last -1x shutdown

or the reboot could be helpful in this situation

last reboot | less

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.