Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


get_leap_script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
get_leap_script [2015/06/30 06:08] – [Test] adminget_leap_script [2015/06/30 06:59] – [Test] admin
Line 3: Line 3:
  
  
-===== Script - Get leap second file ====+===== Script & test - Get leap second file  ====
 This script will download the latest leap second file. Run it weekly from cron. This script will download the latest leap second file. Run it weekly from cron.
  
Line 87: Line 87:
 expire=201512280000 expire=201512280000
 </code> </code>
-    * **leap** = warning indicator (0-3)+    * **leap** = warning indicator (0-3)<code>       LI       Value     Meaning 
 +      ------------------------------------------------------- 
 +      00               no warning 
 +      01               last minute has 61 seconds 
 +      10               last minute has 59 seconds) 
 +      11               alarm condition (clock not synchronized)</code>
     * **leapsec** = NTP seconds when the next leap second is/was inserted     * **leapsec** = NTP seconds when the next leap second is/was inserted
     * **expire** = NTP seconds when the NIST leapseconds file expires     * **expire** = NTP seconds when the NIST leapseconds file expires
     * **tai** = TAI-UTC offset (s)     * **tai** = TAI-UTC offset (s)
 +  * Test servers:<code>$ ntpq -c "lassoc" -c "mrv &1 &999 leap,srcadr,stratum"
 +
 +ind assid status  conf reach auth condition  last_event cnt
 +===========================================================
 +  1 15289  941a   yes   yes  none candidate    sys_peer  1
 +  2 15290  961a   yes   yes  none  sys.peer    sys_peer  1
 +  3 15291  9324   yes   yes  none   outlyer   reachable  2
 +  4 15292  9417   yes   yes  none candidate rate_exceeded  1
 +srcadr=ntp0.nl.uu.net, leap=00, stratum=1
 +
 +srcadr=ntp1.nl.uu.net, leap=00, stratum=1
 +
 +srcadr=ntp.ring.nlnog.net, leap=00, stratum=1
 +
 +srcadr=ntp2.polaire.nl, leap=01, stratum=1</code>
get_leap_script.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1