[ntp:questions] basic questions about the leapsecond

ailtonsr at gmail.com ailtonsr at gmail.com
Fri Dec 19 18:46:07 UTC 2008


On 19 dez, 09:43, Rob van der Putten <r... at sput.nl> wrote:
> Hi there
>
> David L. Mills wrote:
> > I am told the file is on all NTP servers operated by NIST. See the list
> > of public servers at NIST orwww.ntp.org.
>
> ftp://ntp-a.boulder.nist.gov/pub/leap-seconds.3427142400works
> Thanks!
>
> Regards,
> Rob

Hi there,

I used the below tutorial to set the leapseconds, but, the
"leap_armed" is not showed when the command "ntpq"  is executed.
I´m using freebsd 7.0 and the ntp version "ntp-dev-4.2.5p150". :

What can be wrong ?

Thank´s

############ NTPQ #################
a# ntpq -c "rv"
status=01fd leap_none, sync_atomic, 15 events, event_13,
version="ntpd 4.2.5p150 at 1.1795-o Fri Dec 19 16:47:03 UTC 2008 (1)",
processor="i386", system="FreeBSD/7.0-RELEASE-p6", leap=00, stratum=1,
precision=-19, rootdelay=0.000, rootdisp=0.239, refid=PPS,
reftime=ccf66913.a1585ecd  Fri, Dec 19 2008 16:40:19.630,
clock=ccf66914.66d46964  Fri, Dec 19 2008 16:40:20.401, peer=49506,
tc=4, mintc=2, offset=0.002, frequency=40.487, sys_jitter=0.003,
clk_jitter=0.000, clk_wander=0.000, tai=33, leapsec=200901010000,
expire=200906280000
#################################


################## LOG #######################
# /usr/local/bin/ntpd -d -g -c /etc/ntp.conf -p /var/run/ntpd.pid -f /
var/db/ntpd.drift
ntpd 4.2.5p150 at 1.1795-o Fri Dec 19 16:47:03 UTC 2008 (1)
addto_syslog: proto: precision = 1.396 usec
addto_syslog: ntp_io: estimated max descriptors: 11095, initial socket
boundary: 20
addto_syslog: Listening on interface #0 wildcard, 0.0.0.0#123 Disabled
addto_syslog: Listening on interface #1 wildcard, ::#123 Disabled
addto_syslog: Listening on interface #2 bce1, 200.160.7.186#123
Enabled
restrict: addr c8a007ba mask ffffffff mflags 00003000 flags 00000001
addto_syslog: Listening on interface #3 lo0, fe80::1#123 Enabled
addto_syslog: Listening on interface #4 lo0, ::1#123 Enabled
addto_syslog: Listening on interface #5 lo0, 127.0.0.1#123 Enabled
restrict: addr 7f000001 mask ffffffff mflags 00003000 flags 00000001
addto_syslog: Listening on routing socket on fd #26 for interface
updates
loop_config: item 1 freq 0.000000
event at 0 0.0.0.0 c010 0d system event: kern kernel time sync enabled
restrict: addr 00000000 mask 00000000 mflags 00000000 flags 00000192
restrict: addr c8a00300 mask ffffff00 mflags 00000000 flags 000001b0
restrict: addr c8a00500 mask ffffff00 mflags 00000000 flags 000001b0
restrict: addr c8a00100 mask ffffff00 mflags 00000000 flags 000001b0
restrict: addr c8a00780 mask ffffff80 mflags 00000000 flags 00000190
restrict: addr c8ba7dc8 mask ffffffff mflags 00000000 flags 000001b0
restrict: addr c8a00001 mask ffffffc0 mflags 00000000 flags 000001b0
restrict: addr c8bd2801 mask ffffffc0 mflags 00000000 flags 000001b0
restrict: addr c8c0e801 mask ffffffc0 mflags 00000000 flags 000001b0
restrict: addr c814ba5e mask ffffffff mflags 00000000 flags 000001b0
restrict: addr c814ba4b mask ffffffff mflags 00000000 flags 000001b0
restrict: addr c8a007a5 mask ffffffff mflags 00000000 flags 000001b0
restrict: addr c8137778 mask ffffffff mflags 00000000 flags 000001b0
restrict: addr 8f6bff0f mask ffffffff mflags 00000000 flags 000001b0
restrict: addr c02bf412 mask ffffffff mflags 00000000 flags 000001b0
restrict: addr c00529d1 mask ffffffff mflags 00000000 flags 000001b0
restrict: addr c814ba4b mask ffffffff mflags 00000000 flags 000001b0
addto_syslog: leap epoch 3439756800 expire 3455136000 TAI offset 34
from /etc/ntp.leap
addto_syslog: set_peerdstadr(127.127.6.0): change interface from
<null> to 127.0.0.1
key_expire: at 0 associd 28259
peer_clear: at 0 next 1 associd 28259 refid INIT
audio_config_read: reading </etc/ntp.audio0>
idev </dev/audio0.0>
cdev </dev/mixer0>
agc <line> 12
monitor <vol> 0
audio_init: </dev/audio0.0> bufsiz 320
audio_init: orig: play_size 128, rec_size 128
audio_init: want: play_size 320, rec_size 320
audio_init: set:  play_size 128, rec_size 128
audio_init: play_rate 8000, rec_rate 8000, play_format 0x1, rec_format
0x1
audio_show: ctl_fd 6
event at 0 IRIG_AUDIO(0) 8011 81 peer event: mobilize assoc 28259
newpeer: 127.0.0.1->127.127.6.0 mode 3 vers 4 poll 4 4 flags 0xa9 0x1
ttl 0 key 00000000
addto_syslog: set_peerdstadr(127.127.22.0): change interface from
<null> to 127.0.0.1

################## TUTORIAL ##################
1) Download to /etc the NIST leapseconds file leap-seconds.3427142400
   (or the latest) from ftp://time.nist.gov/pub/ by passive ftp. Then
   make a symlink from the generic name ntp.leap to the file:

| # cd /etc/
| # wget --passive-ftp ftp://time.nist.gov/pub/leap-seconds.3427142400
| # ln -s leap-seconds.3427142400 ntp.leap


2) Add to /etc/ntp.conf this line:

| leapfile /etc/ntp.leap


3) Restart the NTP daemon. After it is synced, you can verify all
worked
   well using the ntpq readvar command, by checking the current TAI
   offset, looking at the date of the (future) leap event, and at the
   validity limit of the leapfile:

| $ ntpq -c "rv 0 leap,tai,leapsec,expire"
| associd=0 status=0259 leap_none, sync_lf_radio, 5 events,
leap_armed,
| leap=00, tai=33, leapsec=200901010000, expire=200906280000
######################################




More information about the questions mailing list