Bug 671565 - ntpdate - the sntp alternative is completely bogus.
Summary: ntpdate - the sntp alternative is completely bogus.
Status: VERIFIED DUPLICATE of bug 658255
Alias: None
Product: openSUSE 11.4
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Factory
Hardware: Other Other
: P5 - None : Minor (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-13 14:00 UTC by Per Jessen
Modified: 2011-02-13 14:05 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Per Jessen 2011-02-13 14:00:55 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-GB; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10

If you attempt to set the system time using ntpdate, it displays a warning about ntpdate being deprecated along with a suggestion to use sntp:

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

However, the -p option means "use syslog" and takes no argument and the -r option does not exist. 
Also, very reasonably, the ntpdate script tries to fall back to sntp, but again the options are completely bogus:

/usr/sbin/sntp -F -P no -r $1

There is no -F option.
There is no -P option and the lowercase -p doesn't take an argument. 
There is no -r option. 

A working alternative is simply "sntp <server>". 

Reproducible: Always
Comment 1 Per Jessen 2011-02-13 14:05:54 UTC
Closing, already reported in bug 658255.

*** This bug has been marked as a duplicate of bug 658255 ***