resetting clock after power outage

Andrew andrew.chace at gmail.com
Mon May 8 04:19:20 UTC 2006


On Sun, 2006-05-07 at 21:10 -0700, jekillen wrote:
> Hello;
> I have a problem that I can't, so far find and answer to.
> How do you reset the system clock after a power outage
> has caused it to loose time?
> I have a machine that went down a month or so ago and
> since have noticed that the time stamp on such things
> as mail to the root account, and log entries is way behind
> what it should be.
> The system is FreeBSD v6.0 and does not have Xwindows
> installed on it. So I need to find out how to reset the clock
> from the command line. I thought I could do it with sysinstall
> but I don't see an option for actually setting the time,
> only the time zone.
> I presume that it is important, now, as I am running named
> on it as a master server and I believe it is important that
> it be in sync with the slave server running on another
> machine that was off at the time of the outage.
> I thought maybe the bios had something to do with it
> but haven't seen a way to reset the time in the bios
> either.
> Thanks for assistance in advance;
> JK

Hello,

See 'man ntpdate(8)'. Pretty sure that it's included with a basic
installation; i.e. it's part of the system, not a port. 

-Andrew



More information about the freebsd-questions mailing list