This article covers how to check for any VPS or dedicated server restarts in the past 30 days. Server restarts can be performed to apply system updates, resolve software issues, or regain system stability in case of performance problems. It allows for a clean start of the server, refreshing system resources and ensuring optimal performance.
Related Articles
Restarting a VPS
Managing Snapshots
Check for Restarts
- SSH into the server
- Run the following command
for i in $( ls -tr /var/log/sa/sa[0-9][0-9] ); do echo $( stat --format "%y" $i | awk '{print $1}' ) ": "; sar -f $i -q | grep RESTART; done
TIP: Alternatively,last -x
can also be run.
NOTE: Lines that contain LINUX RESTART indicate the date and time the server was restarted.
Comments
0 comments
Article is closed for comments.