SNTP(1) | Programmer's Manual | SNTP(1) |
NTP (the Network Time Protocol) and SNTP (the Simple Network Time Protocol) are defined and described by draft-ietf-ntp-ntpv4-proto-13, which should become a full RFC any month now.
The default is to write the estimated correct local date and time (i.e. not UTC) to the standard output in a format like '1996 Oct 15 20:17:25.123 +4.567 +/- 0.089 secs', where the '+4.567 +/- 0.089 secs' indicates the local clock is 4.567 seconds behind the correct time (so 4.567 seconds must be added to the local clock to get it to be correct), and the time of is believed to be correct to within +/- 0.089 seconds.
-4, --ipv4 |
Force IPv4 DNS name resolution. This option must not appear in combination with any of the following options: ipv6. |
-6, --ipv6 |
Force IPv6 DNS name resolution. This option must not appear in combination with any of the following options: ipv4. |
-d, --normalverbose |
Normal verbose. |
-K file-name, --kod=file-name |
KoD history filename. |
-p, --syslog |
Logging with syslog. This option must not appear in combination with any of the following options: filelog. |
-l file-name, --filelog=file-name |
Log to specified logfile. This option must not appear in combination with any of the following options: syslog. |
-s, --settod |
Set (step) the time with settimeofday(). This option must not appear in combination with any of the following options: adjtime.
|
-j, --adjtime |
Set (slew) the time with adjtime(). This option must not appear in combination with any of the following options: settod.
|
-b broadcast-address, --broadcast=broadcast-address |
Use broadcasts to the address specified for synchronisation. |
-t seconds, --timeout=seconds |
Specify the number of seconds to wait for broadcasts. This option takes an integer number as its argument. The default seconds for this option is: 68 |
-a auth-keynumber, --authentication=auth-keynumber |
Enable authentication with the key auth-keynumber. This option takes an integer number as its argument. |
-k file-name, --keyfile=file-name |
Specify a keyfile. SNTP will look in this file for the key specified with -a. keyid keytype key Where keyid is a number identifying this key keytype is one of the follow: S Key in 64 Bit hexadecimal number as specified in in the DES specification. N Key in 64 Bit hexadecimal number as specified in the NTP standard. A Key in a 1-to-8 character ASCII string. M Key in a 1-to-8 character ASCII string using the MD5 authentication scheme. For more information see ntp.keys(5). |
-?, --help | Display extended usage information and exit. |
-!, --more-help | Extended usage information passed thru pager. |
-> [rcfile], --save-opts[=rcfile] | Save the option state to rcfile. The default is the last configuration file listed in the OPTION PRESETS section, below. |
-< rcfile, --load-opts=rcfile, --no-load-opts | Load options from rcfile. The no-load-opts form will disable the loading of earlier RC/INI files. --no-load-opts is handled early, out of order. |
- [{v|c|n}], --version[={v|c|n}] | Output version of program and exit. The default mode is `v', a simple version. The `c' mode will print copyright information and `n' will print the full copyright notice. |
sntp ntpserver.somewhere |
With suitable privilege, it can be run as a command or in a cron job to reset the local clock from a reliable server, like the ntpdate and rdate commands. For example:
sntp -a ntpserver.somewhere |
see html/copyright.html
This manual page was AutoGen-erated from the sntp option definitions.
December 10, 2009 | ( 4.2.6) |