Hi, rdate doesn't sounds like what I want, I want to use OpenWRT to syncronise itself and all the other machines on my network. Thanks though, Jim
On 30/11/10 16:13, Tore Bonderudtåjet wrote: > Hi, > > > > rdate is ther by defoult on openwrt 10.03 > > > rdate > From Wikipedia, the free encyclopediaJump to: navigation, search > On Unix-like operating systems, rdate is a tool for querying the > current time from a network server and, optionally, setting the system > time. Rdate uses the Time Protocol. The Time Protocol is generally > considered obsolete and has been replaced by the Network Time Protocol > (NTP). > > When used to set the local system time, rdate operates by changing > system time immediately to the time and date returned by the server. > Abrupt changes of clock settings have been found to cause problems for > software relying on timing. This led to the development of the Network > Time Protocol, which gradually changes the system time and does not > skip ticks. > > Due to the problems described above, rdate is generally used only on > systems where NTP is not available, or in specialized circumstances > where it is required that system time be set correctly as soon as > possible during initial setup, before services which may be vulnerable > to abrupt time-changes have started. > > > > RDATE command, update you DATE and TIME from NTP > > RDATE retrieves the date and time from another machine on your > network, using the RFC 868 protocol. If you run rdate as root, it will > set your machine's local time to the time of the machine that you > queried. > This feature was included from release 1.3.4. > > This feature is available on foXServe, as BUILT-IN command. > > > the command syntax is as follow: > > rdate -t 4 -s NTP_SERVER > > The command automatically adjust your system clock to the value > provided by the network time server > > for example: > rdate -t 4 -s 129.6.15.28 > > A list of Nework Time servers is available on: > http://ntp.isc.org/bin/view/Servers/WebHome > > If you would like to set automatically the time on startup you have > just to follow the how to on this link: > http://www.acmesystems.it/?id=57#10000 and use the following line > instead of testprog.out > > /bin/rdate -t 4 -s NTP_SERVER > > > > rdate > rdate [options] [host...] > > TCP/IP command. Retrieve the date and time from a host or hosts on the > network and optionally set the local system time. > > Options > -l > Send errors and output to syslogd. > > -p > Print the retrieved dates. > > -s > Set the local system time from the host; must be specified by root. > > -t n > Timeout each retrieval attempt after n seconds. > > -u > Use UDP instead of TCP. > _______________________________________________ > openwrt-users mailing list > [email protected] > https://lists.openwrt.org/mailman/listinfo/openwrt-users _______________________________________________ openwrt-users mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-users
