Re: [chrony-users] DNS RR and chrony

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-users Archives ]


On Thu, Mar 17, 2016 at 8:04 PM, Bryan Christianson <bryan@xxxxxxxxxxxxx> wrote:

> On 18/03/2016, at 6:34 AM, Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote:
>
>
> If you start chronyc with -c and write commands to the stdin, the
> tracking command will still print the report in the CSV format.

Oh - Thats cool thanks :)

>
>> Would it be possible to add an optional argument to the internal chronyc commands to have them also return CSV format? Optionally JSON and XML would be nice formats as well.
>
> Would JSON or XML be easier for you to parse? I guess it wouldn't be
> difficult to implement, I'm just not sure if it's worth the extra
> code.

Its semantically better - means the client code is not dependent on the field order but can just do lookup by name once the data is loaded. Anyway - its not essential, so up to you.

I think implementing client libraries that can replace chronyc are a better direction.  Or if chronyd were to implement a more standard protocol library like http://www.grpc.io/ things would be easier to automate and instrument.
 

Thanks
B


Bryan Christianson
bryan@xxxxxxxxxxxxx




--
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.




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/