[ntp:questions] enable pps not working from ntp.conf

William Unruh unruh at invalid.ca
Fri Jan 10 06:58:09 UTC 2014


Below is what it looks like to me. Assuming that the > are at the
beginning of the lines.


On 2014-01-09, Dennis Golden <dgolden at golden-consulting.invalid> wrote:
> On Thu, 09 Jan 2014 16:50:30 +0000, Dennis Golden wrote:
>
>> On Wed, 08 Jan 2014 22:50:21 +0000, William Unruh wrote:
>> 
>>> On 2014-01-08, Harlan Stenn <stenn at ntp.org> wrote:
>>>> Brian Inglis writes:
>>>>> On 2014-01-07 09:55, Dennis Golden wrote:
>>>>> > I have searched to find an answer to this problem with no success.
>>>>> > I am using the oncore clock (127.127.30.0) and have included
>>>>> > "enable pps" in ntp.conf, but I get the following in /var/log
>>>>> > messages:
>>>>> >
>>>>> > line 59 column 8 syntax error, unexpected T_String syntax error in
>>>>> > /etc/ntp.conf line 59, column 8
>>>>> >
>>>>> > I can use ntpdc to set this option with no problem.
>>>>> >
>>>>> > Any ideas?
>>>>> 
>>>>> enable pps is documented in the miscopt.html command summary lines:
>>>>> 
>>>>> enable [ auth | bclient | calibrate | kernel | monitor | ntp | pps |
>>>>> stats] disable [ auth | bclient | calibrate | kernel | monitor | ntp
>>>>> |
>>>>> pps | stats ]
>>>>
>>>> Not as of 4.2.7p410.
>>> 
>>> But it is as of 4.2.6p5 even though it does not work there.
>>> 
>>> Ie, sometimes the documentation and the progam are not quite in sync.
>>> (not entirely surprizing).
>>> In this case it looks like someone tried to take it out of the docs,
>>> but missed the "|pps|" in the line giving the options of the
>>> enable/disable commands. They did remove the explanation of what this
>>> option means.
>> 
>> But if I use ntpdc:
>> ntpdc> enable pps done!
>> ntpdc> quit
>> 
><snip>
>
> Sorry for the lack of formating
>
> tail /var/log/ntp:
>  9 Jan 04:26:17 ntpd[19607]: GPS_ONCORE(0) 87b4 84 reachable
>  9 Jan 09:07:46 ntpd[19607]: GPS_ONCORE(0) 87c3 83 unreachable
>  9 Jan 09:07:48 ntpd[19607]: 96.226.242.9 961a 8a sys_peer
>  9 Jan 09:08:47 ntpd[19607]: GPS_ONCORE(0) 80d4 84 reachable
>  9 Jan 09:08:47 ntpd[19607]: GPS_ONCORE(0) 90ea 8a sys_peer
>  9 Jan 09:13:54 ntpd[19607]: GPS_ONCORE(0) 87f3 83 unreachable
>  9 Jan 09:18:56 ntpd[19607]: 96.226.242.9 941a 8a sys_peer
>  9 Jan 09:22:26 ntpd[19607]: GPS_ONCORE(0) 8713 83 unreachable
>  9 Jan 09:22:41 ntpd[19607]: GPS_ONCORE(0) 8724 84 reachable
>  9 Jan 10:38:59 ntpd[19607]: 0.0.0.0 041d 0d kern PPS enabled
>
> And this with tail /var/lib/ntp/tmp/protostats:
>  56666 37577.185 GPS_ONCORE(0) 87b4 84 reachable
>  56666 54466.517 GPS_ONCORE(0) 87c3 83 unreachable
>  56666 54468.518 96.226.242.9 961a 8a sys_peer
>  56666 54527.186 GPS_ONCORE(0) 80d4 84 reachable
>  56666 54527.186 GPS_ONCORE(0) 90ea 8a sys_peer
>  56666 54834.517 GPS_ONCORE(0) 87f3 83 unreachable
>  56666 55136.530 96.226.242.9 941a 8a sys_peer
>  56666 55346.517 GPS_ONCORE(0) 8713 83 unreachable
>  56666 55361.190 GPS_ONCORE(0) 8724 84 reachable
>  56666 59939.189 0.0.0.0 041d 0d kern PPS enabled
>



More information about the questions mailing list