[ntp:questions] Linux : ntp-dev-4.2.7p84 : Local clock not getting synced.

Arul Kumar Chellappan arulkumar.chellappan at gmail.com
Thu Dec 30 05:39:22 UTC 2010


Hi All,

In Linux, with ntp-4.2.2p1, I could see that NTP synced to local clock fine
but it does not do multicast on all interfaces.  I could see this issue got
fixed in ntp-dev-4.2.7p84 as per

http://lists.ntp.org/pipermail/questions/2010-November/028111.html
I installed ntp-dev-4.2.7p84 from below link.

http://archive.ntp.org/ntp4/ntp-dev/ntp-dev-4.2.7p84.tar.gz

But could see that NTP will not sync to its local clock after updradation.
When I downgraded again back to ntp-4.2.2p1 local clock got synced fine.

Could you please let me know if I am missing anything or am I using a
incorrect version ?

I have attaced the uname, ntp config, logs from ntpd and ntpdc for both
versions.

Regards,
Arul Kumar C
-~-

P.S: Forgive for the lengthy mail.  I am not sure if this alias is
configured to accept attachment from mail. So pasting the logs in the body
of the mail.

######################################################################################
[root at linux-2] uname -a
Linux linux-2 2.6.9-42.ELsmp #1 SMP Sat Aug 12 09:39:11 CDT 2006 i686 i686
i386 GNU/Linux
[root at linux-2]
######################################################################################
cat /etc/ntp.conf

restrict 127.0.0.1
restrict -6 ::1
server  127.127.1.0 prefer minpoll 4 # local clock
fudge   127.127.1.0 stratum 10
server  ::1
fudge   ::1 stratum 10
driftfile /var/lib/ntp/drift
keys /etc/ntp/keys
######################################################################################
Drift NOT file present

[root at linux-2] cat /var/lib/ntp/drift
cat: /var/lib/ntp/drift: No such file or directory
[root at linux-2]
######################################################################################
Keys file is EMPTY

[root at linux-2] ls -l /etc/ntp/keys
-rw-r--r--  1 root root 0 Dec 29 07:51 /etc/ntp/keys
[root at linux-2]
[root at linux-2] cat /etc/ntp/keys
[root at linux-2]
######################################################################################
ntp-dev-4.2.7p84 log:
---------------------

