4 @cindex standard SNTP program
7 # EDIT THIS FILE WITH CAUTION (sntp-opts.texi)
9 # It has been AutoGen-ed December 10, 2009 at 05:07:53 AM by AutoGen 5.10
10 # From the definitions sntp-opts.def
11 # and the template file aginfo.tpl
13 This program has no explanation.
16 implements the Simple Network Time Protocol, and is used
17 to query an NTP or SNTP server and either
20 set the local system's time (given suitable privilege).
23 run interactively from the command line or as a
27 NTP and SNTP are defined by draft-ietf-ntp-ntpv4-proto-13, which
28 obsoletes RFC 4330 and RFC 1305.
30 This section was generated by @strong{AutoGen},
31 the aginfo template and the option descriptions for the @command{sntp} program. It documents the sntp usage text and option meanings.
33 This software is released under a specialized copyright license.
36 * sntp usage:: sntp usage help (-?)
37 * sntp adjtime:: adjtime option (-j)
38 * sntp authentication:: authentication option (-a)
39 * sntp broadcast:: broadcast option (-b)
40 * sntp filelog:: filelog option (-l)
41 * sntp ipv4:: ipv4 option (-4)
42 * sntp ipv6:: ipv6 option (-6)
43 * sntp keyfile:: keyfile option (-k)
44 * sntp kod:: kod option (-K)
45 * sntp normalverbose:: normalverbose option (-d)
46 * sntp settod:: settod option (-s)
47 * sntp syslog:: syslog option (-p)
48 * sntp timeout:: timeout option (-t)
52 @subsection sntp usage help (-?)
55 This is the automatically generated usage text for sntp:
59 sntp - standard SNTP program - Ver. 4.2.6
60 USAGE: sntp [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]... hostname-or-IP ...
61 Flg Arg Option-Name Description
62 -4 no ipv4 Force IPv4 DNS name resolution
63 - prohibits these options:
65 -6 no ipv6 Force IPv6 DNS name resolution
66 - prohibits these options:
68 -d no normalverbose Normal verbose
69 -K Str kod KoD history filename
70 -p no syslog Logging with syslog
71 - prohibits these options:
73 -l Str filelog Log to specified logfile
74 - prohibits these options:
76 -s no settod Set (step) the time with settimeofday()
77 - prohibits these options:
79 -j no adjtime Set (slew) the time with adjtime()
80 - prohibits these options:
82 -b Str broadcast Use broadcasts to the address specified for synchronisation
83 -t Num timeout Specify the number of seconds to wait for broadcasts
84 -a Num authentication Enable authentication with the key auth-keynumber
85 -k Str keyfile Specify a keyfile. SNTP will look in this file for the key specified with -a
86 opt version Output version information and exit
87 -? no help Display extended usage information and exit
88 -! no more-help Extended usage information passed thru pager
89 -> opt save-opts Save the option state to a config file
90 -< Str load-opts Load options from a config file
91 - disabled as --no-load-opts
92 - may appear multiple times
94 Options are specified by doubled hyphens and their name
95 or by a single hyphen and the flag character.
97 The following option preset mechanisms are supported:
98 - reading file /users/stenn/.ntprc
99 - reading file /deacon/backroom/snaps/ntp-stable/sntp/.ntprc
100 - examining environment variables named SNTP_*
103 implements the Simple Network Time Protocol, and is used
104 to query an NTP or SNTP server and either
107 set the local system's time (given suitable privilege).
110 run interactively from the command line or as a
114 NTP and SNTP are defined by draft-ietf-ntp-ntpv4-proto-13, which
115 obsoletes RFC 4330 and RFC 1305.
117 please send bug reports to: http://bugs.ntp.org, bugs@@ntp.org
122 @subsection ipv4 option (-4)
125 This is the ``force ipv4 dns name resolution'' option.
127 This option has some usage constraints. It:
130 must not appear in combination with any of the following options:
134 Force DNS resolution of following host names on the command line
135 to the IPv4 namespace.
138 @subsection ipv6 option (-6)
141 This is the ``force ipv6 dns name resolution'' option.
143 This option has some usage constraints. It:
146 must not appear in combination with any of the following options:
150 Force DNS resolution of following host names on the command line
151 to the IPv6 namespace.
153 @node sntp normalverbose
154 @subsection normalverbose option (-d)
155 @cindex sntp-normalverbose
157 This is the ``normal verbose'' option.
158 Diagnostic messages for non-fatal errors and a limited amount of
159 tracing should be written to standard error. Fatal ones always
160 produce a diagnostic. This option should be set when there is a
161 suspected problem with the server, network or the source.
164 @subsection kod option (-K)
167 This is the ``kod history filename'' option.
168 Modifies the filename to be used to persist the history of KoD
169 responses received from servers. The default is
173 @subsection syslog option (-p)
176 This is the ``logging with syslog'' option.
178 This option has some usage constraints. It:
181 must not appear in combination with any of the following options:
185 When this option is set all logging will be done using syslog.
188 @subsection filelog option (-l)
191 This is the ``log to specified logfile'' option.
193 This option has some usage constraints. It:
196 must not appear in combination with any of the following options:
200 This option causes the client to write log messages to the specified
204 @subsection settod option (-s)
207 This is the ``set (step) the time with settimeofday()'' option.
209 This option has some usage constraints. It:
212 must not appear in combination with any of the following options:
219 @subsection adjtime option (-j)
222 This is the ``set (slew) the time with adjtime()'' option.
224 This option has some usage constraints. It:
227 must not appear in combination with any of the following options:
234 @subsection broadcast option (-b)
235 @cindex sntp-broadcast
237 This is the ``use broadcasts to the address specified for synchronisation'' option.
238 If specified SNTP will listen to the specified broadcast address
239 for NTP broadcasts. The default maximum wait time,
240 68 seconds, can be modified with -t.
243 @subsection timeout option (-t)
246 This is the ``specify the number of seconds to wait for broadcasts'' option.
247 When waiting for a broadcast packet SNTP will wait the number
248 of seconds specified before giving up. Default 68 seconds.
250 @node sntp authentication
251 @subsection authentication option (-a)
252 @cindex sntp-authentication
254 This is the ``enable authentication with the key auth-keynumber'' option.
255 This option enables authentication using the key specified in this option's argument.
256 The argument of this option is the keyid, a number specified in the keyfile as this
257 key's identifier. See the keyfile option (-k) for more details.
260 @subsection keyfile option (-k)
263 This is the ``specify a keyfile. sntp will look in this file for the key specified with -a'' option.
264 This option specifies the keyfile. SNTP will search for the key specified with -a keyno in this
265 file. Key files follow the following format:
269 Where keyid is a number identifying this key
270 keytype is one of the follow:
271 S Key in 64 Bit hexadecimal number as specified in in the DES specification.
272 N Key in 64 Bit hexadecimal number as specified in the NTP standard.
273 A Key in a 1-to-8 character ASCII string.
274 M Key in a 1-to-8 character ASCII string using the MD5 authentication scheme.
276 For more information see ntp.keys(5).