4 @cindex standard NTP query program
7 # EDIT THIS FILE WITH CAUTION (ntpq-opts.texi)
9 # It has been AutoGen-ed December 10, 2009 at 05:03:28 AM by AutoGen 5.10
10 # From the definitions ntpq-opts.def
11 # and the template file aginfo.tpl
13 This program has no explanation.
17 utility program is used to query NTP servers which
18 implement the standard NTP mode 6 control message formats defined
19 in Appendix B of the NTPv3 specification RFC1305, requesting
20 information about current state and/or changes in that state.
21 The same formats are used in NTPv4, although some of the
22 variables have changed and new ones added.
24 This section was generated by @strong{AutoGen},
25 the aginfo template and the option descriptions for the @command{ntpq} program. It documents the ntpq usage text and option meanings.
27 This software is released under a specialized copyright license.
30 * ntpq usage:: ntpq usage help (-?)
31 * ntpq command:: command option (-c)
32 * ntpq debug-level:: debug-level option (-d)
33 * ntpq interactive:: interactive option (-i)
34 * ntpq ipv4:: ipv4 option (-4)
35 * ntpq ipv6:: ipv6 option (-6)
36 * ntpq numeric:: numeric option (-n)
37 * ntpq old-rv:: old-rv option
38 * ntpq peers:: peers option (-p)
39 * ntpq set-debug-level:: set-debug-level option (-D)
43 @subsection ntpq usage help (-?)
46 This is the automatically generated usage text for ntpq:
50 ntpq - standard NTP query program - Ver. 4.2.6
51 USAGE: ntpq [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]... [ host ...]
52 Flg Arg Option-Name Description
53 -4 no ipv4 Force IPv4 DNS name resolution
54 - prohibits these options:
56 -6 no ipv6 Force IPv6 DNS name resolution
57 - prohibits these options:
59 -c Str command run a command and exit
60 - may appear multiple times
61 -d no debug-level Increase output debug message level
62 - may appear multiple times
63 -D Str set-debug-level Set the output debug message level
64 - may appear multiple times
65 -p no peers Print a list of the peers
66 - prohibits these options:
68 -i no interactive Force ntpq to operate in interactive mode
69 - prohibits these options:
72 -n no numeric numeric host addresses
73 no old-rv Always output status line with readvar
74 opt version Output version information and exit
75 -? no help Display extended usage information and exit
76 -! no more-help Extended usage information passed thru pager
77 -> opt save-opts Save the option state to a config file
78 -< Str load-opts Load options from a config file
79 - disabled as --no-load-opts
80 - may appear multiple times
82 Options are specified by doubled hyphens and their name
83 or by a single hyphen and the flag character.
85 The following option preset mechanisms are supported:
86 - reading file /users/stenn/.ntprc
87 - reading file /deacon/backroom/snaps/ntp-stable/ntpq/.ntprc
88 - examining environment variables named NTPQ_*
92 utility program is used to query NTP servers which
93 implement the standard NTP mode 6 control message formats defined
94 in Appendix B of the NTPv3 specification RFC1305, requesting
95 information about current state and/or changes in that state.
96 The same formats are used in NTPv4, although some of the
97 variables have changed and new ones added.
99 please send bug reports to: http://bugs.ntp.org, bugs@@ntp.org
104 @subsection ipv4 option (-4)
107 This is the ``force ipv4 dns name resolution'' option.
109 This option has some usage constraints. It:
112 must not appear in combination with any of the following options:
116 Force DNS resolution of following host names on the command line
117 to the IPv4 namespace.
120 @subsection ipv6 option (-6)
123 This is the ``force ipv6 dns name resolution'' option.
125 This option has some usage constraints. It:
128 must not appear in combination with any of the following options:
132 Force DNS resolution of following host names on the command line
133 to the IPv6 namespace.
136 @subsection command option (-c)
139 This is the ``run a command and exit'' option.
141 This option has some usage constraints. It:
144 may appear an unlimited number of times.
147 The following argument is interpreted as an interactive format command
148 and is added to the list of commands to be executed on the specified
151 @node ntpq debug-level
152 @subsection debug-level option (-d)
153 @cindex ntpq-debug-level
155 This is the ``increase output debug message level'' option.
157 This option has some usage constraints. It:
160 may appear an unlimited number of times.
163 Increase the debugging message output level.
165 @node ntpq set-debug-level
166 @subsection set-debug-level option (-D)
167 @cindex ntpq-set-debug-level
169 This is the ``set the output debug message level'' option.
171 This option has some usage constraints. It:
174 may appear an unlimited number of times.
177 Set the output debugging level. Can be supplied multiple times,
178 but each overrides the previous value(s).
181 @subsection peers option (-p)
184 This is the ``print a list of the peers'' option.
186 This option has some usage constraints. It:
189 must not appear in combination with any of the following options:
193 Print a list of the peers known to the server as well as a summary
194 of their state. This is equivalent to the 'peers' interactive command.
196 @node ntpq interactive
197 @subsection interactive option (-i)
198 @cindex ntpq-interactive
200 This is the ``force ntpq to operate in interactive mode'' option.
202 This option has some usage constraints. It:
205 must not appear in combination with any of the following options:
209 Force ntpq to operate in interactive mode. Prompts will be written
210 to the standard output and commands read from the standard input.
213 @subsection numeric option (-n)
216 This is the ``numeric host addresses'' option.
217 Output all host addresses in dotted-quad numeric format rather than
218 converting to the canonical host names.
221 @subsection old-rv option
224 This is the ``always output status line with readvar'' option.
225 By default, ntpq now suppresses the associd=... line that
226 precedes the output of "readvar" (alias "rv") when a single
227 variable is requested, such as ntpq -c "rv 0 offset". This
228 option causes ntpq to include both lines of output for a
229 single-variable readvar. Using an environment variable to
230 preset this option in a script will enable both older and
231 newer ntpq to behave identically in this regard.