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)