RE: [chrony-users] Chronyc Call to Add Refclock |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: "chrony-users@xxxxxxxxxxxxxxxxxxxx" <chrony-users@xxxxxxxxxxxxxxxxxxxx>
- Subject: RE: [chrony-users] Chronyc Call to Add Refclock
- From: "Chang, Benjamin" <Benjamin.Chang@xxxxxxxxxxxxxxx>
- Date: Mon, 7 Dec 2020 13:03:38 +0000
- Accept-language: en-US
- Dkim-signature: v=1; a=rsa-sha256; d=gtri.gatech.edu; s=unifiededge; c=simple/simple; t=1607346218; h=from:subject:to:date:message-id; bh=GnAoEkrMC1LIPcAv2f5l9Zc1yy57wSMu7oTiQsPNXu4=; b=IHQxg/QWiMGzr3BBlvCeshUuChTRjGp7kpvLgtbG2PzmK/IuuUupliPfyz1WSVGPLZSoFmlCEps IlbDA4/5eP3q0EKuv+e8dtJhLJ4vK3XTmxz7FrgLkdZD+73dqn9462AIUSdTgIEF+1NPLwKQXvMxv b4zPGVbXvYdgaijmBpAKax7OoihS2hwwwM/vQMvF7KqJSf0OJyLx7dz4VeqzJBqmmK/VVEtkZ0Hc7 Qy0RGWh58XP/0yCCNJGrPfiFYgkOvU9K60t5HbgamuP6EIfqwJ3xiel51yZ/wRKEy0GnIWg0E/h93 BEd9l/hJzETr8Xp8WsGVd4/gWQzD+YRI5n7g==
- Thread-index: AdbKeYj6cLAXkr/GSTGSta864smBdwCKIEcAAAMlWMA=
- Thread-topic: [chrony-users] Chronyc Call to Add Refclock
> I've tried restarting chrony, then delete the ntp, reading the ntp with the offset, and then makestep. That works, but then itll only sync to the PPS half the time. Is there some combination of adding prefer and trust to make it work? I tried adding prefer and trust to the PPS and its still a gamble.
> I've tried looking into the selectdata call, but that doesn't seem to work?
>I'm not sure what problem this is trying to solve.
I was just trying anything to see if there was a way to solve my original issue. Me mentioning the selectdata call was also just to inform that I can't get the call to work in general. Chronyc didn't seem to recognize it. I was just trying out all the commands in the chronyc documentation. Apologies that I wasn't more clear.
> There could be a new command added to change the offset of existing sources.
That could work. Currently my setup is mentioned above. It would sure save a lot of calls. In the meantime however, do you have any advice or suggestion on how to workaround my issue?
Thank you,
Ben Chang
-----Original Message-----
From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
Sent: Monday, December 7, 2020 4:06 AM
To: chrony-users@xxxxxxxxxxxxxxxxxxxx
Subject: Re: [chrony-users] Chronyc Call to Add Refclock
On Fri, Dec 04, 2020 at 08:22:03PM +0000, Chang, Benjamin wrote:
> Hello,
>
> Is there any way to add a refclock via a chronyc call similar to "chronyc add server?" I am trying to have my system sync to an ntp server first with an offset and then sync to a reference clock (a PPS). I want it so that when I start my code, it'll execute everything via the system("chronyc ") c call, which prevents me from just having the offset in the conf file since you can't edit the conf file indirectly.
No, refclocks cannot be added by chronyc. When chronyd is already running, it's not expected to have the permissions needed to open reference clocks.
There could be a new command added to change the offset of existing sources..
> I've tried restarting chrony, then delete the ntp, reading the ntp with the offset, and then makestep. That works, but then itll only sync to the PPS half the time. Is there some combination of adding prefer and trust to make it work? I tried adding prefer and trust to the PPS and its still a gamble.
> I've tried looking into the selectdata call, but that doesn't seem to work?
I'm not sure what problem this is trying to solve.
--
Miroslav Lichvar
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.