Re: [ntp:questions] enable pps not working from ntp.conf
On Wed, 08 Jan 2014 17:46:26 +, David Taylor wrote: On 07/01/2014 16: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? TIA, Dennis Likely it's not related, but I was just playing with a new system (Raspberry Pi) and I had told NTP that a leap file was present, when I hadn't yet created it. This is copying the ntp.conf from one system to another. NTP worked, except the PPS didn't work when the system booted. Restart NTP and the PPS worked perfectly. I didn't put two and two together until I added the leap-second file, and NTP started correctly at boot time. The reference was right at the end of ntp.conf So this suggests that NTP can parse so far down ntp.conf and get those things working, but when it finds an error, it stops other things working. So maybe your error was causing a similar effect. This with ntp 4.2.7p410 on Raspberry Pi with a derivative of Debian Wheezy, I believe. Thanks to all for your responses. I still don't understand why enable pps using ntpdc appears to work and shows up in the logs, but I'm not sure it does anything from looking at the source (ntp-4.2.6p5). Since consensus says that it's not supported, I'm not going to worry about it. Correlating the information from other servers, it appears that pps is working. Regards, Dennis -- Dennis Golden Golden Consulting Services Change 'invalid' to 'com' to reply by email. ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] enable pps not working from ntp.conf
On Wed, 08 Jan 2014 22:50:21 +, William Unruh wrote: On 2014-01-08, Harlan Stenn st...@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 I see this with 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: 5 37577.185 GPS_ONCORE(0) 87b4 84 reachable 5 54466.517 GPS_ONCORE(0) 87c3 83 unreachable 5 54468.518 96.226.242.9 961a 8a sys_peer 5 54527.186 GPS_ONCORE(0) 80d4 84 reachable 5 54527.186 GPS_ONCORE(0) 90ea 8a sys_peer 5 54834.517 GPS_ONCORE(0) 87f3 83 unreachable 5 55136.530 96.226.242.9 941a 8a sys_peer 5 55346.517 GPS_ONCORE(0) 8713 83 unreachable 5 55361.190 GPS_ONCORE(0) 8724 84 reachable 5 59939.189 0.0.0.0 041d 0d kern PPS enabled Regards, Dennis -- Dennis Golden Golden Consulting Services Change 'invalid' to 'com' to reply by email. ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] enable pps not working from ntp.conf
On Thu, 09 Jan 2014 16:50:30 +, Dennis Golden wrote: On Wed, 08 Jan 2014 22:50:21 +, William Unruh wrote: On 2014-01-08, Harlan Stenn st...@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: 5 37577.185 GPS_ONCORE(0) 87b4 84 reachable 5 54466.517 GPS_ONCORE(0) 87c3 83 unreachable 5 54468.518 96.226.242.9 961a 8a sys_peer 5 54527.186 GPS_ONCORE(0) 80d4 84 reachable 5 54527.186 GPS_ONCORE(0) 90ea 8a sys_peer 5 54834.517 GPS_ONCORE(0) 87f3 83 unreachable 5 55136.530 96.226.242.9 941a 8a sys_peer 5 55346.517 GPS_ONCORE(0) 8713 83 unreachable 5 55361.190 GPS_ONCORE(0) 8724 84 reachable 5 59939.189 0.0.0.0 041d 0d kern PPS enabled -- Dennis Golden Golden Consulting Services Change 'invalid' to 'com' to reply by email. ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
Re: [ntp:questions] enable pps not working from ntp.conf
On Thu, 09 Jan 2014 17:05:04 +, Dennis Golden wrote: On Thu, 09 Jan 2014 16:50:30 +, Dennis Golden wrote: On Wed, 08 Jan 2014 22:50:21 +, William Unruh wrote: On 2014-01-08, Harlan Stenn st...@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 I give up. I see some of you able to post nicely formatted information. What news reader are you using. I'm using pan2. Dennis -- Dennis Golden Golden Consulting Services Change 'invalid' to 'com' to reply by email. ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions
[ntp:questions] enable pps not working from ntp.conf
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? TIA, Dennis -- Dennis Golden Golden Consulting Services Change 'invalid' to 'com' to reply by email. ___ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions