Linux - How to find server downtime, Find last system reboot
How to find server downtimeTo find all system reboot date and time
# last reboot | less
find last five system reboot
# last reboot | head -5
To find last shutdown date and time
# last -x | grep shutdown | head -5
Who command to find last system boot time
# who -bwho command, to print who is logged on. It also displays the time of last system boot. Use last command to display system reboot and shutdown date and time.
TO find last system downtime status
# grep -i 'boot' /var/log/messagesThere is no specific command to find downtime status, You can find the shutdown and reboot date and time using linux last command. But to find the system down time status you can analyse the system log report. The above command will help you find the approximate server down time.
Nov 14 08:53:29 servername shutdown: shutting down for system reboot Nov 14 08:54:42 servername kernel: Booting processor Nov 14 08:54:42 servername kernel: Simple Boot Flag at 0xxx set to 0xxx
How to execute previous command
# Control+P will display the previous command
The topic on Linux - How to find server downtime is posted by - Math
Hope you have enjoyed, Linux - How to find server downtimeThanks for your time