[root at linux-2] pwd
/root/ntp-dev-4.2.7p84/bin/bin
[root at linux-2] ls
ntpd  ntpdate  ntpdc  ntp-keygen  ntpq  ntptime  ntptrace  ntp-wait  sntp
tickadj
[root at linux-2]
[root at linux-2] ./ntpd -d -d -d
ntpd 4.2.7p84 at 1.2293-o Wed Dec 29 06:21:13 UTC 2010 (3)
29 Dec 08:00:26 ntpd[22370]: set_process_priority: Leave priority alone:
priority_done is <2>
29 Dec 08:00:26 ntpd[22370]: proto: precision = 4.000 usec
Finished Parsing!!
create_sockets(123)
29 Dec 08:00:26 ntpd[22370]: ntp_io: estimated max descriptors: 1024,
initial socket boundary: 16
29 Dec 08:00:26 ntpd[22370]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
created interface #0: fd=16, bfd=-1, name=v4wildcard, flags=0x89, scope=0,
sin=0.0.0.0, bcast=0.0.0.0, mask=255.255.255.255, Disabled:
29 Dec 08:00:26 ntpd[22370]: Listen and drop on 1 v6wildcard :: UDP 123
created interface #1: fd=17, bfd=-1, name=v6wildcard, flags=0x81, scope=0,
sin=::, Disabled:
update_interfaces(123)
create_interface(127.0.0.1#123)
29 Dec 08:00:26 ntpd[22370]: Listen normally on 2 lo 127.0.0.1 UDP 123
restrict: op 1 addr 127.0.0.1 mask 255.255.255.255 mflags 00003000 flags
00000001
created interface #2: fd=18, bfd=-1, name=lo, flags=0x5, scope=0,
sin=127.0.0.1, mask=255.0.0.0, Enabled:
updating interface #2: fd=18, bfd=-1, name=lo, flags=0x5, scope=0,
sin=127.0.0.1, mask=255.0.0.0, Enabled: new - created
create_interface(1.1.1.2#123)
29 Dec 08:00:26 ntpd[22370]: Listen normally on 3 eth0 1.1.1.2 UDP 123
restrict: op 1 addr 1.1.1.2 mask 255.255.255.255 mflags 00003000 flags
00000001
created interface #3: fd=19, bfd=-1, name=eth0, flags=0x19, scope=0,
sin=1.1.1.2, bcast=1.1.255.255, mask=255.255.0.0, Enabled:
updating interface #3: fd=19, bfd=-1, name=eth0, flags=0x19, scope=0,
sin=1.1.1.2, bcast=1.1.255.255, mask=255.255.0.0, Enabled: new - created
create_interface(10.16.130.207#123)
29 Dec 08:00:26 ntpd[22370]: Listen normally on 4 eth1 10.16.130.207 UDP 123
restrict: op 1 addr 10.16.130.207 mask 255.255.255.255 mflags 00003000 flags
00000001
created interface #4: fd=20, bfd=-1, name=eth1, flags=0x19, scope=0,
sin=10.16.130.207, bcast=10.16.255.255, mask=255.255.0.0, Enabled:
updating interface #4: fd=20, bfd=-1, name=eth1, flags=0x19, scope=0,
sin=10.16.130.207, bcast=10.16.255.255, mask=255.255.0.0, Enabled: new -
created
create_interface(::1#123)
29 Dec 08:00:26 ntpd[22370]: Listen normally on 5 lo ::1 UDP 123
restrict: op 1 addr ::1 mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mflags
00003000 flags 00000001
created interface #5: fd=21, bfd=-1, name=lo, flags=0x5, scope=0, sin=::1,
Enabled:
updating interface #5: fd=21, bfd=-1, name=lo, flags=0x5, scope=0, sin=::1,
Enabled: new - created
create_interface(fe80::280:48ff:fe4f:dc86#123)
29 Dec 08:00:26 ntpd[22370]: Listen normally on 6 eth1
fe80::280:48ff:fe4f:dc86 UDP 123
restrict: op 1 addr fe80::280:48ff:fe4f:dc86 mask
ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mflags 00003000 flags 00000001
created interface #6: fd=22, bfd=-1, name=eth1, flags=0x11, scope=3,
sin=fe80::280:48ff:fe4f:dc86, Enabled:
updating interface #6: fd=22, bfd=-1, name=eth1, flags=0x11, scope=3,
sin=fe80::280:48ff:fe4f:dc86, Enabled: new - created
create_interface(fe80::20f:feff:fe27:d3d0#123)
29 Dec 08:00:26 ntpd[22370]: Listen normally on 7 eth0
fe80::20f:feff:fe27:d3d0 UDP 123
restrict: op 1 addr fe80::20f:feff:fe27:d3d0 mask
ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mflags 00003000 flags 00000001
created interface #7: fd=23, bfd=-1, name=eth0, flags=0x11, scope=2,
sin=fe80::20f:feff:fe27:d3d0, Enabled:
updating interface #7: fd=23, bfd=-1, name=eth0, flags=0x11, scope=2,
sin=fe80::20f:feff:fe27:d3d0, Enabled: new - created
create_sockets: Total interfaces = 8
io_open_sockets: maxactivefd 23
getnetnum given 127.0.0.1, got 127.0.0.1
restrict: op 1 addr 127.0.0.1 mask 255.255.255.255 mflags 00000000 flags
00000000
getnetnum given ::1, got ::1
restrict: op 1 addr ::1 mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mflags
00000000 flags 00000000
newpeer(127.127.1.0): using fd 18 and our addr 127.0.0.1
key_expire: at 0 associd 35327
peer_clear: at 0 next 1 associd 35327 refid INIT
event at 0 LOCAL(0) 8011 81 mobilize assoc 35327
newpeer: 127.0.0.1->127.127.1.0 mode 3 vers 4 poll 4 4 flags 0x29 0x1 ttl 0
key 00000000
newpeer(::1): using fd 21 and our addr ::1
key_expire: at 0 associd 35328
peer_clear: at 0 next 2 associd 35328 refid INIT
event at 0 ::1 8011 81 mobilize assoc 35328
newpeer: ::1->::1 mode 3 vers 4 poll 6 10 flags 0x1 0x1 ttl 0 key 00000000
getnetnum given 127.127.1.0, got 127.127.1.0
getnetnum given ::1, got ::1
29 Dec 08:00:26 ntpd[22370]: inappropriate address ::1 for the fudge
command, line ignored
loop_config: item 1 freq 0.000000
event at 0 0.0.0.0 c01d 0d kern kernel time sync enabled
event at 0 0.0.0.0 c012 02 freq_set kernel 0.000 PPM
local_clock: mu 0 state 1 poll 3 count 0
event at 0 0.0.0.0 c011 01 freq_not_set
event at 0 0.0.0.0 c016 06 restart
refclock_transmit: at 1 127.127.1.0
refclock_receive: at 1 127.127.1.0
event at 1 LOCAL(0) 8024 84 reachable
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 1 off 0.000000 del 0.000000 dsp 7.937502 jit 0.000004
poll_update: at 1 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next 16
auth_agekeys: at 1 keys 0 expired 0
timer: interface update
update_interfaces(123)
sendpkt(21, dst=::1, src=::1, ttl=0, len=48)
transmit: at 2 ::1->::1 mode 3 len 48
poll_update: at 2 ::1 poll 6 burst 0 retry 0 head 62 early 2 next 66
read_network_packet: fd=21 length 48 from ::1
receive: at 2 ::1<-::1 flags 5 restrict 001
refclock_transmit: at 17 127.127.1.0
refclock_receive: at 17 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 2 off 0.000000 del 0.000000 dsp 3.937563 jit 0.000004
poll_update: at 17 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next 16
refclock_transmit: at 33 127.127.1.0
refclock_receive: at 33 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 3 off 0.000000 del 0.000000 dsp 1.937623 jit 0.000004
poll_update: at 33 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next 16
refclock_transmit: at 49 127.127.1.0
refclock_receive: at 49 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 4 off 0.000000 del 0.000000 dsp 0.937669 jit 0.000004
poll_update: at 49 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next 16
refclock_transmit: at 65 127.127.1.0
refclock_receive: at 65 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 5 off 0.000000 del 0.000000 dsp 0.437699 jit 0.000004
poll_update: at 65 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next 16
sendpkt(21, dst=::1, src=::1, ttl=0, len=48)
transmit: at 68 ::1->::1 mode 3 len 48
poll_update: at 68 ::1 poll 6 burst 0 retry 0 head 62 early 2 next 66
read_network_packet: fd=21 length 48 from ::1
receive: at 68 ::1<-::1 flags 5 restrict 001
refclock_transmit: at 81 127.127.1.0
refclock_receive: at 81 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 6 off 0.000000 del 0.000000 dsp 0.187718 jit 0.000004
poll_update: at 81 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next 16
refclock_transmit: at 97 127.127.1.0
refclock_receive: at 97 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 7 off 0.000000 del 0.000000 dsp 0.062729 jit 0.000004
poll_update: at 97 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next 16
refclock_transmit: at 113 127.127.1.0
refclock_receive: at 113 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 8 off 0.000000 del 0.000000 dsp 0.000235 jit 0.000004
poll_update: at 113 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next
16
refclock_transmit: at 129 127.127.1.0
refclock_receive: at 129 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 8 off 0.000000 del 0.000000 dsp 0.000235 jit 0.000004
poll_update: at 129 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next
16
sendpkt(21, dst=::1, src=::1, ttl=0, len=48)
transmit: at 134 ::1->::1 mode 3 len 48
poll_update: at 134 ::1 poll 6 burst 0 retry 0 head 62 early 2 next 64
read_network_packet: fd=21 length 48 from ::1
receive: at 134 ::1<-::1 flags 5 restrict 001
refclock_transmit: at 145 127.127.1.0
refclock_receive: at 145 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 8 off 0.000000 del 0.000000 dsp 0.000235 jit 0.000004
poll_update: at 145 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next
16
refclock_transmit: at 161 127.127.1.0
refclock_receive: at 161 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 8 off 0.000000 del 0.000000 dsp 0.000235 jit 0.000004
poll_update: at 161 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next
16
refclock_transmit: at 177 127.127.1.0
refclock_receive: at 177 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 8 off 0.000000 del 0.000000 dsp 0.000235 jit 0.000004
poll_update: at 177 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next
16
refclock_transmit: at 193 127.127.1.0
refclock_receive: at 193 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 8 off 0.000000 del 0.000000 dsp 0.000235 jit 0.000004
poll_update: at 193 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next
16
sendpkt(21, dst=::1, src=::1, ttl=0, len=48)
transmit: at 198 ::1->::1 mode 3 len 48
poll_update: at 198 ::1 poll 6 burst 0 retry 0 head 62 early 2 next 64
read_network_packet: fd=21 length 48 from ::1
receive: at 198 ::1<-::1 flags 5 restrict 001
refclock_transmit: at 209 127.127.1.0
refclock_receive: at 209 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 8 off 0.000000 del 0.000000 dsp 0.000235 jit 0.000004
poll_update: at 209 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next
16
refclock_transmit: at 225 127.127.1.0
refclock_receive: at 225 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 8 off 0.000000 del 0.000000 dsp 0.000235 jit 0.000004
poll_update: at 225 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next
16
refclock_transmit: at 241 127.127.1.0
refclock_receive: at 241 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 8 off 0.000000 del 0.000000 dsp 0.000235 jit 0.000004
poll_update: at 241 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next
16
refclock_transmit: at 257 127.127.1.0
refclock_receive: at 257 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 8 off 0.000000 del 0.000000 dsp 0.000235 jit 0.000004
poll_update: at 257 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next
16
sendpkt(21, dst=::1, src=::1, ttl=0, len=48)
transmit: at 262 ::1->::1 mode 3 len 48
poll_update: at 262 ::1 poll 6 burst 0 retry 0 head 62 early 2 next 65
read_network_packet: fd=21 length 48 from ::1
receive: at 262 ::1<-::1 flags 5 restrict 001
refclock_transmit: at 273 127.127.1.0
refclock_receive: at 273 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 8 off 0.000000 del 0.000000 dsp 0.000235 jit 0.000004
poll_update: at 273 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next
16
refclock_transmit: at 289 127.127.1.0
refclock_receive: at 289 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 8 off 0.000000 del 0.000000 dsp 0.000235 jit 0.000004
poll_update: at 289 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next
16
timer: interface update
update_interfaces(123)
refclock_transmit: at 305 127.127.1.0
refclock_receive: at 305 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 8 off 0.000000 del 0.000000 dsp 0.000235 jit 0.000004
poll_update: at 305 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next
16
refclock_transmit: at 321 127.127.1.0
refclock_receive: at 321 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 8 off 0.000000 del 0.000000 dsp 0.000235 jit 0.000004
poll_update: at 321 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next
16
sendpkt(21, dst=::1, src=::1, ttl=0, len=48)
transmit: at 327 ::1->::1 mode 3 len 48
poll_update: at 327 ::1 poll 6 burst 0 retry 0 head 62 early 2 next 67
read_network_packet: fd=21 length 48 from ::1
receive: at 327 ::1<-::1 flags 5 restrict 001
refclock_transmit: at 337 127.127.1.0
refclock_receive: at 337 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 8 off 0.000000 del 0.000000 dsp 0.000235 jit 0.000004
poll_update: at 337 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next
16
refclock_transmit: at 353 127.127.1.0
refclock_receive: at 353 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 8 off 0.000000 del 0.000000 dsp 0.000235 jit 0.000004
poll_update: at 353 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next
16
refclock_transmit: at 369 127.127.1.0
refclock_receive: at 369 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 8 off 0.000000 del 0.000000 dsp 0.000235 jit 0.000004
poll_update: at 369 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next
16
refclock_transmit: at 385 127.127.1.0
refclock_receive: at 385 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 8 off 0.000000 del 0.000000 dsp 0.000235 jit 0.000004
poll_update: at 385 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next
16
sendpkt(21, dst=::1, src=::1, ttl=0, len=48)
transmit: at 394 ::1->::1 mode 3 len 48
poll_update: at 394 ::1 poll 6 burst 0 retry 0 head 62 early 2 next 64
read_network_packet: fd=21 length 48 from ::1
receive: at 394 ::1<-::1 flags 5 restrict 001
refclock_transmit: at 401 127.127.1.0
refclock_receive: at 401 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 8 off 0.000000 del 0.000000 dsp 0.000235 jit 0.000004
poll_update: at 401 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next
16
refclock_transmit: at 417 127.127.1.0
refclock_receive: at 417 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 8 off 0.000000 del 0.000000 dsp 0.000235 jit 0.000004
poll_update: at 417 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next
16
refclock_transmit: at 433 127.127.1.0
refclock_receive: at 433 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 8 off 0.000000 del 0.000000 dsp 0.000235 jit 0.000004
poll_update: at 433 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next
16
refclock_transmit: at 449 127.127.1.0
refclock_receive: at 449 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 8 off 0.000000 del 0.000000 dsp 0.000235 jit 0.000004
poll_update: at 449 127.127.1.0 poll 4 burst 0 retry 0 head 0 early 2 next
16
sendpkt(21, dst=::1, src=::1, ttl=0, len=48)
transmit: at 458 ::1->::1 mode 3 len 48
poll_update: at 458 ::1 poll 6 burst 0 retry 0 head 62 early 2 next 64
read_network_packet: fd=21 length 48 from ::1
receive: at 458 ::1<-::1 flags 5 restrict 001

[root at linux-2] ntpdc
ntpdc> peers
     remote           local      st poll reach  delay   offset    disp
=======================================================================
=ip6-localhost   ::1             16   64    0 0.00000  0.000000 3.99217
=LOCAL(0)        127.0.0.1       10   16  377 0.00000  0.000000 0.01534
ntpdc>
ntpdc> sysinfo
system peer:          0.0.0.0
system peer mode:     unspec
leap indicator:       11
stratum:              16
precision:            -18
root distance:        0.00000 s
root dispersion:      0.00848 s
reference ID:         [73.78.73.84]
reference time:       00000000.00000000  Thu, Feb  7 2036  6:28:16.000
system flags:         auth monitor ntp kernel stats
jitter:               0.000000 s
stability:            0.000 ppm
broadcastdelay:       0.000000 s
authdelay:            0.000000 s
ntpdc>
ntpdc> q
[root at linux-2]

######################################################################################
ntp-4.2.2p1 logs:
-----------------

[root at linux-2] ls
ntpd  ntpdate  ntpdc  ntp-keygen  ntpq  ntptime  ntptrace  ntp-wait  sntp
tickadj
[root at linux-2]
[root at linux-2] pwd
/root/ntp-4.2.2p1/bin/bin
[root at linux-2]
[root at linux-2] ./ntpd -d -d -d
ntpd 4.2.2p1 at 1.1570-o Wed Dec 29 05:56:08 UTC 2010 (2)
addto_syslog: set_process_priority: Leave priority alone: priority_done is
<2>
addto_syslog: precision = 4.000 usec
create_sockets(123)
address_okay: listen Virtual: 1, IF name: lo, Up Flag: 1
address_okay: listen Virtual: 1, IF name: eth1, Up Flag: 1
address_okay: listen Virtual: 1, IF name: eth0, Up Flag: 1
address_okay: listen Virtual: 1, IF name: lo, Up Flag: 1
address_okay: listen Virtual: 1, IF name: eth0, Up Flag: 1
address_okay: listen Virtual: 1, IF name: eth1, Up Flag: 1
addto_syslog: ntp_io: estimated max descriptors: 1024, initial socket
boundary: 16
bind() fd 16, family 2, port 123, addr 0.0.0.0, flags=9
Added addr 0.0.0.0 to list of addresses
flags for fd 16: 04002
addto_syslog: Listening on interface wildcard, 0.0.0.0#123 Disabled
bind() fd 17, family 10, port 123, addr ::, flags=1
Added addr :: to list of addresses
flags for fd 17: 04002
addto_syslog: Listening on interface wildcard, ::#123 Disabled
bind() fd 18, family 10, port 123, addr ::1, flags=1
Added addr ::1 to list of addresses
flags for fd 18: 04002
addto_syslog: Listening on interface lo, ::1#123 Enabled
bind() fd 19, family 10, port 123, addr fe80::280:48ff:fe4f:dc86, flags=1
Added addr fe80::280:48ff:fe4f:dc86 to list of addresses
flags for fd 19: 04002
addto_syslog: Listening on interface eth1, fe80::280:48ff:fe4f:dc86#123
Enabled
bind() fd 20, family 10, port 123, addr fe80::20f:feff:fe27:d3d0, flags=1
Added addr fe80::20f:feff:fe27:d3d0 to list of addresses
flags for fd 20: 04002
addto_syslog: Listening on interface eth0, fe80::20f:feff:fe27:d3d0#123
Enabled
bind() fd 21, family 2, port 123, addr 127.0.0.1, flags=5
Added addr 127.0.0.1 to list of addresses
flags for fd 21: 04002
addto_syslog: Listening on interface lo, 127.0.0.1#123 Enabled
bind() fd 22, family 2, port 123, addr 1.1.1.2, flags=25
Added addr 1.1.1.2 to list of addresses
flags for fd 22: 04002
addto_syslog: Listening on interface eth0, 1.1.1.2#123 Enabled
bind() fd 23, family 2, port 123, addr 10.16.130.207, flags=25
Added addr 10.16.130.207 to list of addresses
flags for fd 23: 04002
addto_syslog: Listening on interface eth1, 10.16.130.207#123 Enabled
create_sockets: Total interfaces = 8
interface 0:  fd=16,  bfd=-1,  name=wildcard,  flags=0x9,  scope=0
              sin=0.0.0.0  bcast=0.0.0.0,  mask=255.255.255.255 Disabled
interface 1:  fd=17,  bfd=-1,  name=wildcard,  flags=0x1,  scope=0
              sin=:: Disabled
interface 2:  fd=18,  bfd=-1,  name=lo,  flags=0x1,  scope=0
              sin=::1 Enabled
interface 3:  fd=19,  bfd=-1,  name=eth1,  flags=0x1,  scope=3
              sin=fe80::280:48ff:fe4f:dc86 Enabled
interface 4:  fd=20,  bfd=-1,  name=eth0,  flags=0x1,  scope=2
              sin=fe80::20f:feff:fe27:d3d0 Enabled
interface 5:  fd=21,  bfd=-1,  name=lo,  flags=0x5,  scope=0
              sin=127.0.0.1,  mask=255.0.0.0 Enabled
interface 6:  fd=22,  bfd=-1,  name=eth0,  flags=0x19,  scope=0
              sin=1.1.1.2  bcast=1.1.255.255,  mask=255.255.0.0 Enabled
interface 7:  fd=23,  bfd=-1,  name=eth1,  flags=0x19,  scope=0
              sin=10.16.130.207  bcast=10.16.255.255,  mask=255.255.0.0
Enabled
init_io: maxactivefd 23
local_clock: time 0 base 0.000000 offset 0.000000 freq 0.000 state 0
getnetnum given 127.0.0.1, got 127.0.0.1
getnetnum given ::1, got ::1
getnetnum given 127.127.1.0, got 127.127.1.0
newpeer: cast flags: 0x1 for address: 127.127.1.0
newpeer: using fd 21 and our addr 127.0.0.1
key_expire: at 0
peer_clear: at 0 next 1 assoc ID 60686 refid INIT
newpeer: 127.0.0.1->127.127.1.0 mode 3 vers 4 poll 4 10 flags 0x10a1 0x1 ttl
0 key 00000000
getnetnum given 127.127.1.0, got 127.127.1.0
getnetnum given ::1, got ::1
newpeer: cast flags: 0x1 for address: ::1
Finding interface for addr ::1 in list of addresses
Found interface index 2 for address ::1
newpeer: using fd 18 and our addr ::1
key_expire: at 0
peer_clear: at 0 next 2 assoc ID 60687 refid INIT
newpeer: ::1->::1 mode 3 vers 4 poll 6 10 flags 0x1 0x1 ttl 0 key 00000000
getnetnum given ::1, got ::1
addto_syslog: ::1 is inappropriate address for the fudge command, line
ignored
authtrust: keyid 0000ffff life 1
report_event: system event 'event_restart' (0x01) status 'sync_alarm,
sync_unspec, 1 event, event_unspec' (0xc010)
refclock_transmit: at 1 127.127.1.0
refclock_receive: at 1 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.000004
clock_filter: n 1 off 0.000000 del 0.000000 dsp 7.937502 jit 0.000004, age 0
poll_update: at 1 127.127.1.0 flags 10a1 poll 4 burst 0 last 1 next 17
auth_agekeys: at 1 keys 1 expired 0
timer: refresh ts 0
sendpkt(fd=18 dst=::1, src=::1, ttl=0, len=48)
transmit: at 2 ::1->::1 mode 3
poll_update: at 2 ::1 flags 0001 poll 6 burst 0 last 2 next 65
input_handler: fd=18 length 48 from ::1
receive: at 2 ::1<-::1 flags 1 restrict 001
refclock_transmit: at 17 127.127.1.0
refclock_receive: at 17 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 2 off 0.000000 del 0.000000 dsp 3.937563 jit 0.000004, age 0
poll_update: at 17 127.127.1.0 flags 10a1 poll 4 burst 0 last 17 next 34
refclock_transmit: at 34 127.127.1.0
refclock_receive: at 34 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 3 off 0.000000 del 0.000000 dsp 1.937629 jit 0.000004, age 0
poll_update: at 34 127.127.1.0 flags 10a1 poll 4 burst 0 last 34 next 49
refclock_transmit: at 49 127.127.1.0
refclock_receive: at 49 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 4 off 0.000000 del 0.000000 dsp 0.937665 jit 0.000004, age 0
select: endpoint -1 -0.950169
select: endpoint  0 0.000000
select: endpoint  1 0.950169
cluster: survivor 127.127.1.0 metric 10.950169
select: prefer offset 0.000000
report_event: system event 'event_peer/strat_chg' (0x04) status 'sync_alarm,
sync_local_proto, 2 events, event_restart' (0xc521)
addto_syslog: synchronized to LOCAL(0), stratum 10
poll_update: at 49 127.127.1.0 flags 10e1 poll 4 burst 0 last 49 next 64
clock_update: at 49 assoc 2
local_clock: assocID 60686 offset 0.000000000 freq 0.000 state 0
local_clock: time 49 base 0.000000 offset 0.000000 freq 0.000 state 3
poll_update: at 49 127.127.1.0 flags 10e1 poll 4 burst 0 last 49 next 66
auth_agekeys: at 60 keys 1 expired 0
sendpkt(fd=18 dst=::1, src=::1, ttl=0, len=48)
transmit: at 65 ::1->::1 mode 3
poll_update: at 65 ::1 flags 0001 poll 6 burst 0 last 65 next 131
input_handler: fd=18 length 48 from ::1
receive: at 65 ::1<-::1 flags 1 restrict 001
refclock_transmit: at 66 127.127.1.0
refclock_receive: at 66 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 5 off 0.000000 del 0.000000 dsp 0.437704 jit 0.000004, age 0
select: endpoint -1 -0.450208
select: endpoint  0 0.000000
select: endpoint  1 0.450208
cluster: survivor 127.127.1.0 metric 10.450208
select: prefer offset 0.000000
poll_update: at 66 127.127.1.0 flags 10e1 poll 4 burst 0 last 66 next 82
clock_update: at 66 assoc 2
local_clock: assocID 60686 offset 0.000000000 freq 0.000 state 3
poll_update: at 66 127.127.1.0 flags 10e1 poll 4 burst 0 last 66 next 81
refclock_transmit: at 81 127.127.1.0
refclock_receive: at 81 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 6 off 0.000000 del 0.000000 dsp 0.187713 jit 0.000004, age 0
select: endpoint -1 -0.200217
select: endpoint  0 0.000000
select: endpoint  1 0.200217
cluster: survivor 127.127.1.0 metric 10.200217
select: prefer offset 0.000000
poll_update: at 81 127.127.1.0 flags 10e1 poll 4 burst 0 last 81 next 98
clock_update: at 81 assoc 2
local_clock: assocID 60686 offset 0.000000000 freq 0.000 state 3
poll_update: at 81 127.127.1.0 flags 10e1 poll 4 burst 0 last 81 next 96
refclock_transmit: at 96 127.127.1.0
refclock_receive: at 96 127.127.1.0
refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000004
clock_filter: n 7 off 0.000000 del 0.000000 dsp 0.062719 jit 0.000004, age 0
select: endpoint -1 -0.075223
select: endpoint  0 0.000000
select: endpoint  1 0.075223
cluster: survivor 127.127.1.0 metric 10.075223
select: prefer offset 0.000000
poll_update: at 96 127.127.1.0 flags 10e1 poll 4 burst 0 last 96 next 111
clock_update: at 96 assoc 2
local_clock: assocID 60686 offset 0.000000000 freq 0.000 state 3
poll_update: at 96 127.127.1.0 flags 10e1 poll 4 burst 0 last 96 next 112

[root at linux-2] ./ntpdc
ntpdc> peers
     remote           local      st poll reach  delay   offset    disp
=======================================================================
*LOCAL(0)        127.0.0.1       10   16  377 0.00000  0.000000 0.01517
=ip6-localhost   ::1             16   64    0 0.00000  0.000000 3.99217
ntpdc>
ntpdc> sysinfo
system peer:          LOCAL(0)
system peer mode:     client
leap indicator:       11
stratum:              16
precision:            -18
root distance:        0.00000 s
root dispersion:      0.00485 s
reference ID:         [127.127.1.0]
reference time:       00000000.00000000  Thu, Feb  7 2036  6:28:16.000
system flags:         auth monitor ntp kernel stats
jitter:               0.000000 s
stability:            0.000 ppm
broadcastdelay:       0.003998 s
authdelay:            0.000000 s
ntpdc>
ntpdc> q
[root at linux-2]

######################################################################################

-- 

Regards,
Arul Kumar C
-~-



More information about the questions mailing list