1181834Sroberto@node ntpdc Invocation
2181834Sroberto@section Invoking ntpdc
3181834Sroberto@pindex ntpdc
4181834Sroberto@cindex vendor-specific NTP query program
5181834Sroberto@ignore
6181834Sroberto# 
7181834Sroberto# EDIT THIS FILE WITH CAUTION  (ntpdc-opts.texi)
8181834Sroberto# 
9200576Sroberto# It has been AutoGen-ed  Tuesday December  8, 2009 at 08:14:02 AM EST
10181834Sroberto# From the definitions    ntpdc-opts.def
11181834Sroberto# and the template file   aginfo.tpl
12181834Sroberto@end ignore
13181834SrobertoThis program has no explanation.
14181834Sroberto
15181834SrobertoThe
16181834Sroberto[= prog-name =]
17181834Srobertoutility program is used to query an NTP daemon about its
18181834Srobertocurrent state and to request changes in that state.
19181834SrobertoIt uses NTP mode 7 control message formats described in the source code.
20181834SrobertoThe program may
21181834Srobertobe run either in interactive mode or controlled using command line
22181834Srobertoarguments.
23181834SrobertoExtensive state and statistics information is available
24181834Srobertothrough the
25181834Sroberto[= prog-name =]
26181834Srobertointerface.
27181834SrobertoIn addition, nearly all the
28181834Srobertoconfiguration options which can be specified at startup using
29181834Srobertontpd's configuration file may also be specified at run time using
30181834Sroberto[= prog-name =] .
31181834Sroberto
32181834Sroberto
33181834Sroberto
34181834SrobertoThis section was generated by @strong{AutoGen},
35181834Srobertothe aginfo template and the option descriptions for the @command{ntpdc} program.  It documents the ntpdc usage text and option meanings.
36181834Sroberto
37181834SrobertoThis software is released under a specialized copyright license.
38181834Sroberto
39181834Sroberto@menu
40181834Sroberto* ntpdc usage::                  ntpdc usage help (-?)
41181834Sroberto* ntpdc command::                command option (-c)
42181834Sroberto* ntpdc debug-level::            debug-level option (-d)
43181834Sroberto* ntpdc interactive::            interactive option (-i)
44181834Sroberto* ntpdc ipv4::                   ipv4 option (-4)
45181834Sroberto* ntpdc ipv6::                   ipv6 option (-6)
46181834Sroberto* ntpdc listpeers::              listpeers option (-l)
47181834Sroberto* ntpdc numeric::                numeric option (-n)
48181834Sroberto* ntpdc peers::                  peers option (-p)
49181834Sroberto* ntpdc set-debug-level::        set-debug-level option (-D)
50181834Sroberto* ntpdc showpeers::              showpeers option (-s)
51181834Sroberto@end menu
52181834Sroberto
53181834Sroberto@node ntpdc usage
54181834Sroberto@subsection ntpdc usage help (-?)
55181834Sroberto@cindex ntpdc usage
56181834Sroberto
57181834SrobertoThis is the automatically generated usage text for ntpdc:
58181834Sroberto
59181834Sroberto@exampleindent 0
60181834Sroberto@example
61200576Srobertontpdc - vendor-specific NTP query program - Ver. 4.2.5p247-RC
62181834SrobertoUSAGE:  ntpdc [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]... [ host ...]
63181834Sroberto  Flg Arg Option-Name    Description
64181834Sroberto   -4 no  ipv4           Force IPv4 DNS name resolution
65200576Sroberto                                - prohibits these options:
66200576Sroberto                                ipv6
67181834Sroberto   -6 no  ipv6           Force IPv6 DNS name resolution
68200576Sroberto                                - prohibits these options:
69200576Sroberto                                ipv4
70181834Sroberto   -c Str command        run a command and exit
71181834Sroberto                                - may appear multiple times
72181834Sroberto   -l no  listpeers      Print a list of the peers
73181834Sroberto                                - prohibits these options:
74181834Sroberto                                command
75181834Sroberto   -p no  peers          Print a list of the peers
76181834Sroberto                                - prohibits these options:
77181834Sroberto                                command
78181834Sroberto   -s no  showpeers      Show a list of the peers
79181834Sroberto                                - prohibits these options:
80181834Sroberto                                command
81181834Sroberto   -i no  interactive    Force ntpq to operate in interactive mode
82181834Sroberto                                - prohibits these options:
83181834Sroberto                                command
84181834Sroberto                                listpeers
85181834Sroberto                                peers
86181834Sroberto                                showpeers
87181834Sroberto   -d no  debug-level    Increase output debug message level
88181834Sroberto                                - may appear multiple times
89181834Sroberto   -D Str set-debug-level Set the output debug message level
90181834Sroberto                                - may appear multiple times
91181834Sroberto   -n no  numeric        numeric host addresses
92181834Sroberto      opt version        Output version information and exit
93200576Sroberto   -? no  help           Display extended usage information and exit
94181834Sroberto   -! no  more-help      Extended usage information passed thru pager
95181834Sroberto   -> opt save-opts      Save the option state to a config file
96181834Sroberto   -< Str load-opts      Load options from a config file
97181834Sroberto                                - disabled as --no-load-opts
98181834Sroberto                                - may appear multiple times
99181834Sroberto
100181834SrobertoOptions are specified by doubled hyphens and their name
101181834Srobertoor by a single hyphen and the flag character.
102181834Sroberto
103181834SrobertoThe following option preset mechanisms are supported:
104181834Sroberto - reading file /users/stenn/.ntprc
105181834Sroberto - reading file /deacon/backroom/snaps/ntp-stable/ntpdc/.ntprc
106181834Sroberto - examining environment variables named NTPDC_*
107181834Sroberto
108181834SrobertoThe
109181834Sroberto[= prog-name =]
110181834Srobertoutility program is used to query an NTP daemon about its
111181834Srobertocurrent state and to request changes in that state.
112181834SrobertoIt uses NTP mode 7 control message formats described in the source code.
113181834SrobertoThe program may
114181834Srobertobe run either in interactive mode or controlled using command line
115181834Srobertoarguments.
116181834SrobertoExtensive state and statistics information is available
117181834Srobertothrough the
118181834Sroberto[= prog-name =]
119181834Srobertointerface.
120181834SrobertoIn addition, nearly all the
121181834Srobertoconfiguration options which can be specified at startup using
122181834Srobertontpd's configuration file may also be specified at run time using
123181834Sroberto[= prog-name =] .
124181834Sroberto
125181834Srobertoplease send bug reports to:  http://bugs.ntp.org, bugs@@ntp.org
126181834Sroberto@end example
127181834Sroberto@exampleindent 4
128181834Sroberto
129181834Sroberto@node ntpdc ipv4
130181834Sroberto@subsection ipv4 option (-4)
131181834Sroberto@cindex ntpdc-ipv4
132181834Sroberto
133181834SrobertoThis is the ``force ipv4 dns name resolution'' option.
134181834Sroberto
135181834SrobertoThis option has some usage constraints.  It:
136181834Sroberto@itemize @bullet
137181834Sroberto@item
138181834Srobertois a member of the ipv4 class of options.
139181834Sroberto@end itemize
140181834Sroberto
141181834SrobertoForce DNS resolution of following host names on the command line
142181834Srobertoto the IPv4 namespace.
143181834Sroberto
144181834Sroberto@node ntpdc ipv6
145181834Sroberto@subsection ipv6 option (-6)
146181834Sroberto@cindex ntpdc-ipv6
147181834Sroberto
148181834SrobertoThis is the ``force ipv6 dns name resolution'' option.
149181834Sroberto
150181834SrobertoThis option has some usage constraints.  It:
151181834Sroberto@itemize @bullet
152181834Sroberto@item
153181834Srobertois a member of the ipv4 class of options.
154181834Sroberto@end itemize
155181834Sroberto
156181834SrobertoForce DNS resolution of following host names on the command line
157181834Srobertoto the IPv6 namespace.
158181834Sroberto
159181834Sroberto@node ntpdc command
160181834Sroberto@subsection command option (-c)
161181834Sroberto@cindex ntpdc-command
162181834Sroberto
163181834SrobertoThis is the ``run a command and exit'' option.
164181834Sroberto
165181834SrobertoThis option has some usage constraints.  It:
166181834Sroberto@itemize @bullet
167181834Sroberto@item
168181834Srobertomay appear an unlimited number of times.
169181834Sroberto@end itemize
170181834Sroberto
171181834SrobertoThe following argument is interpreted as an interactive format command
172181834Srobertoand is added to the list of commands to be executed on the specified
173181834Srobertohost(s).
174181834Sroberto
175181834Sroberto@node ntpdc listpeers
176181834Sroberto@subsection listpeers option (-l)
177181834Sroberto@cindex ntpdc-listpeers
178181834Sroberto
179181834SrobertoThis is the ``print a list of the peers'' option.
180181834Sroberto
181181834SrobertoThis option has some usage constraints.  It:
182181834Sroberto@itemize @bullet
183181834Sroberto@item
184181834Srobertomust not appear in combination with any of the following options:
185181834Srobertocommand.
186181834Sroberto@end itemize
187181834Sroberto
188181834SrobertoPrint a list of the peers known to the server as well as a summary of
189181834Srobertotheir state. This is equivalent to the 'listpeers' interactive command.
190181834Sroberto
191181834Sroberto@node ntpdc peers
192181834Sroberto@subsection peers option (-p)
193181834Sroberto@cindex ntpdc-peers
194181834Sroberto
195181834SrobertoThis is the ``print a list of the peers'' option.
196181834Sroberto
197181834SrobertoThis option has some usage constraints.  It:
198181834Sroberto@itemize @bullet
199181834Sroberto@item
200181834Srobertomust not appear in combination with any of the following options:
201181834Srobertocommand.
202181834Sroberto@end itemize
203181834Sroberto
204181834SrobertoPrint a list of the peers known to the server as well as a summary
205181834Srobertoof their state. This is equivalent to the 'peers' interactive command.
206181834Sroberto
207181834Sroberto@node ntpdc showpeers
208181834Sroberto@subsection showpeers option (-s)
209181834Sroberto@cindex ntpdc-showpeers
210181834Sroberto
211181834SrobertoThis is the ``show a list of the peers'' option.
212181834Sroberto
213181834SrobertoThis option has some usage constraints.  It:
214181834Sroberto@itemize @bullet
215181834Sroberto@item
216181834Srobertomust not appear in combination with any of the following options:
217181834Srobertocommand.
218181834Sroberto@end itemize
219181834Sroberto
220181834SrobertoPrint a list of the peers known to the server as well as a summary
221181834Srobertoof their state. This is equivalent to the 'dmpeers' interactive command.
222181834Sroberto
223181834Sroberto@node ntpdc interactive
224181834Sroberto@subsection interactive option (-i)
225181834Sroberto@cindex ntpdc-interactive
226181834Sroberto
227181834SrobertoThis is the ``force ntpq to operate in interactive mode'' option.
228181834Sroberto
229181834SrobertoThis option has some usage constraints.  It:
230181834Sroberto@itemize @bullet
231181834Sroberto@item
232181834Srobertomust not appear in combination with any of the following options:
233181834Srobertocommand, listpeers, peers, showpeers.
234181834Sroberto@end itemize
235181834Sroberto
236181834SrobertoForce ntpq to operate in interactive mode.  Prompts will be written
237181834Srobertoto the standard output and commands read from the standard input.
238181834Sroberto
239181834Sroberto@node ntpdc debug-level
240181834Sroberto@subsection debug-level option (-d)
241181834Sroberto@cindex ntpdc-debug-level
242181834Sroberto
243181834SrobertoThis is the ``increase output debug message level'' option.
244181834Sroberto
245181834SrobertoThis option has some usage constraints.  It:
246181834Sroberto@itemize @bullet
247181834Sroberto@item
248181834Srobertomay appear an unlimited number of times.
249181834Sroberto@item
250181834Srobertomust be compiled in by defining @code{DEBUG} during the compilation.
251181834Sroberto@end itemize
252181834Sroberto
253181834SrobertoIncrease the debugging message output level.
254181834Sroberto
255181834Sroberto@node ntpdc set-debug-level
256181834Sroberto@subsection set-debug-level option (-D)
257181834Sroberto@cindex ntpdc-set-debug-level
258181834Sroberto
259181834SrobertoThis is the ``set the output debug message level'' option.
260181834Sroberto
261181834SrobertoThis option has some usage constraints.  It:
262181834Sroberto@itemize @bullet
263181834Sroberto@item
264181834Srobertomay appear an unlimited number of times.
265181834Sroberto@item
266181834Srobertomust be compiled in by defining @code{DEBUG} during the compilation.
267181834Sroberto@end itemize
268181834Sroberto
269181834SrobertoSet the output debugging level.  Can be supplied multiple times,
270181834Srobertobut each overrides the previous value(s).
271181834Sroberto
272181834Sroberto@node ntpdc numeric
273181834Sroberto@subsection numeric option (-n)
274181834Sroberto@cindex ntpdc-numeric
275181834Sroberto
276181834SrobertoThis is the ``numeric host addresses'' option.
277181834SrobertoOutput all host addresses in dotted-quad numeric format rather than
278181834Srobertoconverting to the canonical host names. 
279