[ntp:questions] local pcf clock - howto?

Christian Hernmarck news-NO.SPAM at lists.hernmarck.ch
Sun Jan 28 17:04:41 UTC 2007


Hello

I've one of theese DCF77 Clocks on an old printer cable (LPT).

Now I want ntpd to look at this clock too. I'm a little confused about
the documentation. the program "pcf" runs well on my suse linux
(10.0). Do I need to run "pcf" in order to force ntpd to use this
device? I don't think so.

When I tried to start ntp before - with this line in ntp.conf
 server 127.127.35.0
and with a symlink /dev/pcfclock0 -> /dev/lp0
then theese messages come up in ntp.log:

28 Jan 17:15:08 ntpd[5941]: clock PCF(0) event 'clk_fault' (0x03)
28 Jan 17:18:20 ntpd[5941]: synchronized to LOCAL(0), stratum 10
28 Jan 17:18:20 ntpd[5941]: kernel time sync disabled 0041
28 Jan 17:19:23 ntpd[5941]: kernel time sync enabled 0001

Thanx for any hint.
Christian

Here the output of "ntpd -d":
***
ntpd 4.2.0a at 1.1191-r Fri Sep  9 17:17:17 UTC 2005 (1)
addto_syslog: ntpd 4.2.0a at 1.1191-r Fri Sep  9 17:17:17 UTC 2005 (1)
addto_syslog: precision = 1.000 usec
create_sockets(123)
bind() fd 6, family 2, port 123, addr 0.0.0.0, flags=8
addto_syslog: Listening on interface wildcard, 0.0.0.0#123
bind() fd 8, family 10, port 123, addr ::, flags=0
addto_syslog: Listening on interface wildcard, ::#123
bind() fd 9, family 2, port 123, addr 127.0.0.1, flags=0
addto_syslog: Listening on interface lo, 127.0.0.1#123
bind() fd 10, family 2, port 123, addr 192.168.5.5, flags=8
addto_syslog: Listening on interface eth1, 192.168.5.5#123
init_io: maxactivefd 10
local_clock: time 0 clock 0.000000 offset 0.000000 freq 0.000 state 0
key_expire: at 0
peer_clear: at 0 assoc ID 30684 refid INIT
starting PCF with device /dev/pcfclock0
newpeer: 127.0.0.1->127.127.35.0 mode 3 vers 4 poll 6 10 flags 0x21
0x1 ttl 0 key 00000000
key_expire: at 0
peer_clear: at 0 assoc ID 30685 refid INIT
newpeer: 127.0.0.1->127.127.1.0 mode 3 vers 4 poll 6 10 flags 0x21 0x1
ttl 0 key 00000000
addto_syslog: frequency initialized -26.376 PPM
from /var/lib/ntp/drift/ntp.drift
local_clock: time 0 clock 0.000000 offset 0.000000 freq -26.376 state
1
report_event: system event 'event_restart' (0x01) status 'sync_alarm,
sync_unspec, 1 event, event_unspec' (0xc010)
refclock_transmit: at 1 127.127.35.0
addto_syslog: clock PCF(0) event 'clk_fault' (0x03)

clock PCF(0) event 'clk_fault' (0x03)
auth_agekeys: at 1 keys 1 expired 0
timer: refresh ts 0
refclock_transmit: at 2 127.127.1.0
refclock_receive: at 2 127.127.1.0
peer LOCAL(0) event 'event_reach' (0x84) status 'unreach, conf, 1
event, event_reach' (0x8014)
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000001
clock_filter: n 1 off 0.000000 del 0.000000 dsp 7.937500 jit 0.000001,
age 2
addto_syslog: ntpd exiting on signal 2
***




More information about the questions mailing list