Is there an alternative for ntpq -c as
, while using chronyd as client?
While using ntpd as client, ntpq -c as
provides details about authentication of client to server using keys.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityFinally found the answer after little experimenting.
chronyc ntpdata
will provide if the client authenticated to server.
Not as verbose as ntpq -c as
, but works.
One could use this command:
chronyc ntpdata | awk '/^Remote address/ || /^Authenticated/ { print; if (/^A/) print "" }'
The output might look like this:
Remote address : 94.130.49.186 (5E8231BA)
Authenticated : No
Remote address : 162.159.200.123 (A29FC87B)
Authenticated : No
Remote address : 131.234.220.231 (83EADCE7)
Authenticated : No
The command line interface to the chronyd
daemon is chronyc.
To see information about the system's clock performance:
chronyc tracking
To see the time sources being used:
chrony sourcestats