Re: ntpq-like queries using chronyc
andrei tudor corduneanu <[email protected]>
| Newsgroups | gmane.comp.time.chrony.user |
|---|---|
| Message-ID | <CACfmb9FTvkM+==pZdBwVG1gE7CbpQTig1a=O=x7ziKXfrPF1wA@mail.gmail.com> |
Sorry I did a terrible work in explaining myself.. I have an ntp server that is not a chronyd daemon and is not known to my locally running chronyd, I can query external-ntp.localnet for a list of its known peers with: $ ntpq -n -cpeers external-ntp.localnet If I try to do the same thing with chronyc $ chronyc -h external-ntp.localnet sources -a -v I get a 'Could not open connection to daemon'. The manpage suggests that chronyc is only able to talk to chronyd, is it true? googling I found out this: $ chronyd -Q 'server time.google.com iburst' that can print the time offset between local clock and a remote ntp source that is not necessarily (well... obviously) a chronyd server. can I accomplish something else with the -Q option? the chronyd manpage suggest that I can't, but is there some hackish way to query a non-chronyd ntp external server in the way I described above? or should I rely on some different tool? On Thu, Jun 9, 2022 at 2:54 PM andrei tudor corduneanu <[email protected]> wrote: > ok, I see that > $ chronyc sources -a -v > displays information about time sources for the locally running chronyd. > The ntp server I'm trying to reach is not a chronyd daemon and is not > local. (sorry.. I should've mention this) > The out: "Could not open connection to daemon" > > On Thu, Jun 9, 2022 at 2:26 PM chengyechun <[email protected]> > wrote: > >> Do you want to enumerate all time sources, chronyc sources -a -v may >> work, and will indicate which time sources are which types >> >> >> >> *发件人:* andrei tudor corduneanu [mailto:[email protected]] >> *发送时间:* 2022年6月9日 21:20 >> *收件人:* [email protected] >> *主题:* [chrony-users] ntpq-like queries using chronyc >> >> >> >> I was looking for a way to get the list of peers known to an ntp server >> and some of their stats, the ntpq command I'd like to replicate is: >> >> $ ntpq -n -cpeers ntp-srv.local >> >> Is there any way to do that with chronyd/chronyc ? >> >> Can chronyc make all the possible queries of ntpq? >> >