Re: ntp problem



Jon Radel wrote:
Lisa Casey wrote:
Hi,

Running FreeBSD 5.3 IN /etc/ntp.conf I have:

server time.nist.gov prefer
server tock.gpsclock.com
driftfile /etc/ntp.drift
logfile /var/log/ntp.log

If I run ntpdate from a prompt, I get the following error message:

# ntpdate
20 Apr 12:02:08 ntpdate[50109]: no servers can be used, exiting

But if I type:

ntpdate time.nist.gov it will update the time. Is there something
wrong with my /etc/ntp.conf file?

I don't believe ntpdate uses ntp.conf. Try ntpd -q

I don't have 5 running anywhere anymore, but if you read the man pages
for 6.3, it's clear that ntpdate is depreciated and on its way out.

Or you could just run ntpd as a daemon to maintain your time.

Exactly.
If you wish to use your /etc/ntp.conf file, add this to /etc/rc.conf:

ntpd_enable="YES"

and start it with /etc/rc.d/ntpd start

check /var/log/messages to see when it kicks in. It normally takes some
time before it does the first correction. You will see messages like this:

Apr 20 18:41:46 atlantis ntpd[783]: time reset +0.416117 s
Apr 20 18:41:46 atlantis ntpd[783]: kernel time sync status change 2001

and then you will know it is working.

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • RE: rh-l] NTP Problems Redux
    ... I have been stopping/starting ntpd as needed to run ntpdate, ... server 192.168.1.50 ... I wait a few days to see if the clocks will drift out of sync. ...
    (RedHat)
  • Re: Time server...how to set it up on FC1?
    ... They're in essence the same daemon and when ntpdate starts it sees ... >ntpd and shuts itself down. ... from the server, regardless of what that result was and with no sanity ... If the server is 10 years off from the local system time, ...
    (Fedora)
  • Re: ntp problem
    ... I set my server time to NTP server using the command ntpdate but when I ... to keep the time connected to NTP after the restart? ... posters clock setting is borked. ...
    (Fedora)
  • Re: time acuracy
    ... external ntp server. ... In my opinion it's about exactly as easy or simple to use ntpdate in a cron ... Nor is there any cpu/ram penalty by having ntpd running. ... server that is geographically close to you, ...
    (comp.unix.sco.misc)
  • Re: [SLE] Atom clock synching tool
    ... Remember it needs a permanent network connection. ... Perhaps as a last comment - ntpd does't actually need a permanent ... server you have specified, and when it doesn't have a connection, you ... to call than ntpdate. ...
    (SuSE)