Networking Forums

Networking Forums > Computer Networking > Linux Networking > rdate question

Reply
Thread Tools Display Modes

rdate question

 
 
Jørn Dahl-Stamnes
Guest
Posts: n/a

 
      02-05-2004, 08:22 AM
If I do a 'rdate -p some.host'

Do some.host need to have some deamon running in order to reply, or what?

I have tried to use the rdate against an internal linux server, but it won't
reply. If I try a 'rdate -p 127.0.0.1' on that server, nothing happens.

Jørn Dahl-Stamnes, EDB Teamco AS
e-mail: Jorn.Dahl-(E-Mail Removed) (remove nospam first)
web: http://spiderman.novit.no/dahls/
 
Reply With Quote
 
 
 
 
chris-usenet@roaima.co.uk
Guest
Posts: n/a

 
      02-05-2004, 10:31 AM
Jørn Dahl-Stamnes <jorn.dahl-(E-Mail Removed)> wrote:
> If I do a 'rdate -p some.host'
> Do some.host need to have some deamon running in order to reply, or what?


Read the first paragraph of "man rdate",

rdate connects to an RFC 868 time server over a TCP/IP network,
printing the returned time and/or setting the system clock.


> I have tried to use the rdate against an internal linux server, but it won't
> reply. If I try a 'rdate -p 127.0.0.1' on that server, nothing happens.


How were you expecting your local server to set its clock correctly to
its local clock, and then actually get it right?

Try this instead (as root):
/usr/sbin/ntpdate tick.usno.navy.mil tock.usno.navy.mil

Chris
 
Reply With Quote
 
Cameron Kerr
Guest
Posts: n/a

 
      02-05-2004, 10:40 AM
chris-(E-Mail Removed) wrote:

> Try this instead (as root):
> /usr/sbin/ntpdate tick.usno.navy.mil tock.usno.navy.mil


And then find a time server closer to you. Preferably something with a
stratum greater than 2.

http://www.eecis.udel.edu/~mills/ntp/servers.html

--
Cameron Kerr
(E-Mail Removed) : http://nzgeeks.org/cameron/
Empowered by Perl!
 
Reply With Quote
 
chris-usenet@roaima.co.uk
Guest
Posts: n/a

 
      02-05-2004, 03:26 PM
Cameron Kerr <(E-Mail Removed)> wrote:
> And then find a time server closer to you. Preferably something with a
> stratum greater than 2.


> http://www.eecis.udel.edu/~mills/ntp/servers.html


Good point. I've been using NTP (from S2/S3 servers) for so long I forgot
the reference.

Thanks for pointing it out.
Chris
 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      02-06-2004, 02:42 AM
Jørn Dahl-Stamnes <jorn.dahl-(E-Mail Removed)> wrote:
> Do some.host need to have some deamon running in order to reply,
> or what?


> I have tried to use the rdate against an internal linux server,
> but it won't reply. If I try a 'rdate -p 127.0.0.1' on that server,
> nothing happens.


That works for me. The inetd daemon can apparently be configured in
/etc/inetd.conf to provide time service though the lo interface:

time stream tcp nowait root internal
time dgram udp wait root internal

The /etc/services file may have to contain the tcp line there as well:

time 37/tcp timserver
time 37/udp timserver

The both sets of lines in these files above came pre-configured with my
Linux distribution. So I'm not sure whether they, or at least the tcp
one, must be configured or not. I'm no expert on inetd/services.

---
PPP-Q&A links, downloads: http://ckite.no-ip.net/
 
Reply With Quote
 
Jem Berkes
Guest
Posts: n/a

 
      02-06-2004, 04:10 AM
> If I do a 'rdate -p some.host'
>
> Do some.host need to have some deamon running in order to reply, or
> what?


Yes, definitely. rdate sends a UDP or TCP query as per RFC 868.

People seem to like NTP these days, but I'm still a fan of rdate (not as
accurate, but much simpler and does the job). This reminds me, which rdate
client are you using? I've found a possibly ancient version, created by Lee
Moore and most recently modifed in '99 by Arkadiusz Miskiewicz. I'd like to
grab a newer version if one exists

--
Jem Berkes
http://www.sysdesign.ca/
 
Reply With Quote
 
Jørn Dahl-Stamnes
Guest
Posts: n/a

 
      02-06-2004, 07:15 AM
In article <(E-Mail Removed)>, Cameron Kerr <(E-Mail Removed)> wrote:
>chris-(E-Mail Removed) wrote:
>
>> Try this instead (as root):
>> /usr/sbin/ntpdate tick.usno.navy.mil tock.usno.navy.mil

