Operating System - Linux
1753555 Members
5474 Online
108795 Solutions
New Discussion юеВ

Re: How to find shutdown time stamp of suse server

 
SOLVED
Go to solution
nataris
Advisor

How to find shutdown time stamp of suse server



I want to find shutdown time stamp of suse server. I try to run last +x|grep -i reboot|less. It show as below. My question is about message "(-5:-57)". What does it mean the
"(-5:-57)". Please help to suggest me.

reboot system boot 2.6.11.4-21.7-sm Fri Dec 5 17:59 (-5:-57)

Thanks in advance
3 REPLIES 3
Hemmetter
Esteemed Contributor

Re: How to find shutdown time stamp of suse server

Hi,

(-5:-57) is the uptime.

see # uptime command.

it seems your clock is not set correct or was not correct before reboot!

Check your clock!


rgds
HGH

nataris
Advisor

Re: How to find shutdown time stamp of suse server

"(-5:-57)" It mean uptime after reboot 5 hours:57 minute. That's right? If it's correct, what it mean "5:57".

I confuse between minus and no minus.

thanks in advance
Fredrik.eriksson
Valued Contributor
Solution

Re: How to find shutdown time stamp of suse server

I believe he said what it's supposed to mean. Probably your system clock is set wrong and gets set properly when the machine boots.

Just means that the clock probably was set to 23:56 dec 5 when it was started and then set to the proper time.

If that's the issue and you have the hwclock application it's an easy fix.
$ ntpdate
$ hwclock --systohc

Add --utc if you want it to be in UTC.
(I believe there's an option to date to push system time to hardware clock but I can't seem to remember it :P)

Best regards
Fredrik Eriksson