LinuxCommandLibrary

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
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
-c
CSV output format
-m
Allow multiple commands
-h host
Connect to remote chronyd

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)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community