LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

chronyc

Command-line interface for the chrony NTP daemon

TLDR

Check synchronization status
$ chronyc tracking
copy
List time sources
$ chronyc sources
copy
Verbose source list
$ chronyc sources -v
copy
Source statistics
$ chronyc sourcestats
copy
Force time sync
$ chronyc makestep
copy
Add NTP server
$ chronyc add server [pool.ntp.org]
copy
Show number of online/offline sources
$ chronyc activity
copy
Connect to a remote chrony daemon
$ chronyc -h [remote-host]
copy
Interactive mode
$ chronyc
copy

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 offset
sources
List NTP sources
sourcestats
Show source statistics
makestep
Force immediate clock correction
activity
Show online/offline source count
add server host
Add NTP server
delete address
Remove NTP source
burst good/max
Start rapid polling
offline / online
Set sources offline/online
ntpdata
Display NTP data for sources

CAVEATS

Requires chronyd running. Runtime changes lost on restart. Sub-microsecond accuracy possible with hardware timestamping.

SEE ALSO

chronyd(8), timedatectl(1), ntpq(1), ntpd(8), hwclock(8), date(1)

Copied to clipboard
Kai