Pool vs. server without config parsing
Josef 'Jeff' Sipek <[email protected]> Fri, 21 Jun 2024 10:05:27 -0400
| Newsgroups | gmane.comp.time.chrony.user |
|---|---|
| Message-ID | <ZnWIpy-kVQ9fGEla@satis> |
Hello, At work we're trying to write some code that sanity checks chrony config. For IMO obvious reasons, we'd like to avoid writing our own chrony.conf parser. As a result, we are trying to consume chronyc output. We are can't find a way to distinguish a source that's a server vs. one that's a pool. That is, when we see 3 sources in `chronyc sources` we can't find a way to tell if we are looking at 3 servers or a pool of 3. The closest thing we came up with is to use `chronyc sourcename` for each source, and try to collate the results, but this seems hacky/fragile. Is there a way to distinguish the two scenarios? Thanks, Jeff. -- To unsubscribe email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org with "unsubscribe" in the subject. For help email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org with "help" in the subject. Trouble? Email [email protected]