Re: [chrony-users] Chrony socket interface protocol? |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Chrony socket interface protocol?
- From: Roel Schroeven <roel@xxxxxxxxxxxxxxxxx>
- Date: Sun, 12 Jul 2015 16:39:22 +0200
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=roelschroeven.net; h=content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=Zx6PSq0MxQT3ailcpP4B6juRu6U=; b=J9eOdU 6i4BlBeRgUdHHbBbcHmjjy6iiQjBqZyeT2YCnkPw5NtXgBfz7fsA4H93ZwNfz/M1 YTWir14ktaMQfednRDxdMCkMD8TcrU/APP47lAfyTlpLRDDGTZ9w9nTpw5BuJHvd XOTql0EfJ9+PnejB7XWECRFXnTfzqejkDEfwA=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=Zx6PSq0MxQT3ail cpP4B6juRu6U=; b=hO+jXJRLKEVjkhDeKuXTjLT3nZbGY1yAE2s4bIXMzpk+uIJ EM/T5tM9PAuUrH+wE7J99x8tsmaD9F9s0FjMUqST/P7vguWeHNjx52YlKxI++aLf xTnkuBspiTjeFD4oJZAv4pt4oc1TjdsyXGdqKvMEIQYoHkxeSVPESy7psfT4=
Askar Ibragimov schreef op 2015-07-12 16:23:
Hello,
I would like to interact with Chrony from my own program via a network
socket. Earlier I was doing so with NTPD. I need to know which time
source Chrony is based (to detect if it uses my GPSD or not) and other
information regarding its current precision and such - so I should be
able to tell if I am running particular time source (such as
name="PPS") and whether my clock is now precise to it or not.
I appreciate if a reference to such protocol could be share with me.
Hi Askar,
Wouldn't it be easier to use chronyc for that instead of communicating
with the daemon directly? I think it shouldn't be too difficult to use
popen() on e.g. 'chronyc sources' or 'chronyc tracking' and interpret
its output.
Best regards,
Roel
--
"Life ain't no fairy tale
Just give me another ale
And I'll drink to Rock 'n Roll"
-- Barkeep (The Scabs)
--
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.