Bugzilla – Bug 667561
SNTP -P is not working
Last modified: 2011-02-04 06:42:17 UTC
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20110103 Fedora/3.6.13-1.fc14 Firefox/3.6.13 linux-oznb:~ # ntpdate ntp1.ptb.de !!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!! The ntpdate program is deprecated and should not be used any more. To quote the upstream ntp developers: "The functionality ntpdate offered is now provided by the ntpd daemon itself. If you call ntpd with the command line option -q it will retrieve the current time and set it accordingly." Please check the Network Time Protocol (NTP) daemon man page and http://support.ntp.org/bin/view/Dev/DeprecatingNtpdate for further information. You can replace the ntpdate call with "rcntp ntptimeset" to achieve an inital poll of the servers specified in /etc/ntp.conf. The program /usr/sbin/sntp offers comparable functionality to ntpdate. Specifically sntp -P no -r pool.ntp.org is equivalent to ntpdate pool.ntp.org For further details please refer to the man page of sntp. /usr/sbin/sntp: illegal option -- F sntp - standard SNTP program - Ver. 4.2.6p2 USAGE: sntp [ -<flag> [<val>] | --<name>[{=| }<val>] ]... hostname-or-IP ... Flg Arg Option-Name Description -4 no ipv4 Force IPv4 DNS name resolution -6 no ipv6 Force IPv6 DNS name resolution -d no normalverbose Normal verbose -K Str kod KoD history filename -p no syslog Logging with syslog -l Str filelog Log to specified logfile -s no settod Set (step) the time with settimeofday() -j no adjtime Set (slew) the time with adjtime() -b Str broadcast Use broadcasts to the address specified for synchronisation -t Num timeout Specify the number of seconds to wait for broadcasts -a Num authentication Enable authentication with the key auth-keynumber -k Str keyfile Specify a keyfile. SNTP will look in this file for the key specified with -a opt version Output version information and exit -? no help Display extended usage information and exit -! no more-help Extended usage information passed thru pager -> opt save-opts Save the option state to a config file -< Str load-opts Load options from a config file Options are specified by doubled hyphens and their name or by a single hyphen and the flag character. please send bug reports to: http://bugs.ntp.org, bugs@ntp.org linux-oznb:~ # sntp -P no -r ntp1.ptb.de sntp: illegal option -- P sntp - standard SNTP program - Ver. 4.2.6p2 USAGE: sntp [ -<flag> [<val>] | --<name>[{=| }<val>] ]... hostname-or-IP ... Flg Arg Option-Name Description -4 no ipv4 Force IPv4 DNS name resolution -6 no ipv6 Force IPv6 DNS name resolution -d no normalverbose Normal verbose -K Str kod KoD history filename -p no syslog Logging with syslog -l Str filelog Log to specified logfile -s no settod Set (step) the time with settimeofday() -j no adjtime Set (slew) the time with adjtime() -b Str broadcast Use broadcasts to the address specified for synchronisation -t Num timeout Specify the number of seconds to wait for broadcasts -a Num authentication Enable authentication with the key auth-keynumber -k Str keyfile Specify a keyfile. SNTP will look in this file for the key specified with -a opt version Output version information and exit -? no help Display extended usage information and exit -! no more-help Extended usage information passed thru pager -> opt save-opts Save the option state to a config file -< Str load-opts Load options from a config file Options are specified by doubled hyphens and their name or by a single hyphen and the flag character. please send bug reports to: http://bugs.ntp.org, bugs@ntp.org Reproducible: Always Steps to Reproduce: 1. ntpdate <server> gives me hints to run sntp wioth -P 2. run sntp with -P 3.
Milestone 6/6 looks different... I can't select Milestone 6/6 in this interface linux-oznb:~ # ntpdate ntp1.ptb.de !!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!! The ntpdate program is deprecated and should not be used any more. To quote the upstream ntp developers: "The functionality ntpdate offered is now provided by the ntpd daemon itself. If you call ntpd with the command line option -q it will retrieve the current time and set it accordingly." Please check the Network Time Protocol (NTP) daemon man page and http://support.ntp.org/bin/view/Dev/DeprecatingNtpdate for further information. You can replace the ntpdate call with "rcntp ntptimeset" to achieve an inital poll of the servers specified in /etc/ntp.conf. The program /usr/sbin/sntp offers comparable functionality to ntpdate. Specifically sntp -p no -r pool.ntp.org is equivalent to ntpdate pool.ntp.org For further details please refer to the man page of sntp. /usr/sbin/sntp: illegal option -- F sntp - standard SNTP program - Ver. 4.2.6p3 USAGE: sntp [ -<flag> [<val>] | --<name>[{=| }<val>] ]... hostname-or-IP ... linux-oznb:~ # sntp -p no -r ntp1.ptb.de 28 Jan 08:39:49 sntp[22051]: Started sntp 28 Jan 08:39:49 sntp[22051]: Error looking up no: Name or service not known 28 Jan 08:39:49 sntp[22051]: Error looking up -r: Name or service not known 2011-01-28 08:39:49.786677 (-0100) +0.004630 +/- 0.001617 secs
duplicate *** This bug has been marked as a duplicate of bug 658255 ***