>
>And then find a time server closer to you. Preferably something with a
>stratum greater than 2.
>
>http://www.eecis.udel.edu/~mills/ntp/servers.html


We have a stratum 1 at our site, but it refuse me to use the rdate against it.
The machine I try to connect to, is stratum 2 (using the stratum 1). We also
have a cisco router that also refuse to answer my request.

Jørn Dahl-Stamnes, EDB Teamco AS
e-mail: Jorn.Dahl-(E-Mail Removed) (remove nospam first)
web: http://spiderman.novit.no/dahls/
 
Reply With Quote
 
Cameron Kerr
Guest
Posts: n/a

 
      02-06-2004, 09:06 AM
J?rn Dahl-Stamnes <jorn.dahl-(E-Mail Removed)> wrote:
> In article <(E-Mail Removed)>, Cameron Kerr
> <(E-Mail Removed)> wrote:
>>chris-(E-Mail Removed) wrote:
>>
>>> Try this instead (as root): /usr/sbin/ntpdate tick.usno.navy.mil
>>> tock.usno.navy.mil

>>
>>And then find a time server closer to you. Preferably something with a
>>stratum greater than 2.
>>
>>http://www.eecis.udel.edu/~mills/ntp/servers.html

>
> We have a stratum 1 at our site, but it refuse me to use the rdate
> against it.


rdate and NTP are two different protocols.

rdate just gets given the time in the form of something like
Fri Feb 6 23:40:52 NZDT 2004

NTP is much more sophisticated, and gets you much more accurate timings.

Nobody uses rdate any more, except in introductory network programming
courses.

--
Cameron Kerr
(E-Mail Removed) : http://nzgeeks.org/cameron/
Empowered by Perl!
 
Reply With Quote
 
Jørn Dahl-Stamnes
Guest
Posts: n/a

 
      02-06-2004, 10:41 AM
In article <(E-Mail Removed)>, Cameron Kerr <(E-Mail Removed)> wrote:
>J?rn Dahl-Stamnes <jorn.dahl-(E-Mail Removed)> wrote:
>> In article <(E-Mail Removed)>, Cameron Kerr
>> <(E-Mail Removed)> wrote:
>>>chris-(E-Mail Removed) wrote:
>>>
>>>> Try this instead (as root): /usr/sbin/ntpdate tick.usno.navy.mil
>>>> tock.usno.navy.mil
>>>
>>>And then find a time server closer to you. Preferably something with a
>>>stratum greater than 2.
>>>
>>>http://www.eecis.udel.edu/~mills/ntp/servers.html

>>
>> We have a stratum 1 at our site, but it refuse me to use the rdate
>> against it.

>
>rdate and NTP are two different protocols.
>
>rdate just gets given the time in the form of something like
>Fri Feb 6 23:40:52 NZDT 2004
>
>NTP is much more sophisticated, and gets you much more accurate timings.
>
>Nobody uses rdate any more, except in introductory network programming
>courses.


The reason for using rdate, is that I connect to the machines through an ISDN
line. It do not want have the line up all the time, which I probably will if I
use NTP. Other have suggested that I used rdate to get the time from the
server.

However, rdate does not work as expected:

[dahls@jedi dahls]$ rdate -p <server.at.work>
rdate: got EOF from time server

Jørn Dahl-Stamnes, EDB Teamco AS
e-mail: Jorn.Dahl-(E-Mail Removed) (remove nospam first)
web: http://spiderman.novit.no/dahls/
 
Reply With Quote
 
KR
Guest
Posts: n/a

 
      02-06-2004, 01:16 PM
Jørn Dahl-Stamnes wrote:
> The reason for using rdate, is that I connect to the machines through an ISDN
> line. It do not want have the line up all the time, which I probably will if I
> use NTP. Other have suggested that I used rdate to get the time from the
> server.
>


There's no reason why an NTP client should keep the line busy any more
than an rdate client.

> However, rdate does not work as expected:
>
> [dahls@jedi dahls]$ rdate -p <server.at.work>
> rdate: got EOF from time server


Probably because the server doesn't support rdate. Forget rdate, it's
obsolete and AFAIK doesn't even support updates against a server in a
different time zone.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running rdate after networking connection with WLAN and DHCP isestablished Daniel =?ISO-8859-1?Q?B=F6hmer?= Linux Networking 1 02-23-2006 12:24 PM
Skip the PW question: I got that, question now about "Home" Tim Wilson Network Routers 1 12-31-2005 04:01 AM
Switch Question - restate previous question w/no subject SEAN J Windows Networking 2 11-30-2005 02:42 PM
Dell 2300 TrueMobile router question/ general wireless question Craig Wireless Internet 2 01-11-2004 06:26 PM



1 2 3 4 5 6 7 8 9 10 11