1CHRONYC(1) User manual CHRONYC(1)
2
3
4
6 chronyc - command-line interface for chrony daemon
7
9 chronyc [OPTION]... [COMMAND]...
10
12 chronyc is a command-line interface program which can be used to
13 monitor chronyd's performance and to change various operating
14 parameters whilst it is running.
15
16 If no commands are specified on the command line, chronyc will expect
17 input from the user. The prompt chronyc> will be displayed when it is
18 being run from a terminal. If chronyc's input or output are redirected
19 from or to a file, the prompt will not be shown.
20
21 There are two ways chronyc can access chronyd. One is the Internet
22 Protocol (IPv4 or IPv6) and the other is a Unix domain socket, which is
23 accessible locally by the root or chrony user. By default, chronyc
24 first tries to connect to the Unix domain socket. The compiled-in
25 default path is /run/chrony/chronyd.sock. If that fails (e.g. because
26 chronyc is running under a non-root user), it will try to connect to
27 127.0.0.1 and then ::1.
28
29 Only the following monitoring commands, which do not affect the
30 behaviour of chronyd, are allowed from the network: activity, manual
31 list, rtcdata, smoothing, sourcename, sources, sourcestats, tracking,
32 waitsync. The set of hosts from which chronyd will accept these
33 commands can be configured with the cmdallow directive in the chronyd's
34 configuration file or the cmdallow command in chronyc. By default, the
35 commands are accepted only from localhost (127.0.0.1 or ::1).
36
37 All other commands are allowed only through the Unix domain socket.
38 When sent over the network, chronyd will respond with a ‘Not
39 authorised’ error, even if it is from localhost.
40
41 Having full access to chronyd via chronyc is more or less equivalent to
42 being able to modify the chronyd's configuration file and restart it.
43
45 -4
46 With this option hostnames will be resolved only to IPv4 addresses.
47
48 -6
49 With this option hostnames will be resolved only to IPv6 addresses.
50
51 -n
52 This option disables resolving of IP addresses to hostnames, e.g.
53 to avoid slow DNS lookups. Long addresses will not be truncated to
54 fit into the column.
55
56 -N
57 This option enables printing of original hostnames or IP addresses
58 of NTP sources that were specified in the configuration file, or
59 chronyc commands. Without the -n and -N option, the printed
60 hostnames are obtained from reverse DNS lookups and can be
61 different from the specified hostnames.
62
63 -c
64 This option enables printing of reports in a comma-separated values
65 (CSV) format. Reverse DNS lookups will be disabled, time will be
66 printed as number of seconds since the epoch, and values in seconds
67 will not be converted to other units.
68
69 -d
70 This option enables printing of debugging messages if chronyc was
71 compiled with debugging support.
72
73 -m
74 Normally, all arguments on the command line are interpreted as one
75 command. With this option multiple commands can be specified. Each
76 argument will be interpreted as a whole command.
77
78 -h host
79 This option allows the user to specify which host (or
80 comma-separated list of addresses) running the chronyd program is
81 to be contacted. This allows for remote monitoring, without having
82 to connect over SSH to the other host first.
83
84 The default is to contact chronyd running on the same host where
85 chronyc is being run.
86
87 -p port
88 This option allows the user to specify the UDP port number which
89 the target chronyd is using for its monitoring connections. This
90 defaults to 323; there would rarely be a need to change this.
91
92 -f file
93 This option is ignored and is provided only for compatibility.
94
95 -a
96 This option is ignored and is provided only for compatibility.
97
98 -v, --version
99 With this option chronyc displays its version number on the
100 terminal and exits.
101
102 --help
103 With this option chronyc displays a help message on the terminal
104 and exits.
105
107 This section describes each of the commands available within the
108 chronyc program.
109
110 System clock
111 tracking
112 The tracking command displays parameters about the system’s clock
113 performance. An example of the output is shown below.
114
115 Reference ID : CB00710F (foo.example.net)
116 Stratum : 3
117 Ref time (UTC) : Fri Jan 27 09:49:17 2017
118 System time : 0.000006523 seconds slow of NTP time
119 Last offset : -0.000006747 seconds
120 RMS offset : 0.000035822 seconds
121 Frequency : 3.225 ppm slow
122 Residual freq : -0.000 ppm
123 Skew : 0.129 ppm
124 Root delay : 0.013639022 seconds
125 Root dispersion : 0.001100737 seconds
126 Update interval : 64.2 seconds
127 Leap status : Normal
128
129 The fields are explained as follows:
130
131 Reference ID
132 This is the reference ID and name (or IP address) of the server
133 to which the computer is currently synchronised. For IPv4
134 addresses, the reference ID is equal to the address and for
135 IPv6 addresses it is the first 32 bits of the MD5 sum of the
136 address.
137
138 If the reference ID is 7F7F0101 and there is no name or IP
139 address, it means the computer is not synchronised to any
140 external source and that you have the local mode operating (via
141 the local command in chronyc, or the local directive in the
142 configuration file).
143
144 The reference ID is printed as a hexadecimal number. Note that
145 in older versions it used to be printed in quad-dotted notation
146 and could be confused with an IPv4 address.
147
148 Stratum
149 The stratum indicates how many hops away from a computer with
150 an attached reference clock we are. Such a computer is a
151 stratum-1 computer, so the computer in the example is two hops
152 away (i.e. foo.example.net is a stratum-2 and is synchronised
153 from a stratum-1).
154
155 Ref time
156 This is the time (UTC) at which the last measurement from the
157 reference source was processed.
158
159 System time
160 In normal operation, chronyd by default never steps the system
161 clock, because any jump in the time can have adverse
162 consequences for certain application programs. Instead, any
163 error in the system clock is corrected by slightly speeding up
164 or slowing down the system clock until the error has been
165 removed, and then returning to the system clock’s normal speed.
166 A consequence of this is that there will be a period when the
167 system clock (as read by other programs) will be different from
168 chronyd's estimate of the current true time (which it reports
169 to NTP clients when it is operating as a server). The value
170 reported on this line is the difference due to this effect.
171
172 Last offset
173 This is the estimated local offset on the last clock update. A
174 positive value indicates the local time (as previously
175 estimated true time) was ahead of the time sources.
176
177 RMS offset
178 This is a long-term average of the offset value.
179
180 Frequency
181 The ‘frequency’ is the rate by which the system’s clock would
182 be wrong if chronyd was not correcting it. It is expressed in
183 ppm (parts per million). For example, a value of 1 ppm would
184 mean that when the system’s clock thinks it has advanced 1
185 second, it has actually advanced by 1.000001 seconds relative
186 to true time.
187
188 Residual freq
189 This shows the ‘residual frequency’ for the currently selected
190 reference source. This reflects any difference between what the
191 measurements from the reference source indicate the frequency
192 should be and the frequency currently being used.
193
194 The reason this is not always zero is that a smoothing
195 procedure is applied to the frequency. Each time a measurement
196 from the reference source is obtained and a new residual
197 frequency computed, the estimated accuracy of this residual is
198 compared with the estimated accuracy (see ‘skew’ next) of the
199 existing frequency value. A weighted average is computed for
200 the new frequency, with weights depending on these accuracies.
201 If the measurements from the reference source follow a
202 consistent trend, the residual will be driven to zero over
203 time.
204
205 Skew
206 This is the estimated error bound on the frequency.
207
208 Root delay
209 This is the total of the network path delays to the stratum-1
210 computer from which the computer is ultimately synchronised.
211
212 Root dispersion
213 This is the total dispersion accumulated through all the
214 computers back to the stratum-1 computer from which the
215 computer is ultimately synchronised. Dispersion is due to
216 system clock resolution, statistical measurement variations,
217 etc.
218
219 An absolute bound on the computer’s clock accuracy (assuming
220 the stratum-1 computer is correct) is given by:
221
222 clock_error <= |system_time_offset| + root_dispersion + (0.5 * root_delay)
223
224 Update interval
225 This is the interval between the last two clock updates.
226
227 Leap status
228 This is the leap status, which can be Normal, Insert second,
229 Delete second or Not synchronised.
230
231 makestep, makestep threshold limit
232 Normally chronyd will cause the system to gradually correct any
233 time offset, by slowing down or speeding up the clock as required.
234 In certain situations, the system clock might be so far adrift that
235 this slewing process would take a very long time to correct the
236 system clock.
237
238 The makestep command can be used in this situation. There are two
239 forms of the command. The first form has no parameters. It tells
240 chronyd to cancel any remaining correction that was being slewed
241 and jump the system clock by the equivalent amount, making it
242 correct immediately.
243
244 The second form configures the automatic stepping, similarly to the
245 makestep directive. It has two parameters, stepping threshold (in
246 seconds) and number of future clock updates for which the threshold
247 will be active. This can be used with the burst command to quickly
248 make a new measurement and correct the clock by stepping if needed,
249 without waiting for chronyd to complete the measurement and update
250 the clock.
251
252 makestep 0.1 1
253 burst 1/2
254
255 BE WARNED: Certain software will be seriously affected by such
256 jumps in the system time. (That is the reason why chronyd uses
257 slewing normally.)
258
259 maxupdateskew skew-in-ppm
260 This command has the same effect as the maxupdateskew directive in
261 the configuration file.
262
263 waitsync [max-tries [max-correction [max-skew [interval]]]]
264 The waitsync command waits for chronyd to synchronise.
265
266 Up to four optional arguments can be specified. The first is the
267 maximum number of tries before giving up and returning a non-zero
268 error code. When 0 is specified, or there are no arguments, the
269 number of tries will not be limited.
270
271 The second and third arguments are the maximum allowed remaining
272 correction of the system clock and the maximum allowed skew (in
273 ppm) as reported by the tracking command in the System time and
274 Skew fields. If not specified or zero, the value will not be
275 checked.
276
277 The fourth argument is the interval specified in seconds in which
278 the check is repeated. The interval is 10 seconds by default.
279
280 An example is:
281
282 waitsync 60 0.01
283
284 which will wait up to about 10 minutes (60 times 10 seconds) for
285 chronyd to synchronise to a source and the remaining correction to
286 be less than 10 milliseconds.
287
288 Time sources
289 sources [-a] [-v]
290 This command displays information about the current time sources
291 that chronyd is accessing.
292
293 If the -a option is specified, all sources are displayed, including
294 those that do not have a known address yet. Such sources have an
295 identifier in the format ID#XXXXXXXXXX, which can be used in other
296 commands expecting a source address.
297
298 The -v option enables a verbose output. In this case, extra caption
299 lines are shown as a reminder of the meanings of the columns.
300
301 MS Name/IP address Stratum Poll Reach LastRx Last sample
302 ===============================================================================
303 #* GPS0 0 4 377 11 -479ns[ -621ns] +/- 134ns
304 ^? foo.example.net 2 6 377 23 -923us[ -924us] +/- 43ms
305 ^+ bar.example.net 1 6 377 21 -2629us[-2619us] +/- 86ms
306
307 The columns are as follows:
308
309 M
310 This indicates the mode of the source. ^ means a server, =
311 means a peer and # indicates a locally connected reference
312 clock.
313
314 S
315 This column indicates the selection state of the source.
316
317 • * indicates the best source which is currently selected for
318 synchronisation.
319
320 • + indicates other sources selected for synchronisation,
321 which are combined with the best source.
322
323 • - indicates a source which is considered to be selectable
324 for synchronisation, but not currently selected.
325
326 • x indicates a source which chronyd thinks is a falseticker
327 (i.e. its time is inconsistent with a majority of other
328 sources, or sources specified with the trust option).
329
330 • ~ indicates a source whose time appears to have too much
331 variability.
332
333 • ? indicates a source which is not considered to be
334 selectable for synchronisation for other reasons (e.g.
335 unreachable, not synchronised, or does not have enough
336 measurements).
337
338
339 The selectdata command can be used to get more details about
340 the selection state.
341
342 Name/IP address
343 This shows the name or the IP address of the source, or
344 reference ID for reference clocks.
345
346 Stratum
347 This shows the stratum of the source, as reported in its most
348 recently received sample. Stratum 1 indicates a computer with a
349 locally attached reference clock. A computer that is
350 synchronised to a stratum 1 computer is at stratum 2. A
351 computer that is synchronised to a stratum 2 computer is at
352 stratum 3, and so on.
353
354 Poll
355 This shows the rate at which the source is being polled, as a
356 base-2 logarithm of the interval in seconds. Thus, a value of 6
357 would indicate that a measurement is being made every 64
358 seconds. chronyd automatically varies the polling rate in
359 response to prevailing conditions.
360
361 Reach
362 This shows the source’s reachability register printed as an
363 octal number. The register has 8 bits and is updated on every
364 received or missed packet from the source. A value of 377
365 indicates that a valid reply was received for all from the last
366 eight transmissions.
367
368 LastRx
369 This column shows how long ago the last good sample (which is
370 shown in the next column) was received from the source.
371 Measurements that failed some tests are ignored. This is
372 normally in seconds. The letters m, h, d or y indicate minutes,
373 hours, days, or years.
374
375 Last sample
376 This column shows the offset between the local clock and the
377 source at the last measurement. The number in the square
378 brackets shows the actual measured offset. This can be suffixed
379 by ns (indicating nanoseconds), us (indicating microseconds),
380 ms (indicating milliseconds), or s (indicating seconds). The
381 number to the left of the square brackets shows the original
382 measurement, adjusted to allow for any slews applied to the
383 local clock since. The number following the +/- indicator shows
384 the margin of error in the measurement. Positive offsets
385 indicate that the local clock is ahead of the source.
386
387 sourcestats [-a] [-v]
388 The sourcestats command displays information about the drift rate
389 and offset estimation process for each of the sources currently
390 being examined by chronyd.
391
392 If the -a option is specified, all sources are displayed, including
393 those that do not have a known address yet. Such sources have an
394 identifier in the format ID#XXXXXXXXXX, which can be used in other
395 commands expecting a source address.
396
397 The -v option enables a verbose output. In this case, extra caption
398 lines are shown as a reminder of the meanings of the columns.
399
400 An example report is:
401
402 Name/IP Address NP NR Span Frequency Freq Skew Offset Std Dev
403 ===============================================================================
404 foo.example.net 11 5 46m -0.001 0.045 1us 25us
405
406 The columns are as follows:
407
408 Name/IP Address
409 This is the name or IP address of the NTP server (or peer) or
410 reference ID of the reference clock to which the rest of the
411 line relates.
412
413 NP
414 This is the number of sample points currently being retained
415 for the server. The drift rate and current offset are estimated
416 by performing a linear regression through these points.
417
418 NR
419 This is the number of runs of residuals having the same sign
420 following the last regression. If this number starts to become
421 too small relative to the number of samples, it indicates that
422 a straight line is no longer a good fit to the data. If the
423 number of runs is too low, chronyd discards older samples and
424 re-runs the regression until the number of runs becomes
425 acceptable.
426
427 Span
428 This is the interval between the oldest and newest samples. If
429 no unit is shown the value is in seconds. In the example, the
430 interval is 46 minutes.
431
432 Frequency
433 This is the estimated residual frequency for the server, in
434 parts per million. In this case, the computer’s clock is
435 estimated to be running 1 part in 10^9 slow relative to the
436 server.
437
438 Freq Skew
439 This is the estimated error bounds on Freq (again in parts per
440 million).
441
442 Offset
443 This is the estimated offset of the source.
444
445 Std Dev
446 This is the estimated sample standard deviation.
447
448 selectdata [-a] [-v]
449 The selectdata command displays information specific to the
450 selection of time sources. If the -a option is specified, all
451 sources are displayed, including those that do not have a known
452 address yet. With the -v option, extra caption lines are shown as a
453 reminder of the meanings of the columns.
454
455 An example of the output is shown below.
456
457 S Name/IP Address Auth COpts EOpts Last Score Interval Leap
458 =======================================================================
459 D foo.example.net Y ----- --TR- 4 1.0 -61ms +62ms N
460 * bar.example.net N ----- ----- 0 1.0 -6846us +7305us N
461 + baz.example.net N ----- ----- 10 1.0 -7381us +7355us N
462
463 The columns are as follows:
464
465 S
466 This column indicates the state of the source after the last
467 source selection. It is similar to the state reported by the
468 sources command, but more states are reported.
469
470
471 The following states indicate the source is not considered
472 selectable for synchronisation:
473
474 • N - has the noselect option.
475
476 • M - does not have enough measurements.
477
478 • d - has a root distance larger than the maximum distance
479 (configured by the maxdistance directive).
480
481 • ~ - has a jitter larger than the maximum jitter (configured
482 by the maxjitter directive).
483
484 • w - waits for other sources to get out of the M state.
485
486 • S - has older measurements than other sources.
487
488 • O - has a stratum equal or larger than the orphan stratum
489 (configured by the local directive).
490
491 • T - does not fully agree with sources that have the trust
492 option.
493
494 • x - does not agree with other sources (falseticker).
495
496
497 The following states indicate the source is considered
498 selectable, but it is not currently used for synchronisation:
499
500 • W - waits for other sources to be selectable (required by
501 the minsources directive, or the require option of another
502 source).
503
504 • P - another selectable source is preferred due to the
505 prefer option.
506
507 • U - waits for a new measurement (after selecting a
508 different best source).
509
510 • D - has, or recently had, a root distance which is too
511 large to be combined with other sources (configured by the
512 combinelimit directive).
513
514
515 The following states indicate the source is used for
516 synchronisation of the local clock:
517
518 • + - combined with the best source.
519
520 • * - selected as the best source to update the reference
521 data (e.g. root delay, root dispersion).
522
523 Name/IP address
524 This column shows the name or IP address of the source if it is
525 an NTP server, or the reference ID if it is a reference clock.
526
527 Auth
528 This column indicites whether an authentication mechanism is
529 enabled for the source. Y means yes and N means no.
530
531 COpts
532 This column displays the configured selection options of the
533 source.
534
535 • N indicates the noselect option.
536
537 • P indicates the prefer option.
538
539 • T indicates the trust option.
540
541 • R indicates the require option.
542
543 EOpts
544 This column displays the current effective selection options of
545 the source, which can be different from the configured options
546 due to the authentication selection mode (configured by the
547 authselmode directive). The symbols are the same as in the
548 COpts column.
549
550 Last
551 This column displays how long ago was the last measurement of
552 the source made when the selection was performed.
553
554 Score
555 This column displays the current score against the source in
556 the * state. The scoring system avoids frequent reselection
557 when multiple sources have a similar root distance. A value
558 larger than 1 indicates this source was better than the *
559 source in recent selections. If the score reaches 10, the best
560 source will be reselected and the scores will be reset to 1.
561
562 Interval
563 This column displays the lower and upper endpoint of the
564 interval which was expected to contain the true offset of the
565 local clock considering the root distance at the time of the
566 selection.
567
568 Leap
569 This column displays the current leap status of the source.
570
571 • N indicates the normal status (no leap second).
572
573 • + indicates that a leap second will be inserted at the end
574 of the month.
575
576 • - indicates that a leap second will be deleted at the end
577 of the month.
578
579 • ? indicates the unknown status (i.e. no valid measurement
580 was made).
581
582 reselect
583 To avoid excessive switching between sources, chronyd can stay
584 synchronised to a source even when it is not currently the best one
585 among the available sources.
586
587 The reselect command can be used to force chronyd to reselect the
588 best synchronisation source.
589
590 reselectdist distance
591 The reselectdist command sets the reselection distance. It is
592 equivalent to the reselectdist directive in the configuration file.
593
594 NTP sources
595 activity
596 This command reports the number of servers and peers that are
597 online and offline. If the auto_offline option is used in
598 specifying some of the servers or peers, the activity command can
599 be useful for detecting when all of them have entered the offline
600 state after the network link has been disconnected.
601
602 The report shows the number of servers and peers in 5 states:
603
604 online
605 the server or peer is currently online (i.e. assumed by chronyd
606 to be reachable)
607
608 offline
609 the server or peer is currently offline (i.e. assumed by
610 chronyd to be unreachable, and no measurements from it will be
611 attempted.)
612
613 burst_online
614 a burst command has been initiated for the server or peer and
615 is being performed; after the burst is complete, the server or
616 peer will be returned to the online state.
617
618 burst_offline
619 a burst command has been initiated for the server or peer and
620 is being performed; after the burst is complete, the server or
621 peer will be returned to the offline state.
622
623 unresolved
624 the name of the server or peer was not resolved to an address
625 yet; this source is not visible in the sources and sourcestats
626 reports.
627
628 authdata [-a]
629 The authdata command displays information specific to
630 authentication of NTP sources. If the -a option is specified, all
631 sources are displayed, including those that do not have a known
632 address yet. An example of the output is shown below.
633
634 Name/IP address Mode KeyID Type KLen Last Atmp NAK Cook CLen
635 =========================================================================
636 foo.example.net NTS 1 15 256 135m 0 0 8 100
637 bar.example.net SK 30 13 128 - 0 0 0 0
638 baz.example.net - 0 0 0 - 0 0 0 0
639
640 The columns are as follows:
641
642 Name/IP address
643 This column shows the name or the IP address of the source.
644
645 Mode
646 This column shows which mechanism authenticates NTP packets
647 received from the source. NTS means Network Time Security, SK
648 means a symmetric key, and - means authentication is disabled.
649
650 KeyID
651 This column shows an identifier of the key used for
652 authentication. With a symmetric key, it is the ID from the key
653 file. With NTS, it is a number starting at zero and incremented
654 by one with each successful key establishment using the NTS-KE
655 protocol, i.e. it shows how many times the key establishment
656 was performed with this source.
657
658 Type
659 This columns shows an identifier of the algorithm used for
660 authentication. With a symmetric key, it is the hash function
661 or cipher specified in the key file. With NTS, it is an
662 authenticated encryption with associated data (AEAD) algorithm,
663 which is negotiated in the NTS-KE protocol. The following
664 values can be reported:
665
666 • 1: MD5
667
668 • 2: SHA1
669
670 • 3: SHA256
671
672 • 4: SHA384
673
674 • 5: SHA512
675
676 • 6: SHA3-224
677
678 • 7: SHA3-256
679
680 • 8: SHA3-384
681
682 • 9: SHA3-512
683
684 • 10: TIGER
685
686 • 11: WHIRLPOOL
687
688 • 13: AES128
689
690 • 14: AES256
691
692 • 15: AEAD-AES-SIV-CMAC-256
693
694 KLen
695 This column shows the length of the key in bits.
696
697 Last
698 This column shows how long ago the last successful key
699 establishment was performed. It is in seconds, or letters m, h,
700 d or y indicate minutes, hours, days, or years.
701
702 Atmp
703 This column shows the number of attempts to perform the key
704 establishment since the last successful key establishment. A
705 number larger than 1 indicates a problem with the network or
706 server.
707
708 NAK
709 This column shows whether an NTS NAK was received since the
710 last request. A NAK indicates that authentication failed on the
711 server side due to chronyd using a cookie which is no longer
712 valid and that it needs to perform the key establishment again
713 in order to get new cookies.
714
715 Cook
716 This column shows the number of NTS cookies that chronyd
717 currently has. If the key establishment was successful, a
718 number smaller than 8 indicates a problem with the network or
719 server.
720
721 CLen
722 This column shows the length in bytes of the NTS cookie which
723 will be used in the next request.
724
725 ntpdata [address]
726 The ntpdata command displays the last valid measurement and other
727 NTP-specific information about the specified NTP source, or all NTP
728 sources (with a known address) if no address was specified. An
729 example of the output is shown below.
730
731 Remote address : 203.0.113.15 (CB00710F)
732 Remote port : 123
733 Local address : 203.0.113.74 (CB00714A)
734 Leap status : Normal
735 Version : 4
736 Mode : Server
737 Stratum : 1
738 Poll interval : 10 (1024 seconds)
739 Precision : -24 (0.000000060 seconds)
740 Root delay : 0.000015 seconds
741 Root dispersion : 0.000015 seconds
742 Reference ID : 47505300 (GPS)
743 Reference time : Fri Nov 25 15:22:12 2016
744 Offset : -0.000060878 seconds
745 Peer delay : 0.000175634 seconds
746 Peer dispersion : 0.000000681 seconds
747 Response time : 0.000053050 seconds
748 Jitter asymmetry: +0.00
749 NTP tests : 111 111 1111
750 Interleaved : No
751 Authenticated : No
752 TX timestamping : Kernel
753 RX timestamping : Kernel
754 Total TX : 24
755 Total RX : 24
756 Total valid RX : 24
757
758 The fields are explained as follows:
759
760 Remote address
761 The IP address of the NTP server or peer, and the corresponding
762 reference ID.
763
764 Remote port
765 The UDP port number to which the request was sent. The standard
766 NTP port is 123.
767
768 Local address
769 The local IP address which received the response, and the
770 corresponding reference ID.
771
772 Leap status, Version, Mode, Stratum, Poll interval, Precision, Root
773 delay, Root dispersion, Reference ID, Reference time
774 The NTP values from the last valid response.
775
776 Offset, Peer delay, Peer dispersion
777 The measured values.
778
779 Response time
780 The time the server or peer spent in processing of the request
781 and waiting before sending the response.
782
783 Jitter asymmetry
784 The estimated asymmetry of network jitter on the path to the
785 source. The asymmetry can be between -0.5 and 0.5. A negative
786 value means the delay of packets sent to the source is more
787 variable than the delay of packets sent from the source back.
788
789 NTP tests
790 Results of RFC 5905 tests 1 through 3, 5 through 7, and tests
791 for maximum delay, delay ratio, delay dev ratio, and
792 synchronisation loop.
793
794 Interleaved
795 This shows if the response was in the interleaved mode.
796
797 Authenticated
798 This shows if the response was authenticated.
799
800 TX timestamping
801 The source of the local transmit timestamp. Valid values are
802 Daemon, Kernel, and Hardware.
803
804 RX timestamping
805 The source of the local receive timestamp.
806
807 Total TX
808 The number of packets sent to the source.
809
810 Total RX
811 The number of all packets received from the source.
812
813 Total valid RX
814 The number of valid packets received from the source.
815
816 add peer name [option]...
817 The add peer command allows a new NTP peer to be added whilst
818 chronyd is running.
819
820 Following the words add peer, the syntax of the following
821 parameters and options is identical to that for the peer directive
822 in the configuration file.
823
824 An example of using this command is shown below.
825
826 add peer foo.example.net minpoll 6 maxpoll 10 key 25
827
828 add pool name [option]...
829 The add pool command allows a pool of NTP servers to be added
830 whilst chronyd is running.
831
832 Following the words add pool, the syntax of the following
833 parameters and options is identical to that for the pool directive
834 in the configuration file.
835
836 An example of using this command is shown below:
837
838 add pool foo.example.net maxsources 3 iburst
839
840 add server name [option]...
841 The add server command allows a new NTP server to be added whilst
842 chronyd is running.
843
844 Following the words add server, the syntax of the following
845 parameters and options is identical to that for the server
846 directive in the configuration file.
847
848 An example of using this command is shown below:
849
850 add server foo.example.net minpoll 6 maxpoll 10 key 25
851
852 delete address
853 The delete command allows an NTP server or peer to be removed from
854 the current set of sources.
855
856 burst good/max [mask/masked-address], burst good/max
857 [masked-address/masked-bits], burst good/max [address]
858 The burst command tells chronyd to make a set of measurements to
859 each of its NTP sources over a short duration (rather than the
860 usual periodic measurements that it makes). After such a burst,
861 chronyd will revert to the previous state for each source. This
862 might be either online, if the source was being periodically
863 measured in the normal way, or offline, if the source had been
864 indicated as being offline. (A source can be switched between the
865 online and offline states with the online and offline commands.)
866
867 The mask and masked-address arguments are optional, in which case
868 chronyd will initiate a burst for all of its currently defined
869 sources.
870
871 The arguments have the following meaning and format:
872
873 good
874 This defines the number of good measurements that chronyd will
875 want to obtain from each source. A measurement is good if it
876 passes certain tests, for example, the round trip time to the
877 source must be acceptable. (This allows chronyd to reject
878 measurements that are likely to be bogus.)
879
880 max
881 This defines the maximum number of measurements that chronyd
882 will attempt to make, even if the required number of good
883 measurements has not been obtained.
884
885 mask
886 This is an IP address with which the IP address of each of
887 chronyd's sources is to be masked.
888
889 masked-address
890 This is an IP address. If the masked IP address of a source
891 matches this value then the burst command is applied to that
892 source.
893
894 masked-bits
895 This can be used with masked-address for CIDR notation, which
896 is a shorter alternative to the form with mask.
897
898 address
899 This is an IP address or a hostname. The burst command is
900 applied only to that source.
901
902
903
904 If no mask or masked-address arguments are provided, every source
905 will be matched.
906
907 An example of the two-argument form of the command is:
908
909 burst 2/10
910
911 This will cause chronyd to attempt to get two good measurements
912 from each source, stopping after two have been obtained, but in no
913 event will it try more than ten probes to the source.
914
915 Examples of the four-argument form of the command are:
916
917 burst 2/10 255.255.0.0/1.2.0.0
918 burst 2/10 2001:db8:789a::/48
919
920 In the first case, the two out of ten sampling will only be applied
921 to sources whose IPv4 addresses are of the form 1.2.x.y, where x
922 and y are arbitrary. In the second case, the sampling will be
923 applied to sources whose IPv6 addresses have first 48 bits equal to
924 2001:db8:789a.
925
926 Example of the three-argument form of the command is:
927
928 burst 2/10 foo.example.net
929
930 maxdelay address delay
931 This allows the maxdelay option for one of the sources to be
932 modified, in the same way as specifying the maxdelay option for the
933 server directive in the configuration file.
934
935 maxdelaydevratio address ratio
936 This allows the maxdelaydevratio option for one of the sources to
937 be modified, in the same way as specifying the maxdelaydevratio
938 option for the server directive in the configuration file.
939
940 maxdelayratio address ratio
941 This allows the maxdelayratio option for one of the sources to be
942 modified, in the same way as specifying the maxdelayratio option
943 for the server directive in the configuration file.
944
945 maxpoll address maxpoll
946 The maxpoll command is used to modify the maximum polling interval
947 for one of the current set of sources. It is equivalent to the
948 maxpoll option in the server directive in the configuration file.
949
950 Note that the new maximum polling interval only takes effect after
951 the next measurement has been made.
952
953 minpoll address minpoll
954 The minpoll command is used to modify the minimum polling interval
955 for one of the current set of sources. It is equivalent to the
956 minpoll option in the server directive in the configuration file.
957
958 Note that the new minimum polling interval only takes effect after
959 the next measurement has been made.
960
961 minstratum address minstratum
962 The minstratum command is used to modify the minimum stratum for
963 one of the current set of sources. It is equivalent to the
964 minstratum option in the server directive in the configuration
965 file.
966
967 offline [address], offline [masked-address/masked-bits], offline
968 [mask/masked-address]
969 The offline command is used to warn chronyd that the network
970 connection to a particular host or hosts is about to be lost, e.g.
971 on computers with intermittent connection to their time sources.
972
973 Another case where offline could be used is where a computer serves
974 time to a local group of computers, and has a permanent connection
975 to true time servers outside the organisation. However, the
976 external connection is heavily loaded at certain times of the day
977 and the measurements obtained are less reliable at those times. In
978 this case, it is probably most useful to determine the gain or loss
979 rate during the quiet periods and let the whole network coast
980 through the loaded periods. The offline and online commands can be
981 used to achieve this.
982
983 There are four forms of the offline command. The first form is a
984 wildcard, meaning all sources (including sources that do not have a
985 known address yet). The second form allows an IP address mask and a
986 masked address to be specified. The third form uses CIDR notation.
987 The fourth form uses an IP address or a hostname. These forms are
988 illustrated below.
989
990 offline
991 offline 255.255.255.0/1.2.3.0
992 offline 2001:db8:789a::/48
993 offline foo.example.net
994
995 The second form means that the offline command is to be applied to
996 any source whose IPv4 address is in the 1.2.3 subnet. (The host’s
997 address is logically and-ed with the mask, and if the result
998 matches the masked-address the host is processed.) The third form
999 means that the command is to be applied to all sources whose IPv6
1000 addresses have their first 48 bits equal to 2001:db8:789a. The
1001 fourth form means that the command is to be applied only to that
1002 one source.
1003
1004 The wildcard form of the address is equivalent to:
1005
1006 offline 0.0.0.0/0.0.0.0
1007 offline ::/0
1008
1009 online [address], online [masked-address/masked-bits], online
1010 [mask/masked-address]
1011 The online command is opposite in function to the offline command.
1012 It is used to advise chronyd that network connectivity to a
1013 particular source or sources has been restored.
1014
1015 The syntax is identical to that of the offline command.
1016
1017 onoffline
1018 The onoffline command tells chronyd to switch all sources that have
1019 a known address to the online or offline status according to the
1020 current network configuration. A source is considered online if it
1021 is possible to send requests to it, i.e. a network route to the
1022 source is present.
1023
1024 polltarget address polltarget
1025 The polltarget command is used to modify the poll target for one of
1026 the current set of sources. It is equivalent to the polltarget
1027 option in the server directive in the configuration file.
1028
1029 refresh
1030 The refresh command can be used to force chronyd to resolve the
1031 names of configured sources to IP addresses again, e.g. after
1032 suspending and resuming the machine in a different network.
1033
1034 Sources that stop responding will be replaced with newly resolved
1035 addresses automatically after 8 polling intervals, but this command
1036 can still be useful to replace them immediately and not wait until
1037 they are marked as unreachable.
1038
1039 reload sources
1040 The reload sources command causes chronyd to re-read all *.sources
1041 files from the directories specified by the sourcedir directive.
1042
1043 sourcename address
1044 The sourcename command prints the original hostname or address that
1045 was specified for an NTP source in the configuration file, or the
1046 add command. This command is an alternative to the -N option, which
1047 can be useful in scripts.
1048
1049 Note that different NTP sources can share the same name, e.g.
1050 servers from a pool.
1051
1052 Manual time input
1053 manual on, manual off, manual delete index, manual list, manual reset
1054 The manual command enables and disables use of the settime command,
1055 and is used to modify the behaviour of the manual clock driver.
1056
1057 The on form of the command enables use of the settime command.
1058
1059 The off form of the command disables use of the settime command.
1060
1061 The list form of the command lists all the samples currently stored
1062 in chronyd. The output is illustrated below.
1063
1064 210 n_samples = 1
1065 # Date Time(UTC) Slewed Original Residual
1066 ====================================================
1067 0 27Jan99 22:09:20 0.00 0.97 0.00
1068
1069 The columns are as as follows:
1070
1071 1. The sample index (used for the manual delete command).
1072
1073 2. The date and time of the sample.
1074
1075 3. The system clock error when the timestamp was entered, adjusted
1076 to allow for changes made to the system clock since.
1077
1078 4. The system clock error when the timestamp was entered, as it
1079 originally was (without allowing for changes to the system
1080 clock since).
1081
1082 5. The regression residual at this point, in seconds. This allows
1083 ‘outliers’ to be easily spotted, so that they can be deleted
1084 using the manual delete command.
1085
1086
1087
1088 The delete form of the command deletes a single sample. The
1089 parameter is the index of the sample, as shown in the first column
1090 of the output from manual list. Following deletion of the data
1091 point, the current error and drift rate are re-estimated from the
1092 remaining data points and the system clock trimmed if necessary.
1093 This option is intended to allow ‘outliers’ to be discarded, i.e.
1094 samples where the administrator realises they have entered a very
1095 poor timestamp.
1096
1097 The reset form of the command deletes all samples at once. The
1098 system clock is left running as it was before the command was
1099 entered.
1100
1101 settime time
1102 The settime command allows the current time to be entered manually,
1103 if this option has been configured into chronyd. (It can be
1104 configured either with the manual directive in the configuration
1105 file, or with the manual command of chronyc.)
1106
1107 It should be noted that the computer’s sense of time will only be
1108 as accurate as the reference you use for providing this input (e.g.
1109 your watch), as well as how well you can time the press of the
1110 return key.
1111
1112 Providing your computer’s time zone is set up properly, you will be
1113 able to enter a local time (rather than UTC).
1114
1115 The response to a successful settime command indicates the amount
1116 that the computer’s clock was wrong. It should be apparent from
1117 this if you have entered the time wrongly, e.g. with the wrong time
1118 zone.
1119
1120 The rate of drift of the system clock is estimated by a regression
1121 process using the entered measurement and all previous measurements
1122 entered during the present run of chronyd. However, the entered
1123 measurement is used for adjusting the current clock offset (rather
1124 than the estimated intercept from the regression, which is
1125 ignored). Contrast what happens with the manual delete command,
1126 where the intercept is used to set the current offset (since there
1127 is no measurement that has just been entered in that case).
1128
1129 The time is parsed by the public domain getdate algorithm.
1130 Consequently, you can only specify time to the nearest second.
1131
1132 Examples of inputs that are valid are shown below:
1133
1134 settime 16:30
1135 settime 16:30:05
1136 settime Nov 21, 2015 16:30:05
1137
1138 For a full description of getdate, see the getdate documentation
1139 (bundled, for example, with the source for GNU tar).
1140
1141 NTP access
1142 accheck address
1143 This command allows you to check whether client NTP access is
1144 allowed from a particular host.
1145
1146 Examples of use, showing a named host and a numeric IP address, are
1147 as follows:
1148
1149 accheck foo.example.net
1150 accheck 1.2.3.4
1151 accheck 2001:db8::1
1152
1153 This command can be used to examine the effect of a series of
1154 allow, allow all, deny, and deny all commands specified either via
1155 chronyc, or in chronyd's configuration file.
1156
1157 clients [-p packets] [-k] [-r]
1158 This command shows a list of clients that have accessed the server,
1159 through the NTP, command, or NTS-KE port. It does not include
1160 accesses over the Unix domain command socket.
1161
1162 The -p option specifies the minimum number of received NTP or
1163 command packets, or accepted NTS-KE connections, needed to include
1164 a client in the list. The default value is 0, i.e. all clients are
1165 reported. With the -k option the last four columns will show the
1166 NTS-KE accesses instead of command accesses. If the -r option is
1167 specified, chronyd will reset the counters of received and dropped
1168 packets or connections after reporting the current values.
1169
1170 An example of the output is:
1171
1172 Hostname NTP Drop Int IntL Last Cmd Drop Int Last
1173 ===============================================================================
1174 localhost 2 0 2 - 133 15 0 -1 7
1175 foo.example.net 12 0 6 - 23 0 0 - -
1176
1177 Each row shows the data for a single host. Only hosts that have
1178 passed the host access checks (set with the allow, deny, cmdallow
1179 and cmddeny commands or configuration file directives) are logged.
1180 The intervals are displayed as a power of 2 in seconds.
1181
1182 The columns are as follows:
1183
1184 1. The hostname of the client.
1185
1186 2. The number of NTP packets received from the client.
1187
1188 3. The number of NTP packets dropped to limit the response rate.
1189
1190 4. The average interval between NTP packets.
1191
1192 5. The average interval between NTP packets after limiting the
1193 response rate.
1194
1195 6. Time since the last NTP packet was received
1196
1197 7. The number of command packets or NTS-KE connections
1198 received/accepted from the client.
1199
1200 8. The number of command packets or NTS-KE connections dropped to
1201 limit the response rate.
1202
1203 9. The average interval between command packets or NTS-KE
1204 connections.
1205
1206 10. Time since the last command packet or NTS-KE connection was
1207 received/accepted.
1208
1209 serverstats
1210 The serverstats command displays NTP and command server statistics.
1211
1212 An example of the output is shown below.
1213
1214 NTP packets received : 1598
1215 NTP packets dropped : 8
1216 Command packets received : 19
1217 Command packets dropped : 0
1218 Client log records dropped : 0
1219 NTS-KE connections accepted: 3
1220 NTS-KE connections dropped : 0
1221 Authenticated NTP packets : 189
1222 Interleaved NTP packets : 43
1223 NTP timestamps held : 44
1224 NTP timestamp span : 120
1225
1226 The fields have the following meaning:
1227
1228 NTP packets received
1229 The number of valid NTP requests received by the server.
1230
1231 NTP packets dropped
1232 The number of NTP requests dropped by the server due to rate
1233 limiting (configured by the ratelimit directive).
1234
1235 Command packets received
1236 The number of command requests received by the server.
1237
1238 Command packets dropped
1239 The number of command requests dropped by the server due to
1240 rate limiting (configured by the cmdratelimit directive).
1241
1242 Client log records dropped
1243 The number of client log records dropped by the server to limit
1244 the memory use (configured by the clientloglimit directive).
1245
1246 NTS-KE connections accepted
1247 The number of NTS-KE connections accepted by the server.
1248
1249 NTS-KE connections dropped
1250 The number of NTS-KE connections dropped by the server due to
1251 rate limiting (configured by the ntsratelimit directive).
1252
1253 Authenticated NTP packets
1254 The number of received NTP requests that were authenticated
1255 (with a symmetric key or NTS).
1256
1257 Interleaved NTP packets
1258 The number of received NTP requests that were detected to be in
1259 the interleaved mode.
1260
1261 NTP timestamps held
1262 The number of pairs of receive and transmit timestamps that the
1263 server is currently holding in memory for clients using the
1264 interleaved mode.
1265
1266 NTP timestamp span
1267 The interval (in seconds) covered by the currently held NTP
1268 timestamps.
1269
1270
1271
1272 Note that the numbers reported by this overflow to zero after
1273 4294967295 (32-bit values).
1274
1275 allow [all] [subnet]
1276 The effect of the allow command is identical to the allow directive
1277 in the configuration file.
1278
1279 The syntax is illustrated in the following examples:
1280
1281 allow 1.2.3.4
1282 allow all 3.4.5.0/24
1283 allow 2001:db8:789a::/48
1284 allow 0/0
1285 allow ::/0
1286 allow
1287 allow all
1288
1289 deny [all] [subnet]
1290 The effect of the allow command is identical to the deny directive
1291 in the configuration file.
1292
1293 The syntax is illustrated in the following examples:
1294
1295 deny 1.2.3.4
1296 deny all 3.4.5.0/24
1297 deny 2001:db8:789a::/48
1298 deny 0/0
1299 deny ::/0
1300 deny
1301 deny all
1302
1303 local [option]..., local off
1304 The local command allows chronyd to be told that it is to appear as
1305 a reference source, even if it is not itself properly synchronised
1306 to an external source. (This can be used on isolated networks, to
1307 allow one computer to be a master time server with the other
1308 computers slaving to it.)
1309
1310 The first form enables the local reference mode on the host. The
1311 syntax is identical to the local directive in the configuration
1312 file.
1313
1314 The second form disables the local reference mode.
1315
1316 smoothing
1317 The smoothing command displays the current state of the NTP server
1318 time smoothing, which can be enabled with the smoothtime directive.
1319 An example of the output is shown below.
1320
1321 Active : Yes
1322 Offset : +1.000268817 seconds
1323 Frequency : -0.142859 ppm
1324 Wander : -0.010000 ppm per second
1325 Last update : 17.8 seconds ago
1326 Remaining time : 19988.4 seconds
1327
1328 The fields are explained as follows:
1329
1330 Active
1331 This shows if the server time smoothing is currently active.
1332 Possible values are Yes and No. If the leaponly option is
1333 included in the smoothtime directive, (leap second only) will
1334 be shown on the line.
1335
1336 Offset
1337 This is the current offset applied to the time sent to NTP
1338 clients. Positive value means the clients are getting time
1339 that’s ahead of true time.
1340
1341 Frequency
1342 The current frequency offset of the served time. Negative value
1343 means the time observed by clients is running slower than true
1344 time.
1345
1346 Wander
1347 The current frequency wander of the served time. Negative value
1348 means the time observed by clients is slowing down.
1349
1350 Last update
1351 This field shows how long ago the time smoothing process was
1352 updated, e.g. chronyd accumulated a new measurement.
1353
1354 Remaining time
1355 The time it would take for the smoothing process to get to zero
1356 offset and frequency if there were no more updates.
1357
1358 smoothtime activate, smoothtime reset
1359 The smoothtime command can be used to activate or reset the server
1360 time smoothing process if it is configured with the smoothtime
1361 directive.
1362
1363 Monitoring access
1364 cmdaccheck address
1365 This command is similar to the accheck command, except that it is
1366 used to check whether monitoring access is permitted from a named
1367 host.
1368
1369 Examples of use are as follows:
1370
1371 cmdaccheck foo.example.net
1372 cmdaccheck 1.2.3.4
1373 cmdaccheck 2001:db8::1
1374
1375 cmdallow [all] [subnet]
1376 This is similar to the allow command, except that it is used to
1377 allow particular hosts or subnets to use chronyc to monitor with
1378 chronyd on the current host.
1379
1380 cmddeny [all] [subnet]
1381 This is similar to the deny command, except that it is used to
1382 allow particular hosts or subnets to use chronyc to monitor chronyd
1383 on the current host.
1384
1385 Real-time clock (RTC)
1386 rtcdata
1387 The rtcdata command displays the current RTC parameters.
1388
1389 An example output is shown below.
1390
1391 RTC ref time (GMT) : Sat May 30 07:25:56 2015
1392 Number of samples : 10
1393 Number of runs : 5
1394 Sample span period : 549
1395 RTC is fast by : -1.632736 seconds
1396 RTC gains time at : -107.623 ppm
1397
1398 The fields have the following meaning:
1399
1400 RTC ref time (GMT)
1401 This is the RTC reading the last time its error was measured.
1402
1403 Number of samples
1404 This is the number of previous measurements being used to
1405 determine the RTC gain or loss rate.
1406
1407 Number of runs
1408 This is the number of runs of residuals of the same sign
1409 following the regression fit for (RTC error) versus (RTC time).
1410 A value which is small indicates that the measurements are not
1411 well approximated by a linear model, and that the algorithm
1412 will tend to delete the older measurements to improve the fit.
1413
1414 Sample span period
1415 This is the period that the measurements span (from the oldest
1416 to the newest). Without a unit the value is in seconds;
1417 suffixes m for minutes, h for hours, d for days or y for years
1418 can be used.
1419
1420 RTC is fast by
1421 This is the estimate of how many seconds fast the RTC when it
1422 thought the time was at the reference time (above). If this
1423 value is large, you might (or might not) want to use the
1424 trimrtc command to bring the RTC into line with the system
1425 clock. (Note, a large error will not affect chronyd's
1426 operation, unless it becomes so big as to start causing
1427 rounding errors.)
1428
1429 RTC gains time at
1430 This is the amount of time gained (positive) or lost (negative)
1431 by the real time clock for each second that it ticks. It is
1432 measured in parts per million. So if the value shown was +1,
1433 suppose the RTC was exactly right when it crosses a particular
1434 second boundary. Then it would be 1 microsecond fast when it
1435 crosses its next second boundary.
1436
1437 trimrtc
1438 The trimrtc command is used to correct the system’s real-time clock
1439 (RTC) to the main system clock. It has no effect if the error
1440 between the two clocks is currently estimated at less than a
1441 second.
1442
1443 The command takes no arguments. It performs the following steps (if
1444 the RTC is more than 1 second away from the system clock):
1445
1446 1. Remember the currently estimated gain or loss rate of the RTC
1447 and flush the previous measurements.
1448
1449 2. Step the real-time clock to bring it within a second of the
1450 system clock.
1451
1452 3. Make several measurements to accurately determine the new
1453 offset between the RTC and the system clock (i.e. the remaining
1454 fraction of a second error).
1455
1456 4. Save the RTC parameters to the RTC file (specified with the
1457 rtcfile directive in the configuration file).
1458
1459
1460
1461 The last step is done as a precaution against the computer
1462 suffering a power failure before either the daemon exits or the
1463 writertc command is issued.
1464
1465 chronyd will still work perfectly well both whilst operating and
1466 across machine reboots even if the trimrtc command is never used
1467 (and the RTC is allowed to drift away from true time). The trimrtc
1468 command is provided as a method by which it can be corrected, in a
1469 manner compatible with chronyd using it to maintain accurate time
1470 across machine reboots.
1471
1472 The trimrtc command can be executed automatically by chronyd with
1473 the rtcautotrim directive in the configuration file.
1474
1475 writertc
1476 The writertc command writes the currently estimated error and gain
1477 or loss rate parameters for the RTC to the RTC file (specified with
1478 the rtcfile directive). This information is also written
1479 automatically when chronyd is killed (by the SIGHUP, SIGINT,
1480 SIGQUIT or SIGTERM signals) or when the trimrtc command is issued.
1481
1482 Other daemon commands
1483 cyclelogs
1484 The cyclelogs command causes all of chronyd's open log files to be
1485 closed and re-opened. This allows them to be renamed so that they
1486 can be periodically purged. An example of how to do this is shown
1487 below.
1488
1489 # mv /var/log/chrony/measurements.log /var/log/chrony/measurements1.log
1490 # chronyc cyclelogs
1491 # rm /var/log/chrony/measurements1.log
1492
1493 dump
1494 The dump command causes chronyd to write its current history of
1495 measurements for each of its sources to dump files in the directory
1496 specified in the configuration file by the dumpdir directive and
1497 also write server NTS keys and client NTS cookies to the directory
1498 specified by the ntsdumpdir directive. Note that chronyd does this
1499 automatically when it exits. This command is mainly useful for
1500 inspection whilst chronyd is running.
1501
1502 rekey
1503 The rekey command causes chronyd to re-read the key file specified
1504 in the configuration file by the keyfile directive. It also
1505 re-reads the server NTS keys if ntsdumpdir is specified and
1506 automatic rotation is disabled in the configuration file.
1507
1508 reset sources
1509 The reset sources command causes chronyd to drop all measurements
1510 and switch to the unsynchronised state. This command can help
1511 chronyd with recovery when the measurements are known to be no
1512 longer valid or accurate, e.g. due to moving the computer to a
1513 different network, or resuming the computer from a low-power state
1514 (which resets the system clock). chronyd will drop the measurements
1515 automatically when it detects the clock has made an unexpected
1516 jump, but the detection is not completely reliable.
1517
1518 shutdown
1519 The shutdown command causes chronyd to exit. This is equivalent to
1520 sending the process the SIGTERM signal.
1521
1522 Client commands
1523 dns option
1524 The dns command configures how hostnames and IP addresses are
1525 resolved in chronyc. IP addresses can be resolved to hostnames when
1526 printing results of sources, sourcestats, tracking and clients
1527 commands. Hostnames are resolved in commands that take an address
1528 as argument.
1529
1530 There are five options:
1531
1532 dns -n
1533 Disables resolving IP addresses to hostnames. Raw IP addresses
1534 will be displayed.
1535
1536 dns +n
1537 Enables resolving IP addresses to hostnames. This is the
1538 default unless chronyc was started with -n option.
1539
1540 dns -4
1541 Resolves hostnames only to IPv4 addresses.
1542
1543 dns -6
1544 Resolves hostnames only to IPv6 addresses.
1545
1546 dns -46
1547 Resolves hostnames to both address families. This is the
1548 default behaviour unless chronyc was started with the -4 or -6
1549 option.
1550
1551 timeout timeout
1552 The timeout command sets the initial timeout for chronyc requests
1553 in milliseconds. If no response is received from chronyd, the
1554 timeout is doubled and the request is resent. The maximum number of
1555 retries is configured with the retries command.
1556
1557 By default, the timeout is 1000 milliseconds.
1558
1559 retries retries
1560 The retries command sets the maximum number of retries for chronyc
1561 requests before giving up. The response timeout is controlled by
1562 the timeout command.
1563
1564 The default is 2.
1565
1566 keygen [id [type [bits]]]
1567 The keygen command generates a key that can be added to the key
1568 file (specified with the keyfile directive) to allow NTP
1569 authentication between server and client, or peers. The key is
1570 generated from the /dev/urandom device and it is printed to
1571 standard output.
1572
1573 The command has three optional arguments. The first argument is the
1574 key number (by default 1), which will be specified with the key
1575 option of the server or peer directives in the configuration file.
1576 The second argument is the name of the hash function or cipher (by
1577 default SHA1, or MD5 if SHA1 is not available). The third argument
1578 is the length of the key in bits if a hash function was selected,
1579 between 80 and 4096 bits (by default 160 bits).
1580
1581 An example is:
1582
1583 keygen 73 SHA1 256
1584
1585 which generates a 256-bit SHA1 key with number 73. The printed line
1586 should then be securely transferred and added to the key files on
1587 both server and client, or peers. A different key should be
1588 generated for each client or peer.
1589
1590 An example using the AES128 cipher is:
1591
1592 keygen 151 AES128
1593
1594 exit, quit
1595 The exit and quit commands exit from chronyc and return the user to
1596 the shell.
1597
1598 help
1599 The help command displays a summary of the commands and their
1600 arguments.
1601
1603 chrony.conf(5), chronyd(8)
1604
1606 For instructions on how to report bugs, please visit
1607 https://chrony.tuxfamily.org/.
1608
1610 chrony was written by Richard Curnow, Miroslav Lichvar, and others.
1611
1612
1613
1614chrony 4.2 2021-12-16 CHRONYC(1)