Lines Matching full:code

32 The @code{ntpq} utility program is used to
35 @code{ntpd}, the NTP daemon.
37 This document applies to version @value{VERSION} of @code{ntpq}.
55 The @code{ntpq} utility program is used to monitor NTP daemon @code{ntpd} operations and determine …
61 …embled, with raw and pretty-printed output options being available. The @code{ntpq} can also obta…
63code{ntpq} is executed, each of the requests will be sent to the NTP servers running on each of th…
65code{ntpq} uses NTP mode 6 packets to communicate with the NTP server, and hence can be used to qu…
67 …host name is expected, a @code{-4} qualifier preceding the host name forces DNS resolution to the …
80 @tab @code{/etc/ntp.conf}
81 @tab @code{-c}
82 @tab @code{conffile}
85 @tab @code{-f}
86 @tab @code{driftfile}
90 @tab @code{leapfile}
93 @tab @code{-p}
94 @tab @code{pidfile}
97 @tab @code{-l}
98 @tab @code{logfile}
102 @tab @code{includefile}
104 @tab @code{/var/NTP}
105 @tab @code{-s}
106 @tab @code{statsdir}
108 @tab @code{/usr/local/etc}
109 @tab @code{-k}
110 @tab @code{keysdir}
117 …nding a @code{>}, followed by a file name, to the command line. A number of interactive format co…
119 @table @code
121 @item @anchor{help} @code{? [}@kbd{command_keyword}@code{]}
122 @itemx @code{help [}@kbd{command_keyword}@code{]}
123 A @code{?} by itself will print a list of all the command keywords known to @code{ntpq}. A @code{?…
125 @item @anchor{addvars} >@code{addvars @kbd{name} [ = @kbd{value}] [...]}
126 @itemx @code{rmvars @kbd{name} [...]}
127 @itemx @code{clearvars}</dt>
129 @code{@kbd{name} = @kbd{value}}, where the @code{= @kbd{value}} is ignored,
131 @code{ntpq} maintains an internal list in which data to be included
132 in control messages can be assembled, and sent using the @code{readlist}
133 and @code{writelist} commands described below.
134 The @code{addvars} command allows variables and optional values
138 The @code{rmvars} command can be used to remove individual variables
140 while the @code{clearlist} command removes all variables from the list.
142 @item @anchor{cooked} @code{cooked}
145 @item @anchor{debug} @code{debug more | less | off}
148 @item @anchor{delay} @code{delay @kbd{milliseconds}}
151 @item @anchor{host} @code{host @kbd{name}}
155 @item @anchor{hostnames} @code{hostnames [yes | no]}
156 If @code{yes} is specified, host names are printed in information displays.
157 If @code{no} is specified, numeric addresses are printed instead.
158 The default is @code{yes},
159 unless modified using the command line @code{-n} switch.
161 @item @anchor{keyid} @code{keyid @kbd{keyid}}
164 This must correspond to a key ID configured in @code{ntp.conf} for this purpose.
166 @item @anchor{keytype} @code{keytype}
168 with default @code{MD5}.
171 …urrent selections are: @code{AES128CMAC}, @code{MD2}, @code{MD4}, @code{MD5}, @code{MDC2}, @code{R…
173 @item @anchor{ntpversion} @code{ntpversion 1 | 2 | 3 | 4}
174 Sets the NTP version number which @code{ntpq} claims in packets.
179 @item @anchor{passwd} @code{passwd}
181 The password must correspond to the key ID configured in @code{ntp.conf} for this purpose.
183 @item @anchor{quit} @code{quit}
184 Exit @code{ntpq}.
186 @item @anchor{raw} @code{raw}
189 @item @anchor{timeout} @code{timeout @kbd{milliseconds}}
192 Note that since @code{ntpq} retries each query once after a timeout
206 The exceptions are the @code{peers} command,
208 and the @code{mreadlist} and @code{mreadvar} commands,
212 @table @code
213 @item @code{associations}
216 @code{ind assid status conf reach auth condition last_event cnt}
221 @item @code{ind}
224 @item @code{assid}
227 @item @code{status}
230 @item @code{conf}
231 @tab @code{yes}: persistent, @code{no}: ephemeral
233 @item @code{reach}
234 @tab @code{yes}: reachable, @code{no}: unreachable
236 @item @code{auth}
237 @tab @code{ok}, @code{yes}, @code{bad} and @code{none}
239 @item @code{condition}
240 @tab selection status (see the @code{select} field of the @url{decode.html#peer, peer status word})
242 @item @code{last_event}
243 @tab event report (see the @code{event} field of the @url{decode.html#peer, peer status word})
245 @item @code{cnt}
246 event count (see the @code{count} field of the @url{decode.html#peer, peer status word})
290 With the exception of @code{sort=@kbd{sortorder}},
291 the options filter the list returned by @code{ntpd}.
292 The @code{limited} and @code{kod} options return only entries
295 The @code{mincount=@kbd{count}} option filters entries representing
296 less than @code{@kbd{count}} packets.
297 The @code{laddr=@kbd{localaddr}} option filters entries for packets
298 received on any local address other than @code{@kbd{localaddr}}.
299 @code{resany=@kbd{hexmask}} and @code{resall=@kbd{hexmask}}
301 of the bits in @code{@kbd{hexmask}}, which must begin with @code{0x}.
303 The @code{@kbd{sortorder}} defaults to @code{lstint} and may be any of
304 @code{addr}, @code{count}, @code{avgint}, @code{lstint}, or
311 @item @code{lstint}
314 address and the completion of the retrieval of the MRU list by @code{ntpq}
316 @item @code{avgint}
320 @item @code{rstr}
323 Most are copied unchanged from the matching @code{restrict} command,
327 @item @code{r}
329 Rate control indicator, either a period, @code{L} or @code{K} for
333 @item @code{m}
336 @item @code{v}
340 @item @code{count}
344 @item @code{rport}
348 @item @code{remote address}
355 @item @anchor{mreadvar} @code{mreadvar @kbd{assocID} @kbd{assocID} [ @kbd{variable_name} [ = @kbd{v…
356 @itemx @anchor{mrv} @code{mrv @kbd{assocID} @kbd{assocID} [ @kbd{variable_name} [ = @kbd{value}[ ..…
357 Perform the same function as the @code{readvar} command,
360 the most recent @code{associations} command.
362 @item @anchor{passoc} @code{passociations}
363 Perform the same function as the @code{associations command}, except that
366 @item @anchor{pe} @code{peers}
369 @code{[tally]remote refid st t when pool reach delay offset jitter}
373 @item @code{[tally]}
375 single-character code indicating current value of the @code{select} field
378 @item @code{remote}
382 @item @code{refid}
384 association ID or @url{decode.html#kiss, kiss code}.
386 @item @code{st}
390 @item @code{t}
392 @code{u}: unicast or manycast client,
393 @code{b}: broadcast or multicast client,
394 @code{l}: local (reference clock),
395 @code{s}: symmetric (peer),
396 @code{A}: manycast server,
397 @code{B}: broadcast server,
398 @code{M}: multicast server.
400 @item @code{when}
404 @item @code{poll}
408 @item @code{reach}
412 @item @code{delay}
416 @item @code{offset}
420 @item @code{jitter}
429 If @code{@kbd{assocID}} is zero,
435 In this case only, if the @code{@kbd{assocID}} is omitted, it is assumed zero.
443 @item @anchor{saveconfig} @code{saveconfig @kbd{filename}}
445 given with @code{:config} or @code{config-from-file},
449 appears in the @code{ntpd} configuration file.
450 @kbd{filename} can use @code{strftime()} format specifiers
452 @code{saveconfig ntp-%Y%m%d-%H%M%S.conf}.
453 The filename used is stored in system variable @code{savedconfig}.
458 If the @code{@kbd{assocID}} is zero, the variables are from the
461 The @code{@kbd{assocID}} is required,
464 @item @anchor{sysinfo} @code{sysinfo}
467 @item @anchor{sysstats} @code{sysstats}
479 These words are displayed in the @code{rv} and @code{as} commands
484 the code for the latest of which is included in the status word.
498 The following system variables appear in the @code{rv} billboard.
504 @item @code{status}
508 @item @code{version}
512 @item @code{processor}
516 @item @code{system}
520 @item @code{leap}
524 @item @code{stratum}
528 @item @code{precision}
532 @item @code{rootdelay}
536 @item @code{rootdisp}
540 @item @code{peer}
544 @item @code{tc}
547 @item @code{mintc}
550 @item @code{clock}
554 @item @code{refid}
555 reference ID or @url{decode.html#kiss, kiss code}
557 @item @code{reftime}
561 @item @code{offset}
565 @item @code{sys_jitter}
569 @item @code{frequency}
573 @item @code{clk_wander}
577 @item @code{clk_jitter}
581 @item @code{tai}
585 @item @code{leapsec}
589 @item @code{expire}
606 @item @code{host}
610 @item @code{ident}
614 @item @code{flags}
618 @item @code{digest}
622 @item @code{signature}
626 @item @code{update}
630 @item @code{cert}
634 @item @code{until}
644 The following peer variables appear in the @code{rv} billboard
651 @item @code{associd}
655 @item @code{status}
659 @item @code{srcadr}
660 @itemx @code{srcport}
664 @item @code{dstadr}
665 @itemx @code{dstport}
669 @item @code{leap}
673 @item @code{stratum}
677 @item @code{precision}
681 @item @code{rootdelay}
685 @item @code{rootdisp}
688 @item @code{refid}
690 reference ID or @url{decode.html#kiss, kiss code}
692 @item @code{reftime}
696 @item @code{reach}
700 @item @code{unreach}
704 @item @code{hmode}
708 @item @code{pmode}
712 @item @code{hpoll}
715 @item @code{ppoll}
719 @item @code{headway}
723 @item @code{flash}
727 @item @code{offset}
731 @item @code{delay}
735 @item @code{dispersion}
739 @item @code{jitter}
743 @item @code{ident}
747 @item @code{bias}
751 @item @code{xleave}
770 @item @code{flags}
774 @item @code{host}
778 @item @code{flags}
782 @item @code{signature}
786 @item @code{initsequence}
790 @item @code{initkey}
794 @item @code{timestamp}
804 The following clock variables appear in the @code{cv} billboard for each association with a referen…
808 @item @code{associd}
810 @item @code{status}
812 @item @code{device}
814 @item @code{timecode}
815 @tab ASCII time code string (specific to device)
816 @item @code{poll}
818 @item @code{noreply}
820 @item @code{badformat}
822 @item @code{baddata}
824 @item @code{fudgetime1}
826 @item @code{fudgetime2}
828 @item @code{stratum}
830 @item @code{refid}
832 @item @code{flags}