Results 1 to 1 of 1
My server restarted twice, i need to know in what time my server restarted ,
i know these command help to know the uptime , i need only when its ...
- 10-05-2007 #1Just Joined!
- Join Date
- Jul 2007
- Posts
- 8
know System reboot time command or grep
My server restarted twice, i need to know in what time my server restarted ,
i know these command help to know the uptime , i need only when its start restarted
ex
[root@basema log]# grep restart messages
Sep 30 04:04:09 basema syslogd 1.4.1: restart.
Oct 5 01:51:21 basema syslogd 1.4.1: restart.
[root@basema log]# last | grep boot
reboot system boot 2.6.9-42.ELlarge Fri Oct 5 01:51 (12:26)
reboot system boot 2.6.9-42.ELlarge Thu Oct 4 07:05 (1+07:11)
reboot system boot 2.6.9-42.ELlarge Thu Oct 4 06:44 (00:17)
reboot system boot 2.6.9-42.ELlarge Thu Oct 4 01:01 (06:00)
[root@basema log]# last -x|grep shutdown | head -1
shutdown system down 2.6.9-42.ELlarge Thu Oct 4 07:02 - 14:27 (1+07:25)
[root@basema log]# last reboot | head -1
reboot system boot 2.6.9-42.ELlarge Fri Oct 5 01:51 (12:37)
[root@basema log]#
[root@basema log]# who -b
system boot Oct 5 01:51


Reply With Quote
