[ntp:questions] How to insert a leap second with ntpq

ZHOU.Jun dimotion.zhou at gmail.com
Wed Jun 20 04:30:37 UTC 2012


Hello,

I have a question about leap indicator.

I need to do some tests with ntpd and I want to have NTP packets set Leap indicator in order to insert a leap second to a Linux server running ntp client.

How can I configure the server to generate a packet with Leap indicator 0x01?

Thanks in advance.
I got the syntax of ntpq is as follows
Syntax

ntpq [ -i ] [ -n ] [ -p ] [ -c SubCommand ] [ Host ... ]

Leap Indicator (LI)

     Code warning of impending leap-second to be inserted at the end of
     the last day of the current month. Bits are coded as follows:

00 no warning
01 +1 second (following minute has 61 seconds)
        10      -1 second (following minute has 59 seconds)
        11      reserved for future use



More information about the questions mailing list