LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ntp -- is it working? (https://www.linuxquestions.org/questions/linux-software-2/ntp-is-it-working-177013/)

synaptical 05-02-2004 01:56 PM

ntp -- is it working?
 
it doesn't seem to me that ntp is working. i installed ntp-4.2.0 from source, and it installed ntpd in /usr/local/bin. i added /usr/local/bin/ntpd to /etc/rc.d/rc.local, and the daemon appears to start at startup:
Code:

[1] sero:~ $ ps ax |grep ntpd
  447 ?        SLs    0:00 /usr/local/bin/ntpd

my /etc/ntp.conf is:
Code:

restrict default noquery notrust nomodify
restrict 127.0.0.1
fudge 127.127.1.0 stratum 3
server sundial.columbia.edu
server ntp0.cornell.edu
driftfile /etc/ntp.drift
logfile /var/log/ntp.log

when i run ntpq -p i get:
Code:

    remote          refid      st t when poll reach  delay  offset  jitter
==============================================================================
 filbert.cc.colu .RSTR.          16 u    -  64    0    0.000    0.000 4000.00
 cudns.cit.corne .RSTR.          16 u    -  64    0    0.000    0.000 4000.00

should those read exactly the same? i get those same numbers no matter what servers i put in there. when i manually set my time back a few minutes, it doesn't get updated even a day later. i even tried ntpdate as a last resort, it said, "no servers can be used, exiting." :confused: how can i get this working?

~~~~~~~~~~~~~~~~~~~
Code:

[8] sero:~ $ man ntpd
No manual entry for ntpd

[9] sero:~ $ man ntp
No manual entry for ntp

[10] sero:~ $ man ntp.conf
No manual entry for ntp.conf


TheOther1 05-02-2004 02:12 PM

Try adding
Code:

sundial.columbia.edu
ntp0.cornell.edu

to your /etc/ntp/step-timers file.

synaptical 05-02-2004 02:25 PM

i didn't have one, so i made one, but it didn't help. :confused:

synaptical 05-02-2004 02:53 PM

okay, got it working. i commented out that first line in /etc/ntp.conf. i'll just have to do some reading to see if that's safe or what those options do. thanks. :)

>edit: it seems to be the notrust option causing the problem. sux that there's no man pages for ntp. :confused:

jonr 08-23-2004 03:50 PM

Quote:

Originally posted by TheOther1
Try adding
Code:

sundial.columbia.edu
ntp0.cornell.edu

to your /etc/ntp/step-timers file.

Adding those two to my step-tickers [sic] file fixed my ntpd problem! Thanks. I had no idea how to specify a different time server without reinstalling and choosing from the list I was presented with. This saved me a lot of
time and potential grief.


All times are GMT -5. The time now is 02:32 PM.