1181834Sroberto@node sntp Invocation
2181834Sroberto@section Invoking sntp
3181834Sroberto@pindex sntp
4181834Sroberto@cindex standard SNTP program
5181834Sroberto@ignore
6181834Sroberto# 
7181834Sroberto# EDIT THIS FILE WITH CAUTION  (sntp-opts.texi)
8181834Sroberto# 
9200576Sroberto# It has been AutoGen-ed  Tuesday December  8, 2009 at 08:14:51 AM EST
10181834Sroberto# From the definitions    sntp-opts.def
11181834Sroberto# and the template file   aginfo.tpl
12181834Sroberto@end ignore
13181834SrobertoThis program has no explanation.
14181834Sroberto
15181834Sroberto.I sntp
16181834Srobertocan be used as a SNTP client to query a NTP or SNTP server and either display
17181834Srobertothe time or set the local system's time (given suitable privilege).  It can be
18181834Srobertorun as an interactive command or in a
19181834Sroberto.I cron
20181834Srobertojob.
21181834SrobertoNTP is the Network Time Protocol (RFC 1305) and SNTP is the
22181834SrobertoSimple Network Time Protocol (RFC 2030, which supersedes RFC 1769).
23181834Sroberto
24181834SrobertoThis section was generated by @strong{AutoGen},
25181834Srobertothe aginfo template and the option descriptions for the @command{sntp} program.  It documents the sntp usage text and option meanings.
26181834Sroberto
27181834SrobertoThis software is released under a specialized copyright license.
28181834Sroberto
29181834Sroberto@menu
30181834Sroberto* sntp usage::                  sntp usage help (-?)
31181834Sroberto* sntp adjtime::                adjtime option (-a)
32181834Sroberto* sntp extraverbose::           extraverbose option (-V)
33181834Sroberto* sntp ipv4::                   ipv4 option (-4)
34181834Sroberto* sntp ipv6::                   ipv6 option (-6)
35181834Sroberto* sntp megaverbose::            megaverbose option (-W)
36181834Sroberto* sntp normalverbose::          normalverbose option (-v)
37181834Sroberto* sntp settimeofday::           settimeofday option (-r)
38181834Sroberto* sntp unprivport::             unprivport option (-u)
39181834Sroberto@end menu
40181834Sroberto
41181834Sroberto@node sntp usage
42181834Sroberto@subsection sntp usage help (-?)
43181834Sroberto@cindex sntp usage
44181834Sroberto
45181834SrobertoThis is the automatically generated usage text for sntp:
46181834Sroberto
47181834Sroberto@exampleindent 0
48181834Sroberto@example
49200576Srobertosntp - standard SNTP program - Ver. 4.2.5p247-RC
50200576SrobertoUSAGE:  sntp [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]... ...
51200576Sroberto  Flg Arg Option-Name    Description
52200576Sroberto   -4 no  ipv4           Force IPv4 DNS name resolution
53200576Sroberto                                - prohibits these options:
54200576Sroberto                                ipv6
55200576Sroberto   -6 no  ipv6           Force IPv6 DNS name resolution
56200576Sroberto                                - prohibits these options:
57200576Sroberto                                ipv4
58200576Sroberto   -d no  normalverbose  Normal verbose
59200576Sroberto   -K Str kod            KoD history filename
60200576Sroberto   -p no  syslog         Logging with syslog
61200576Sroberto                                - prohibits these options:
62200576Sroberto                                filelog
63200576Sroberto   -l Str filelog        Logging to specified logfile
64200576Sroberto                                - prohibits these options:
65200576Sroberto                                syslog
66200576Sroberto   -s no  settod         Set (step) the time with settimeofday()
67200576Sroberto                                - prohibits these options:
68200576Sroberto                                adjtime
69200576Sroberto   -j no  adjtime        Set (slew) the time with adjtime()
70200576Sroberto                                - prohibits these options:
71200576Sroberto                                settod
72200576Sroberto   -b Str broadcast      Use broadcasts to the address specified for synchronisation
73200576Sroberto   -t Num timeout        Specify the number of seconds to wait for broadcasts
74200576Sroberto   -a Num authentication Enable authentication with the key keyno. This option is used as -a keyno
75200576Sroberto   -k Str keyfile        Specify a keyfile. SNTP will look in this file for the key specified with -a
76200576Sroberto      opt version        Output version information and exit
77200576Sroberto   -? no  help           Display extended usage information and exit
78200576Sroberto   -! no  more-help      Extended usage information passed thru pager
79200576Sroberto   -> opt save-opts      Save the option state to a config file
80200576Sroberto   -< Str load-opts      Load options from a config file
81200576Sroberto                                - disabled as --no-load-opts
82200576Sroberto                                - may appear multiple times
83200576Sroberto
84200576SrobertoOptions are specified by doubled hyphens and their name
85200576Srobertoor by a single hyphen and the flag character.
86200576Sroberto
87200576SrobertoThe following option preset mechanisms are supported:
88200576Sroberto - reading file /users/stenn/.ntprc
89200576Sroberto - reading file /deacon/backroom/snaps/ntp-stable/sntp/.ntprc
90200576Sroberto - examining environment variables named SNTP_*
91200576Sroberto
92200576Sroberto.I sntp
93200576Srobertocan be used as a SNTP client to query a NTP or SNTP server and either display
94200576Srobertothe time or set the local system's time (given suitable privilege).  It can be
95200576Srobertorun as an interactive command or in a
96200576Sroberto.I cron
97200576Srobertojob.
98200576SrobertoNTP is the Network Time Protocol (RFC 1305) and SNTP is the
99200576SrobertoSimple Network Time Protocol (RFC 2030, which supersedes RFC 1769).
100200576Sroberto
101200576Srobertoplease send bug reports to:  http://bugs.ntp.org, bugs@@ntp.org
102181834Sroberto@end example
103181834Sroberto@exampleindent 4
104181834Sroberto
105181834Sroberto@node sntp ipv4
106181834Sroberto@subsection ipv4 option (-4)
107181834Sroberto@cindex sntp-ipv4
108181834Sroberto
109181834SrobertoThis is the ``force ipv4 dns name resolution'' option.
110181834Sroberto
111181834SrobertoThis option has some usage constraints.  It:
112181834Sroberto@itemize @bullet
113181834Sroberto@item
114181834Srobertois a member of the ipv4 class of options.
115181834Sroberto@end itemize
116181834Sroberto
117181834SrobertoForce DNS resolution of following host names on the command line
118181834Srobertoto the IPv4 namespace.
119181834Sroberto
120181834Sroberto@node sntp ipv6
121181834Sroberto@subsection ipv6 option (-6)
122181834Sroberto@cindex sntp-ipv6
123181834Sroberto
124181834SrobertoThis is the ``force ipv6 dns name resolution'' option.
125181834Sroberto
126181834SrobertoThis option has some usage constraints.  It:
127181834Sroberto@itemize @bullet
128181834Sroberto@item
129181834Srobertois a member of the ipv4 class of options.
130181834Sroberto@end itemize
131181834Sroberto
132181834SrobertoForce DNS resolution of following host names on the command line
133181834Srobertoto the IPv6 namespace.
134181834Sroberto
135181834Sroberto@node sntp unprivport
136181834Sroberto@subsection unprivport option (-u)
137181834Sroberto@cindex sntp-unprivport
138181834Sroberto
139181834SrobertoThis is the ``use an unprivileged port'' option.
140181834SrobertoUse an unprivilegded UDP port for our queries.
141181834Sroberto
142181834Sroberto@node sntp normalverbose
143181834Sroberto@subsection normalverbose option (-v)
144181834Sroberto@cindex sntp-normalverbose
145181834Sroberto
146181834SrobertoThis is the ``slightly verbose'' option.
147181834Sroberto
148181834SrobertoThis option has some usage constraints.  It:
149181834Sroberto@itemize @bullet
150181834Sroberto@item
151181834Srobertomust not appear in combination with any of the following options:
152181834Srobertoextraverbose, megaverbose.
153181834Sroberto@end itemize
154181834Sroberto
155181834SrobertoDiagnostic messages for non-fatal errors and a limited amount of
156181834Srobertotracing should be written to standard error.  Fatal ones always
157181834Srobertoproduce a diagnostic.  This option should be set when there is a
158181834Srobertosuspected problem with the server, network or the source.
159181834Sroberto
160181834Sroberto@node sntp extraverbose
161181834Sroberto@subsection extraverbose option (-V)
162181834Sroberto@cindex sntp-extraverbose
163181834Sroberto
164181834SrobertoThis is the ``extra verbose'' option.
165181834Sroberto
166181834SrobertoThis option has some usage constraints.  It:
167181834Sroberto@itemize @bullet
168181834Sroberto@item
169181834Srobertomust not appear in combination with any of the following options:
170181834Srobertonormalverbose, megaverbose.
171181834Sroberto@end itemize
172181834Sroberto
173181834SrobertoProduce more and less comprehensible output, mainly for investigating
174181834Srobertoproblems with apparently inconsistent timestamps.  This option should
175181834Srobertobe set when the program fails with a message indicating that is the
176181834Srobertotrouble.
177181834Sroberto
178181834Sroberto@node sntp megaverbose
179181834Sroberto@subsection megaverbose option (-W)
180181834Sroberto@cindex sntp-megaverbose
181181834Sroberto
182181834SrobertoThis is the ``mega verbose'' option.
183181834Sroberto
184181834SrobertoThis option has some usage constraints.  It:
185181834Sroberto@itemize @bullet
186181834Sroberto@item
187181834Srobertomust not appear in combination with any of the following options:
188181834Srobertonormalverbose, extraverbose.
189181834Sroberto@end itemize
190181834Sroberto
191181834SrobertoVery verbose debugging output that will interfere with the timing
192181834Srobertowhen writing to the terminal (because of line buffered output from C).
193181834SrobertoNote that the times produced by this are the corrections needed, and
194181834Srobertonot the error in the local clock.  This option should be set only when
195181834Srobertodebugging the source.
196181834Sroberto
197181834Sroberto@node sntp settimeofday
198181834Sroberto@subsection settimeofday option (-r)
199181834Sroberto@cindex sntp-settimeofday
200181834Sroberto
201181834SrobertoThis is the ``set (step) the time with settimeofday()'' option.
202181834Sroberto
203181834SrobertoThis option has some usage constraints.  It:
204181834Sroberto@itemize @bullet
205181834Sroberto@item
206181834Srobertomust not appear in combination with any of the following options:
207181834Srobertoadjtime.
208181834Sroberto@end itemize
209181834Sroberto
210181834Sroberto
211181834Sroberto
212181834Sroberto@node sntp adjtime
213181834Sroberto@subsection adjtime option (-a)
214181834Sroberto@cindex sntp-adjtime
215181834Sroberto
216181834SrobertoThis is the ``set (slew) the time with adjtime()'' option.
217181834Sroberto
218181834SrobertoThis option has some usage constraints.  It:
219181834Sroberto@itemize @bullet
220181834Sroberto@item
221181834Srobertomust not appear in combination with any of the following options:
222181834Srobertosettimeofday.
223181834Sroberto@end itemize
224181834Sroberto
225181834Sroberto
226