Re: resetting clock after power outage

2006-05-08 Thread Nick Withers

On Mon, 8 May, 2006 2:10 pm, 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?

Have a gander at date(1), if NTP isn't a goer, as others have suggested.

(snip)

 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

The BIOS setup utility really should have a time / date setting facility
too, though!

-- 
Nick Withers
email: [EMAIL PROTECTED]
Web: http://www.nickwithers.com
Mobile: +61 414 397 446

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: resetting clock after power outage

2006-05-07 Thread Murray Taylor
if you have ntp setup you may need to do a single  

ntpdate -b

or

ntpd -q

to get the clock within a reasonable limit so ntpd can run properly

man (8) ntpd
man (8) ntpdate


Murray Taylor

Special Projects Engineer
Bytecraft Systems

P: +61 3 8710 2555
F: +61 3 8710 2599
D: +61 3 9238 4275
E: [EMAIL PROTECTED] 

--
Any intelligent fool can make things bigger and more complex... It
takes a
touch of genius - and a lot of courage to move in the opposite
direction.
  Albert Einstein 
-- 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of jekillen
 Sent: Monday, 8 May 2006 2:11 PM
 To: freebsd-questions
 Subject: resetting clock after power outage
 
 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
 
 ___
 freebsd-questions@freebsd.org mailing list 
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 
 ***This Email has been scanned for Viruses by MailMarshal.***
 
---
The information transmitted in this e-mail is for the exclusive
use of the intended addressee and may contain confidential
and/or privileged material. Any review, re-transmission,
dissemination or other use of it, or the taking of any action
in reliance upon this information by persons and/or entities
other than the intended recipient is prohibited. If you
received this in error, please inform the sender and/or
addressee immediately and delete the material. 

E-mails may not be secure, may contain computer viruses and
may be corrupted in transmission. Please carefully check this
e-mail (and any attachment) accordingly. No warranties are
given and no liability is accepted for any loss or damage
caused by such matters.
---

***This Email has been scanned for Viruses by MailMarshal.***
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: resetting clock after power outage

2006-05-07 Thread Andrew
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

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]