How to tell cold boot from warm by /var/log/messages

Posted on

How to tell cold boot from warm by /var/log/messages – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, fedora, log-files, , .

Say I have a log which captures something really interesting as happening during boot. I want to know, was it just a reboot, or complete power off-and-on. What are the definite signs of cold reboot?

Solution :

Unless the server has an out of band management system like IPMI I dont think there is any way to tell the difference between a reboot by hitting the reset button and a power off.

If it was a reboot done by the OS that will be in the logs right before the reboot. Same if you told the os to shutdown.

So if the power cycle was done through the os it will be in the logs. Might even show it in the output of who or last.

Leave a Reply

Your email address will not be published.