ntpq(1) User Commands ntpq(1) (NAME) ntpq - NTP (SYNOPSIS) ntpq [-flags] [-flag [value]] [--option-name[[=| ]value]] [ host ...] (DESCRIPTION) ntpq NTP NTP / . (interactive) . (pretty- printed) . ntpq (peers) . ntpq NTP localhost . ntpq NTP localhost . ntpq (prompt) . ntpq NTP mode 6 NTP . NTP UDP . ntpq (timeout) . -4 (resolution) IPv4 -6 IPv6 . "NTP Debugging Techniques" . -i -n () () . ntpq . (Internal Commands) . . ntpq NTP . . ? [command] help [command] `?' ntpq . `?' . addvars name[=value][,...] rmvars name[,...] clearvars showvars name[=value] =value . ntpq readlist writelist . addvars . (white space) . rmvars clearvars . showvars . authenticate [yes|no] ntpq (write) . authenticate yes ntpq . . authenticate ntpq . cooked <<>> (cooked) ntpq . ntpq `?' . debug [more|less|off] . . delay [milliseconds] . ( ) . . . drefid [hash|ipv4] refid IPv4 . refid IPv4 . exit ntpq. host [name] . name . . hostnames [yes|no] yes . no . yes -n . . keyid [keyid] . controlkey . keyid . keytype [digest] (digest) MD5 . ntpq OpenSSL OpenSSL digest OpenSSL . keytype digest . ntpversion [1|2|3|4] NTP ntpq . 3 mode 6 ( ) 1 NTP . 1 . NTP . passwd ( ) . NTP . poll [n] [verbose] NTP n (poll) . Poll . quit ntpq. raw . / ( ) . timeout [milliseconds] . . . ntpq . version ntpq. (association id) . . . peers mreadlist mreadvar . apeers : peers refid . associations : o o o o o o o o o o authinfo : (uncached) . clocklist [associd] cl [associd] . clockvar [associd] [name[=value][] ,...] cv [associd] [name[=value][] ,...] . :config configuration command line . . . config-from-file filename filename . . . ifstats : (broadcast) (drop) ttl mc (uptime). . iostats / : (low water refills) . kerninfo PPS: associd status pll offset pll frequency maximum error estimated error kernel status pll time constant precision frequency tolerance pps frequency pps stability pps jitter calibration interval calibration cycles jitter exceeded stability exceeded calibration errors. ntpq . (precision) precision . lassociations associations . lopeers [-4|-6] dstadr ( IP ). lpassociations . lpeers [-4|-6] ( IP ). monstats (monitor facility): (enabled) . mreadlist associdlo associdhi mrl associdlo associdhi readlist . mreadvar associdlo associdhi [name][,...] . mrv associdlo associdhi [name][,...] readvar . . mrulist [limited | kod | mincount=count | laddr=localaddr | sort=[-]sortorder | resany=hexmask | resall=hexmask] . sort=[-]sortorder ntpd(8) . limited kod KoD . mincount=count count . laddr=localaddr localaddr . resany=hexmask resall=hexmask hexmask 0x . sortorder lstint addr avgint, count lstint `-' . : lstint MRU ntpq. avgint . rstr . restrict 0x400 (kod) 0x20 (limited) . r L K (discarding) KoD. m (packet mode). v . count . rport . remote address DNS DNS . opeers [-4 | -6] dstadr ( IP ) refid. passociations associations . peers : [tally] select remote ( IP) . -w ntpq . refid IP st (stratum): 0 1 ... 16 t u: unicast manycast b: broadcast multicast p: pool l: ( ) s: () A: manycast B: broadcast M: multicast when `-' poll (poll) reach ( ) delay offset jitter RMS . pstats associd associd : associd . readlist [associd] rl [associd] . associd . readvar [associd name[=value] [, ...]] rv [associd name[=value] [, ...]] (peer). associd System Variables Peer Variables . associd . name . associd . . (PPM) . NTP YYYYMM DD TTTT YYYY MM DD TTTT . reslist (restrict) ntpq. . saveconfig filename :config config-from-file NTP filename. ntpd(8) . filename date(1) : saveconfig ntp-%Y%m%d-%H%M%S.conf. savedconfig . . sysinfo : associd status system peer system peer mode leap indicator stratum log2 precision root delay root dispersion reference id reference time system jitter clock jitter clock wander broadcast delay symm. auth. delay. sysstats (uptime) : uptime sysstats reset packets received current version older version bad length or format authentication failed declined restricted rate limited KoD processed for time. timerstats (interval timer): (time since reset) (timer overruns) (calls to transmit). writelist associd (peer) . writevar associd name=value [, ...] . associd System Variables Peer Variables . associd . . Kiss (Status Words and Kiss Codes) (status words) . (association) . readlist associations () . . . ASCII . kiss-o'-death (KoD) . (reference identifier) ..SS " (System Variables)" readlist . . status version NTP processor system leap (0-3) stratum (1-15) precision (log2 s) rootdelay rootdisp refid reftime clock peer tc (log2 s) (3-17) mintc (log2 s) (3-10) offset frequency (PPM) sys_jitter (jitter) clk_wander (PPM) clk_jitter tai TAI-UTC () leapsec NTP expire NTP NIST (jitter) (wander) RMS . NTPv4 . NTPv4 OpenSSL Autokey: host Autokey ident Autokey flags ( Autokey ) digest OpenSSL signature / OpenSSL update NTP cert until NTP readlist (association) . . associd (association id) status srcadr IP () srcport () dstadr IP () dstport () leap (0-3) stratum (stratum) (0-15) precision (log2 s) rootdelay rootdisp refid reftime rec reach (octal) unreach hmode (1-6) pmode (1-5) hpoll (log2 s) (3-17) ppoll (log2 s) (3-17) headway (headway) (: flash keyid offset (offset) delay dispersion jitter bias / (unicast/broadcast) xleave (: bias (broadcast) (calibration volley) . (unicast) . xleave (interleaved symmetric) . . NTPv4 OpenSSL : flags ( Autokey ) host Autokey flags ( Autokey ) signature / OpenSSL (digest/signature) initsequence initkey timestamp Autokey ident Autokey (Clock Variables) clocklist . . associd status device timecode ASCII ( ) poll (poll) noreply badformat baddata fudgetime1 fudge fudgetime2 fudge stratum (stratum) refid flags (OPTIONS) -4, --ipv4 IPv4. : ipv6. IPv4 . -6, --ipv6 IPv6. : ipv4. IPv6 . -c cmd, --command=cmd . . () . -d, --debug-level . . -D number, --set-debug-level=number . . . -i, --interactive ntpq . : command peers. ntpq . . -n, --numeric . (dotted-quad) . --old-rv readvar . ntpq associd=... readvar ( rv) ( ntpq -c "rv 0 offset") . ntpq readvar . ntpq . -p, --peers (peers). : interactive. . 'peers' . -r keyword, --refid=keyword refid +S2. . . : hash ipv4 . keyword : ipv4 refid +S2 . -u, --unconnected UDP (unconnected UDP) ntpd ( Windows). UDP ntpd ( Windows). -w, --wide 'remote'. 'remote'. . -?, --help ..TP -!, --more-help (pager). -> [cfgfile], --save-opts [=cfgfile] cfgfile. (OPTION PRESETS) . . -< cfgfile, --load-opts=cfgfile, --no-load-opts cfgfile. no-load-opts rc ini . --no-load-opts . --version [{v|c|n}] . "v" . "c" "n" . (OPTION PRESETS) not presettable () ("RC" ".INI") : NTPQ_ or NTPQ ( ). homerc "$HOME" "." . .ntprc . (ENVIRONMENT) (OPTION PRESETS) . (FILES) (OPTION PRESETS) . (EXIT STATUS) : 0 (EXIT_SUCCESS) . 1 (EXIT_FAILURE) (syntax) . 66 (EX_NOINPUT) . 70 (EX_SOFTWARE) libopts . autogen-users@lists.sourceforge.net . . (AUTHORS) (The University of Delaware) Network Time Foundation (COPYRIGHT) (C) - The University of Delaware Network Time Foundation . NTP . (BUGS) : https://bugs.ntp.org bugs@ntp.org (NOTES) AutoGen ntpq . 4.2.8p18 25 May 2024 ntpq(1)