Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How soon does ntpd sync

Status
Not open for further replies.

butterfm

Programmer
Feb 15, 2002
132
GB
Hi

How soon does ntpd sync ?



I’ve just started the xntpd daemon on a Solaris 9 server as follows :-



[sudan]/ $ ./usr/lib/inet/xntpd -l /tmp/fred -d

tick = 10000, tickadj = 5, hz = 100

kernel vars: tickadj = 5, tick = 10000

adj_precision = 1, tvu_maxslew = 495, tsf_maxslew = 0.002070b9

create_sockets(123)

bind() fd 20, family 2, port 123, addr 00000000, flags=1

bind() fd 21, family 2, port 123, addr 7f000001, flags=0

bind() fd 22, family 2, port 123, addr 0a02415d, flags=1

init_io: maxactivefd 22

resolving dc-har-coda1.coda.com

report_event: system event 'event_restart' (0x01) status 'sync_alarm, sync_unspec, 1 event, event_unspec' (0xc010)

input_handler: fd=21 length 68 from 7f000001 127.0.0.1

peer_config: addr 10.2.65.216 mode 3 version 2 minpoll 6 maxpoll 10 flags 0 ttl 0 key 0

sendpkt(fd=21 127.0.0.1, 127.0.0.1, ttl=-1, 8)

sendpkt(fd=20 10.2.65.216, 0.0.0.0, ttl=-8, 48)

sendpkt(fd=20 10.2.65.216, 0.0.0.0, ttl=-8, 48)

sendpkt(fd=20 10.2.65.216, 0.0.0.0, ttl=-8, 48)

sendpkt(fd=20 10.2.65.216, 0.0.0.0, ttl=-8, 48)

sendpkt(fd=20 10.2.65.216, 0.0.0.0, ttl=-8, 48)

sendpkt(fd=20 10.2.65.216, 0.0.0.0, ttl=-8, 48)

sendpkt(fd=20 10.2.65.216, 0.0.0.0, ttl=-8, 48)



However as yet the time on the server is still 15mins out and has not synced with the time server.



Here are the details in the log file :-



[sudan]/ $ more /tmp/fred

8 Jun 12:06:41 xntpd[1619]: logging to file /tmp/fred

8 Jun 12:06:41 xntpd[1619]: xntpd 3-5.93e Mon Sep 20 15:47:11 PDT 1999 (1)

8 Jun 12:06:41 xntpd[1619]: tickadj = 5, tick = 10000, tvu_maxslew = 495, est. hz = 100

8 Jun 12:06:41 xntpd[1619]: precision = 12 usec

8 Jun 12:06:41 xntpd[1619]: using kernel phase-lock loop 0041

8 Jun 12:06:41 xntpd[1619]: signal_no_reset: signal 18 had flags 20000



Any ideas how long this should take ?

 
This error can be caused by hostnames in ntp.conf not being resolvable. That is - your host is not configured for DNS perhaps? For each server in ntp.conf - be sure you can do a "getent hosts hostname" - Then restart -

HTH,
Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top