[ntp:questions] enable pps not working from ntp.conf
William Unruh
unruh at invalid.ca
Wed Jan 8 05:44:30 UTC 2014
On 2014-01-08, Dennis Golden <dgolden at golden-consulting.invalid> wrote:
> On Wed, 08 Jan 2014 01:46:55 +0000, William Unruh wrote:
>
>> On 2014-01-07, Dennis Golden <dgolden at golden-consulting.invalid> 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.
>>
>> So why don't you cut and paste your ntp.conf file here, or at least cut
>> and past line 59. Whe really cannot guess what they say.
>>
>>
>
><snip>
>
> line 59 was in quotes in the initial post
I did not realise that that was actually the line. I have never seen
enable pps
as a command.
I had a look at the documentation for ntp 4.2.6 and unfortunately while
it claims that that command exists, it does not describe it at all.
In another place it says you enable kernel pps with a fudge for whatever
pps refclock driver you use.
Sorry, I cannot be of more help. Others probably will be.
>
> Here it is:
>==Start==
> ################################################################################
> ## /etc/ntp.conf
> ##
> ## Sample NTP configuration file.
> ## See package 'xntp-doc' for documentation, Mini-HOWTO and FAQ.
> ## Copyright (c) 1998 S.u.S.E. GmbH Fuerth, Germany.
> ##
> ## Author: Michael Andres, <ma at suse.de>
> ##
> ################################################################################
>
> ##
> ## Radio and modem clocks by convention have addresses in the
> ## form 127.127.t.u, where t is the clock type and u is a unit
> ## number in the range 0-3.
> ##
> ## Most of these clocks require support in the form of a
> ## serial port or special bus peripheral. The particular
> ## device is normally specified by adding a soft link
> ## /dev/device-u to the particular hardware device involved,
> ## where u correspond to the unit number above.
> ##
> ## Generic DCF77 clock on serial port (Conrad DCF77)
> ## Address: 127.127.8.u
> ## Serial Port: /dev/refclock-u
> ##
> ## (create soft link /dev/refclock-0 to the particular ttyS?)
> ##
> # server 127.127.8.0 mode 5 prefer
> server 127.127.30.0
> #server 127.127.20.0 mode 2 prefer
> #fudge 127.127.20.0 flag1 1 flag2 0 flag3 1 time1 0.0
> #fudge 127.127.20.0 time2 0.22
>
> ##
> ## Undisciplined Local Clock. This is a fake driver intended for backup
> ## and when no outside source of synchronized time is available.
> ##
> server 127.127.1.0 # local clock (LCL)
> fudge 127.127.1.0 stratum 10 # LCL is unsynchronized
>
> ##
> ## Outside source of synchronized time
> ##
> peer 192.168.1.2 # Local network peer
>
> # External puplic access servers
> # server time.nist.gov # NCAR Boulder, Colorado
> server ntppub.tamu.edu # Texas A&M
> server nist.time.nosc.us # NIST Carrollton, Texas
> server navobs1.wustl.edu # Washington University, St.
> Louis, Missouri
> server ntp-1.ece.cmu.edu # Carnegie Mellon Electrical and
> Computer Engineering
> server ntp.tmc.edu # Baylor College of Medicine,
> Houston, TX
>
> ##
> ## Miscellaneous stuff
> ##
>
> enable pps
>
> driftfile /var/lib/ntp/drift/ntp.drift # path for drift file
>
> logfile /var/log/ntp # alternate log file
> # logconfig =syncstatus + sysevents
> logconfig =all
>
> statsdir /var/lib/ntp/tmp/ # directory for statistics files
> filegen peerstats file peerstats type day enable
> filegen loopstats file loopstats type day enable
> filegen clockstats file clockstats type day enable
>
> #
> # Authentication stuff
> #
>
> keys /etc/ntp.keys # path for keys file
> trustedkey 1 2 3 4 5 6 14 15 # define trusted keys
> requestkey 15 # key (7) for accessing server variables
> controlkey 15 # key (6) for accessing server variables
>
> #
> # Access Control
> #
>
> restrict default noquery nomodify notrap nopeer # IPv4
> restrict -6 default noquery nomodify notrap nopeer # IPv6
> restrict 192.168.1.0 # allow local domain
> restrict 127.0.0.1 # allow local host
>==end==
>
> I'm using 4.2.6p5.
>
> TIA,
>
> Dennis
More information about the questions
mailing list