[ntp:questions] Synchronizing contrived time

Amit Dor-Shifer amit.dor.shifer at gmail.com
Mon Mar 10 12:09:12 UTC 2014


Thanks.
Would this then be the reference implementation?

[user at centos test_ntpd]$ rpm -qf $(which ntpd)
ntp-4.2.6p5-1.el6.centos.x86_64
[user at centos test_ntpd]$ cat ~/test_ntpd/ntp.conf
server 127.127.1.0 minpoll 4 maxpoll 4
[user at centos test_ntpd]$ ps -ef|grep ntp
user     13411 12236  0 22:03 pts/0    00:00:00 grep ntp

# moving clock back some 50 mins

[user at centos test_ntpd]$ sudo tail -f /var/log/messages
#...
[user at centos test_ntpd]$ sudo ntpd -f ~/test_ntpd/ntp.conf
Mar 10 22:04:52  ntpd[13443]: ntpd 4.2.6p5 at 1.2349-o Sat Nov 23 18:21:48 UTC
2013 (1)
[user at centos test_ntpd]$ Mar 10 22:04:52  ntpd[13444]: proto: precision =
1.260 usec
Mar 10 22:04:52  ntpd[13444]: 0.0.0.0 c01d 0d kern kernel time sync enabled
Mar 10 22:04:52  ntpd[13444]: format error frequency file
/home/user/test_ntpd/ntp.conf
Mar 10 22:04:52  ntpd[13444]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP
123
Mar 10 22:04:52  ntpd[13444]: Listen and drop on 1 v6wildcard :: UDP 123
Mar 10 22:04:52  ntpd[13444]: Listen normally on 2 lo 127.0.0.1 UDP 123
Mar 10 22:04:52  ntpd[13444]: Listen normally on 3 eth0 10.250.129.79 UDP
123
Mar 10 22:04:52  ntpd[13444]: Listen normally on 4 lo ::1 UDP 123
Mar 10 22:04:52  ntpd[13444]: Listen normally on 5 eth0
fe80::2000:aff:fefa:814f UDP 123
Mar 10 22:04:52  ntpd[13444]: peers refreshed
Mar 10 22:04:52  ntpd[13444]: Listening on routing socket on fd #22 for
interface updates
Mar 10 22:04:52  ntpd[13444]: 0.0.0.0 c016 06 restart
Mar 10 22:04:52  ntpd[13444]: 0.0.0.0 c012 02 freq_set kernel -25.992 PPM

[user at centos test_ntpd]$
[user at centos test_ntpd]$ Mar 10 22:04:59  ntpd[13444]: 0.0.0.0 c617 07
panic_stop +3203 s; set clock manually within 1000 s.

# ntpd terminates :(

ps -ef |grep ntp
user     13450 12236  0 22:05 pts/0    00:00:00 grep ntp



On Mon, Mar 10, 2014 at 10:47 PM, mike cook <michael.cook at sfr.fr> wrote:

>
> I just checked the openntpd site and see that they do not use the same
> format of config file, ntpd.conf.
>
>   I am afraid it's an RTFM.
>
> You could just take out minpoll, maxpoll  and retry, though you may need
> other config info. So check the man page for a minimal legal config.
>
> Le 10 mars 2014 à 12:36, mike cook a écrit :
>
> >
> > Le 10 mars 2014 à 11:51, Amit Dor-Shifer a écrit :
> >
> >> /usr/sbin/openntpd -f ~/test_ntpd/ntp.conf
> >
> > I was using a FreeBSD 8.2 ntp 4.2.6p3 server. I don't have experience
> with openntp, but I thought the executable was also called ntpd. Maybe the
> openntpd is a wrapper. Also if you did a copy/paste from the mail, you may
> have picked up ctrl characters that are not recognized.
> > _______________________________________________
> > questions mailing list
> > questions at lists.ntp.org
> > http://lists.ntp.org/listinfo/questions
>


More information about the questions mailing list