NTPd

Christopher Wagner chrisw at pacaids.com
Mon Feb 11 05:05:48 PST 2002


I, for the life of me, can't get ntpd or ntpdate to sync with a remote
server..  I ran NTPd with a super high debugging level and can't make sense
of the output.  Any ideas?

$ ntpd -A -L -dddddddd -c /etc/ntp.conf -q
adding new filegen
adding new filegen
adding new filegen
adding new filegen
create_sockets(123)
interface <lo> OK
interface <eth0> OK
interface <eth0:0> OK
bind() fd 4, family 2, port 123, addr 0.0.0.0, flags=1
flags for fd 4: 04002
bind() fd 5, family 2, port 123, addr 127.0.0.1, flags=0
flags for fd 5: 04002
bind() fd 6, family 2, port 123, addr 63.113.184.226, flags=1
flags for fd 6: 04002
bind() fd 7, family 2, port 123, addr 63.113.184.227, flags=1
flags for fd 7: 04002
create_sockets: ninterfaces=4
interface 0:  fd=4,  bfd=0,  name=wildcard,  flags=0x1
              sin=0.0.0.0  bcast=0.0.0.0,  mask=255.255.255.255
interface 1:  fd=5,  bfd=0,  name=lo,  flags=0x4
              sin=127.0.0.1  mask=255.0.0.0
interface 2:  fd=6,  bfd=0,  name=eth0,  flags=0x1
              sin=63.113.184.226  bcast=63.113.184.255,
mask=255.255.255.224
interface 3:  fd=7,  bfd=0,  name=eth0:0,  flags=0x1
              sin=63.113.184.227  bcast=63.113.184.255,
mask=255.255.255.224
init_io: maxactivefd 7
getnetnum 132.239.254.49 step 0 buf 132 temp 132 netnum 132
getnetnum 132.239.254.49 step 1 buf 239 temp 239 netnum 34031
getnetnum 132.239.254.49 step 2 buf 254 temp 254 netnum 8712190
getnetnum 132.239.254.49 step 3 buf 49 temp 49 netnum 2230320689
getnetnum given 132.239.254.49, got 132.239.254.49 (84effe31)
peer_clear: at 0 assoc ID 0
newpeer: 63.113.184.226->132.239.254.49 mode 3 vers 4 poll 6 10 flags 81 1
ttl 0 key 00000000
getnetnum 63.192.96.2 step 0 buf 63 temp 63 netnum 63
getnetnum 63.192.96.2 step 1 buf 192 temp 192 netnum 16320
getnetnum 63.192.96.2 step 2 buf 96 temp 96 netnum 4178016
getnetnum 63.192.96.2 step 3 buf 2 temp 2 netnum 1069572098
getnetnum given 63.192.96.2, got 63.192.96.2 (3fc06002)
peer_clear: at 0 assoc ID 0
newpeer: 63.113.184.226->63.192.96.2 mode 3 vers 4 poll 6 10 flags 81 1 ttl
0 key 00000000
getnetnum 216.27.190.202 step 0 buf 216 temp 216 netnum 216
getnetnum 216.27.190.202 step 1 buf 27 temp 27 netnum 55323
getnetnum 216.27.190.202 step 2 buf 190 temp 190 netnum 14162878
getnetnum 216.27.190.202 step 3 buf 202 temp 202 netnum 3625696970
getnetnum given 216.27.190.202, got 216.27.190.202 (d81bbeca)
peer_clear: at 0 assoc ID 0
newpeer: 63.113.184.226->216.27.190.202 mode 3 vers 4 poll 6 10 flags 1 1
ttl 0 key 00000000
authtrust: keyid 0000ffff life 1
report_event: system event 'event_restart' (0x01) status 'sync_alarm,
sync_unspec, 1 event, event_unspec' (0xc010)
getrecvbufs called, no action here
Feb 11 12:54:06 sparky ntpd[1207]: ntpd 4.1.0 Wed Sep  5 06:54:30 EDT 2001
(1)
Feb 11 12:54:06 sparky ntpd[1207]: precision = 34 usec
Feb 11 12:54:06 sparky ntpd[1207]: kernel time discipline status 0040
Feb 11 12:54:06 sparky ntpd[1207]: frequency initialized 0.000 from
/etc/ntp/drift
getrecvbufs called, no action here
poll_update: at 1 132.239.254.49 flags 0081 poll 6 burst 0 last 1 next 67
        MCAST   *****sendpkt(fd=6 dst=132.239.254.49, src=63.113.184.226,
ttl=0, len=48)
transmit: at 1 63.113.184.226->132.239.254.49 mode 3
auth_agekeys: at 1 keys 1 expired 0
getrecvbufs called, no action here
getrecvbufs called, no action here
getrecvbufs called, no action here
<snip>
poll_update: at 6 63.192.96.2 flags 0081 poll 6 burst 0 last 6 next 72
        MCAST   *****sendpkt(fd=6 dst=63.192.96.2, src=63.113.184.226,
ttl=0, len=48)
transmit: at 6 63.113.184.226->63.192.96.2 mode 3
getrecvbufs called, no action here
getrecvbufs called, no action here
getrecvbufs called, no action here
<snip>
poll_update: at 10 216.27.190.202 flags 0001 poll 6 burst 0 last 10 next 73
        MCAST   *****sendpkt(fd=6 dst=216.27.190.202, src=63.113.184.226,
ttl=0, len=48)
transmit: at 10 63.113.184.226->216.27.190.202 mode 3
getrecvbufs called, no action here
getrecvbufs called, no action here
getrecvbufs called, no action here
<snip>

- Christopher Wagner
chrisw at pacaids.com

Packaging Aids Corporation - Information Systems
P.O. Box 9144
San Rafael, CA 94912-9144
http://www.pacaids.com/
(415) 454-4868 x116




More information about the talk mailing list