LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-06-2018, 09:52 AM   #1
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598

Rep: Reputation: 30
Downtime analysis on Linux


Hi,

When I try to locate the exact unavailability of this server, I got this question on last command.

Code:
[root@prodx1133 ~]# last -x -F reboot  |head -10
reboot   system boot  2.6.32-696.30.1. Sat Jun  2 08:44:41 2018 - Wed Jun  6 10:55:48 2018 (4+02:11)
reboot   system boot  2.6.32-696.13.2. Tue May 22 16:19:43 2018 - Sat Jun  2 08:41:58 2018 (10+16:22)
reboot   system boot  2.6.32-696.13.2. Fri May 18 11:48:46 2018 - Tue May 22 16:17:00 2018 (4+04:28)
reboot   system boot  2.6.32-696.13.2. Thu May 17 15:56:38 2018 - Tue May 22 16:17:00 2018 (5+00:20)
reboot   system boot  2.6.32-696.13.2. Wed May 16 16:26:05 2018 - Thu May 17 15:53:59 2018  (23:27)
reboot   system boot  2.6.32-696.13.2. Sat Apr 14 10:41:45 2018 - Wed May 16 16:23:22 2018 (32+05:41)
reboot   system boot  2.6.32-696.13.2. Sat Apr 14 09:52:12 2018 - Wed May 16 16:23:22 2018 (32+06:31)
reboot   system boot  2.6.32-696.13.2. Thu Mar 15 17:05:54 2018 - Wed May 16 16:23:22 2018 (61+23:17)
reboot   system boot  2.6.32-696.13.2. Sat Oct 21 05:13:57 2017 - Wed May 16 16:23:22 2018 (207+11:09)
reboot   system boot  2.6.32-573.26.1. Tue Feb 14 20:39:34 2017 - Sat Oct 21 05:11:15 2017 (248+08:31)
[root@prodx1133 ~]# last -x -F shutdown  |head -10
shutdown system down  2.6.32-696.13.2. Sat Jun  2 08:42:09 2018 - Sat Jun  2 08:44:41 2018  (00:02)
shutdown system down  2.6.32-696.13.2. Tue May 22 16:17:11 2018 - Tue May 22 16:19:43 2018  (00:02)
shutdown system down  2.6.32-696.13.2. Thu May 17 15:54:06 2018 - Thu May 17 15:56:38 2018  (00:02)
shutdown system down  2.6.32-696.13.2. Wed May 16 16:23:33 2018 - Wed May 16 16:26:05 2018  (00:02)
shutdown system down  2.6.32-573.26.1. Sat Oct 21 05:11:25 2017 - Sat Oct 21 05:13:57 2017  (00:02)
shutdown system down  2.6.32-573.26.1. Tue Feb 14 20:37:02 2017 - Tue Feb 14 20:39:34 2017  (00:02)
shutdown system down  2.6.32-504.30.3. Thu May 26 08:15:13 2016 - Thu May 26 10:51:43 2016  (02:36)
shutdown system down  2.6.32-504.30.3. Thu Nov 26 13:19:07 2015 - Fri Nov 27 08:55:12 2015  (19:36)
The "last -x -F shutdown" shows the 00:02 as downtime and it matches with "last -x -F reboot" output also. But in another server though the shutdown reports is exact , the boot message fails to match (may 4,5) . Is that boot messages are due to syslog restarting?

Code:
[root@prodx1088 ~]#  last -x -F reboot  |head -10
reboot   system boot  2.6.32-696.30.1. Sat Jun  2 15:46:48 2018 - Wed Jun  6 17:26:47 2018 (4+01:39)
reboot   system boot  2.6.32-696.13.2. Sat May  5 04:56:45 2018 - Sat Jun  2 15:44:32 2018 (28+10:47)
reboot   system boot  2.6.32-696.13.2. Fri May  4 03:40:19 2018 - Sat Jun  2 15:44:32 2018 (29+12:04)
reboot   system boot  2.6.32-696.13.2. Fri Mar 16 03:41:20 2018 - Sat Jun  2 15:44:32 2018 (78+12:03)
reboot   system boot  2.6.32-696.13.2. Fri Feb 23 13:36:51 2018 - Thu Mar 15 17:38:55 2018 (20+04:02)
reboot   system boot  2.6.32-696.13.2. Fri Feb  9 11:33:15 2018 - Thu Mar 15 17:38:55 2018 (34+06:05)
reboot   system boot  2.6.32-696.13.2. Fri Feb  9 11:12:22 2018 - Fri Feb  9 11:30:47 2018  (00:18)
reboot   system boot  2.6.32-696.13.2. Tue Jan 16 10:34:01 2018 - Fri Feb  9 11:09:50 2018 (24+00:35)
reboot   system boot  2.6.32-696.13.2. Tue Dec 12 15:26:18 2017 - Fri Feb  9 11:09:50 2018 (58+19:43)
reboot   system boot  2.6.32-696.13.2. Tue Dec 12 11:47:24 2017 - Fri Feb  9 11:09:50 2018 (58+23:22)
[root@prodx1088 ~]#  last -x -F shutdown  |head -10
shutdown system down  2.6.32-696.13.2. Sat Jun  2 15:44:38 2018 - Sat Jun  2 15:46:48 2018  (00:02)
shutdown system down  2.6.32-696.13.2. Thu Mar 15 17:38:59 2018 - Fri Mar 16 03:41:20 2018  (10:02)
shutdown system down  2.6.32-696.13.2. Fri Feb  9 11:30:51 2018 - Fri Feb  9 11:33:15 2018  (00:02)
shutdown system down  2.6.32-696.13.2. Fri Feb  9 11:09:55 2018 - Fri Feb  9 11:12:22 2018  (00:02)
shutdown system down  2.6.32-696.13.2. Fri Nov 24 19:54:59 2017 - Fri Nov 24 19:57:09 2017  (00:02)
shutdown system down  2.6.32-573.26.1. Sat Oct 21 11:15:55 2017 - Sat Oct 21 11:18:41 2017  (00:02)
shutdown system down  2.6.32-504.16.2. Tue Mar 14 16:43:02 2017 - Tue Mar 14 16:45:34 2017  (00:02)
shutdown system down  2.6.32-504.16.2. Fri Oct 28 18:47:49 2016 - Fri Oct 28 18:50:47 2016  (00:02)
 
Old 06-06-2018, 11:53 PM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
What distro are you running?
 
Old 07-04-2018, 09:16 AM   #3
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598

Original Poster
Rep: Reputation: 30
Sorry for too late on this reply .
The distro is Cent OS 6.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LQ Downtime jeremy LQ Suggestions & Feedback 12 10-10-2010 09:46 AM
LXer: Ksplice debuts zero downtime service for Linux LXer Syndicated Linux News 0 02-09-2010 04:50 PM
LQ Downtime jeremy LQ Suggestions & Feedback 11 03-15-2008 02:49 PM
LQ Downtime jeremy LQ Suggestions & Feedback 18 11-14-2004 01:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration