4 @cindex standard SNTP program
7 # EDIT THIS FILE WITH CAUTION (sntp-opts.texi)
9 # It has been AutoGen-ed Tuesday December 8, 2009 at 08:14:51 AM EST
10 # From the definitions sntp-opts.def
11 # and the template file aginfo.tpl
13 This program has no explanation.
16 can be used as a SNTP client to query a NTP or SNTP server and either display
17 the time or set the local system's time (given suitable privilege). It can be
18 run as an interactive command or in a
21 NTP is the Network Time Protocol (RFC 1305) and SNTP is the
22 Simple Network Time Protocol (RFC 2030, which supersedes RFC 1769).
24 This section was generated by @strong{AutoGen},
25 the aginfo template and the option descriptions for the @command{sntp} program. It documents the sntp usage text and option meanings.
27 This software is released under a specialized copyright license.
30 * sntp usage:: sntp usage help (-?)
31 * sntp adjtime:: adjtime option (-a)
32 * sntp extraverbose:: extraverbose option (-V)
33 * sntp ipv4:: ipv4 option (-4)
34 * sntp ipv6:: ipv6 option (-6)
35 * sntp megaverbose:: megaverbose option (-W)
36 * sntp normalverbose:: normalverbose option (-v)
37 * sntp settimeofday:: settimeofday option (-r)
38 * sntp unprivport:: unprivport option (-u)
42 @subsection sntp usage help (-?)
45 This is the automatically generated usage text for sntp:
49 sntp - standard SNTP program - Ver. 4.2.5p247-RC
50 USAGE: sntp [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]... ...
51 Flg Arg Option-Name Description
52 -4 no ipv4 Force IPv4 DNS name resolution
53 - prohibits these options:
55 -6 no ipv6 Force IPv6 DNS name resolution
56 - prohibits these options:
58 -d no normalverbose Normal verbose
59 -K Str kod KoD history filename
60 -p no syslog Logging with syslog
61 - prohibits these options:
63 -l Str filelog Logging to specified logfile
64 - prohibits these options:
66 -s no settod Set (step) the time with settimeofday()
67 - prohibits these options:
69 -j no adjtime Set (slew) the time with adjtime()
70 - prohibits these options:
72 -b Str broadcast Use broadcasts to the address specified for synchronisation
73 -t Num timeout Specify the number of seconds to wait for broadcasts
74 -a Num authentication Enable authentication with the key keyno. This option is used as -a keyno
75 -k Str keyfile Specify a keyfile. SNTP will look in this file for the key specified with -a
76 opt version Output version information and exit
77 -? no help Display extended usage information and exit
78 -! no more-help Extended usage information passed thru pager
79 -> opt save-opts Save the option state to a config file
80 -< Str load-opts Load options from a config file
81 - disabled as --no-load-opts
82 - may appear multiple times
84 Options are specified by doubled hyphens and their name
85 or by a single hyphen and the flag character.
87 The following option preset mechanisms are supported:
88 - reading file /users/stenn/.ntprc
89 - reading file /deacon/backroom/snaps/ntp-stable/sntp/.ntprc
90 - examining environment variables named SNTP_*
93 can be used as a SNTP client to query a NTP or SNTP server and either display
94 the time or set the local system's time (given suitable privilege). It can be
95 run as an interactive command or in a
98 NTP is the Network Time Protocol (RFC 1305) and SNTP is the
99 Simple Network Time Protocol (RFC 2030, which supersedes RFC 1769).
101 please send bug reports to: http://bugs.ntp.org, bugs@@ntp.org
106 @subsection ipv4 option (-4)
109 This is the ``force ipv4 dns name resolution'' option.
111 This option has some usage constraints. It:
114 is a member of the ipv4 class of options.
117 Force DNS resolution of following host names on the command line
118 to the IPv4 namespace.
121 @subsection ipv6 option (-6)
124 This is the ``force ipv6 dns name resolution'' option.
126 This option has some usage constraints. It:
129 is a member of the ipv4 class of options.
132 Force DNS resolution of following host names on the command line
133 to the IPv6 namespace.
135 @node sntp unprivport
136 @subsection unprivport option (-u)
137 @cindex sntp-unprivport
139 This is the ``use an unprivileged port'' option.
140 Use an unprivilegded UDP port for our queries.
142 @node sntp normalverbose
143 @subsection normalverbose option (-v)
144 @cindex sntp-normalverbose
146 This is the ``slightly verbose'' option.
148 This option has some usage constraints. It:
151 must not appear in combination with any of the following options:
152 extraverbose, megaverbose.
155 Diagnostic messages for non-fatal errors and a limited amount of
156 tracing should be written to standard error. Fatal ones always
157 produce a diagnostic. This option should be set when there is a
158 suspected problem with the server, network or the source.
160 @node sntp extraverbose
161 @subsection extraverbose option (-V)
162 @cindex sntp-extraverbose
164 This is the ``extra verbose'' option.
166 This option has some usage constraints. It:
169 must not appear in combination with any of the following options:
170 normalverbose, megaverbose.
173 Produce more and less comprehensible output, mainly for investigating
174 problems with apparently inconsistent timestamps. This option should
175 be set when the program fails with a message indicating that is the
178 @node sntp megaverbose
179 @subsection megaverbose option (-W)
180 @cindex sntp-megaverbose
182 This is the ``mega verbose'' option.
184 This option has some usage constraints. It:
187 must not appear in combination with any of the following options:
188 normalverbose, extraverbose.
191 Very verbose debugging output that will interfere with the timing
192 when writing to the terminal (because of line buffered output from C).
193 Note that the times produced by this are the corrections needed, and
194 not the error in the local clock. This option should be set only when
195 debugging the source.
197 @node sntp settimeofday
198 @subsection settimeofday option (-r)
199 @cindex sntp-settimeofday
201 This is the ``set (step) the time with settimeofday()'' option.
203 This option has some usage constraints. It:
206 must not appear in combination with any of the following options:
213 @subsection adjtime option (-a)
216 This is the ``set (slew) the time with adjtime()'' option.
218 This option has some usage constraints. It:
221 must not appear in combination with any of the following options: