chronyc
Command-line interface for the chrony NTP daemon
TLDR
Check synchronization status
$ chronyc tracking
List time sources$ chronyc sources
Verbose source list$ chronyc sources -v
Source statistics$ chronyc sourcestats
Force time sync$ chronyc makestep
Add NTP server$ chronyc add server [pool.ntp.org]
Show number of online/offline sources$ chronyc activity
Connect to a remote chrony daemon$ chronyc -h [remote-host]
Interactive mode$ chronyc
SYNOPSIS
chronyc [options] [command]
DESCRIPTION
chronyc is the command-line interface for chronyd, the NTP daemon. Used to monitor synchronization status, manage time sources, and configure the daemon. Changes are not persistent across restarts.
PARAMETERS
-n
Don't resolve hostnames-N
Print original hostnames as specified in config, not reverse DNS-c
CSV output format-m
Allow multiple commands on one line-4
Resolve hostnames to IPv4 addresses only-6
Resolve hostnames to IPv6 addresses only-h host
Connect to remote chronyd-p port
Specify port for remote chronyd connection
CONFIGURATION
/etc/chrony.conf
Permanent configuration for chronyd. Runtime changes via chronyc are lost on restart.
COMMANDS
tracking
Display system clock status and offsetsources
List NTP sourcessourcestats
Show source statisticsmakestep
Force immediate clock correctionactivity
Show online/offline source countadd server host
Add NTP serverdelete address
Remove NTP sourceburst good/max
Start rapid pollingoffline / online
Set sources offline/onlinentpdata
Display NTP data for sources
CAVEATS
Requires chronyd running. Runtime changes lost on restart. Sub-microsecond accuracy possible with hardware timestamping.
