adding a reference clock with ntpq

John Thurston john.thurston at alaska.gov
Thu Apr 20 17:58:01 UTC 2023


ntpsecd on the host in question was not compiled from source. It is 
running 1.2.0 as supplied in the 'stable' Debian package repository.

I _am_ able to use ntpq to add and remove network time servers, so I 
know my ntpq-authentication process is working (and the add/remove 
portion of ntpq is working). I'm able to 'unpeer' my pps by assid. I am 
just unable to find a way to add it back.

The line in my conf is:

     refclock pps minpoll 0 ppspath /dev/pps0 refid pps

I've tried adding it back with that exact line. I've tried crafting a 
new line using the old-school 127. address.

I do also have a NMEA reference clock defined. Maybe the PPS reference 
clock can't be added back to the existing NMEA clock signal? But if I 
unpeer my NMEA reference clock, I am similarly unable to add it back 
with ntpq.

After removing either reference clock, the only way I can find to 
re-connect them is to HUP ntpsecd

--
Do things because you should, not just because you can.

John Thurston    907-465-8591
John.Thurston at alaska.gov
Department of Administration
State of Alaska

On 4/20/2023 9:32 AM, James Browning via users wrote:
> On Apr 20, 2023, 09:40, John Thurston via users <users at ntpsec.org> wrote:
>
>     I'm running ntpsec-1.2.0 on debian 11
>
>     Using ntpq interactively, I'm able to use the :config command to
>
>     + add servers (and pools)
>
>     + remove servers and refclocks
>
>     but I am not able to add refclocks. I've attempted using the
>     'refclock' configuration with the name of the clock (i.e. pps), as
>     well as using the 'server' configuration with the old ip-address
>     (i.e. 127.127.22.0)
>
>     Is it just not possible to add reference clocks back after using
>     "unpeer" ?
>
>
> It worked for me the last time I checked.
>
> Did you build ntpsec in ntp classic compatibility mode? Did you try 
> "ntpq $auth -c ':config to refclock pps unit 0'" where auth is the 
> concatenation of your -k and -a arguments?
>
> Better replies may come (not much) later...
>
>
>
> _______________________________________________
> users mailing list
> users at ntpsec.org
> https://lists.ntpsec.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/users/attachments/20230420/c12f7849/attachment-0001.htm>


More information about the users mailing list