LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-12-2008, 11:46 AM   #1
vortmax
Member
 
Registered: Nov 2005
Posts: 91

Rep: Reputation: 17
ToD server


I'm attempting to set up a simple Time of Day server, but can't seem to find any documentation or packages related to this. Is this just a function that most linux distros will already perform, or is it known by some other name?
 
Old 05-12-2008, 02:25 PM   #2
ABL
Member
 
Registered: Mar 2005
Location: NYC
Distribution: CentOS 5
Posts: 54

Rep: Reputation: 16
Do you mean NTP? Or is there a "Time of Day" application, as well?

NTP is "Network Time Protocol". Check out ntp.org.

Regards,
Alden
 
Old 05-12-2008, 03:04 PM   #3
vortmax
Member
 
Registered: Nov 2005
Posts: 91

Original Poster
Rep: Reputation: 17
it is actually a ToD, or time of day server. It's a different protocol then NTP.
 
Old 05-12-2008, 06:26 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I think he means this in that case:
See /etc/services

daytime 13/tcp # Daytime (RFC 867)
daytime 13/udp # Daytime (RFC 867)

Please post your distro & ver in your profile.
In Fedora its a file entry in the /etc/xinetd.d dir. Defaults to off iirc.
 
Old 05-26-2009, 03:55 PM   #5
MrJake
LQ Newbie
 
Registered: Jun 2004
Posts: 9

Rep: Reputation: 0
Did you ever find a ToD server? Im having the same issue I cant find any tod server for windows or linux that are free and effective.

And for the ones not sure TOD is port 37.
daytime 13/tcp
daytime 13/udp
time 37/tcp
time 37/udp
ntp 123/tcp
ntp 123/udp

This has nothing to do with Daytime or NTP. TOD (Time of Day) is mostly used in cable networks for cable modems to be able to get time to put a timestamp on the log entries in the cable modem itself for trouble shooting.

So if anyone knows of a good little ToD server for windows or linux I would like the tip very much since lately I have been testing arris cmts and they dont run a tod in them most prob due to lack of horse power. Cisco cmts all run a tod and will only accept requests coming from cable interfaces and not from ethernet.

Thanks
 
Old 05-26-2009, 04:07 PM   #6
vortmax
Member
 
Registered: Nov 2005
Posts: 91

Original Poster
Rep: Reputation: 17
I did.

Under debian (well Ubuntu), the default installation of xinetd includes a TOD service. If you go into /etc/xinetd/ there will be a config file for 'time'. Open it up in an editor and change 'disabled' to 'no' then restart xinetd.

I'm sure there is a windows based TOD server out there somewhere. The only one I found came bundled with some demo CMTS management software we tried out.

Last edited by vortmax; 05-26-2009 at 04:08 PM.
 
Old 05-27-2009, 09:42 AM   #7
MrJake
LQ Newbie
 
Registered: Jun 2004
Posts: 9

Rep: Reputation: 0
Thanks alot vortmax. Works great for me.
 
Old 06-27-2009, 03:00 PM   #8
t0m4s
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by vortmax View Post
I did.

Under debian (well Ubuntu), the default installation of xinetd includes a TOD service. If you go into /etc/xinetd/ there will be a config file for 'time'. Open it up in an editor and change 'disabled' to 'no' then restart xinetd.

I'm sure there is a windows based TOD server out there somewhere. The only one I found came bundled with some demo CMTS management software we tried out.

vortmax, i download ubuntu 9.04 and there is not the xinetd folder on /etc

found it... sorry

Last edited by t0m4s; 06-27-2009 at 03:03 PM.
 
Old 06-30-2009, 10:17 AM   #9
t0m4s
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by vortmax View Post
I did.

Under debian (well Ubuntu), the default installation of xinetd includes a TOD service. If you go into /etc/xinetd/ there will be a config file for 'time'. Open it up in an editor and change 'disabled' to 'no' then restart xinetd.

I'm sure there is a windows based TOD server out there somewhere. The only one I found came bundled with some demo CMTS management software we tried out.
how do i know if the time service is running?
 
Old 11-12-2009, 02:19 PM   #10
Shadyr
LQ Newbie
 
Registered: Nov 2009
Location: Georgia
Distribution: kubuntu
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by t0m4s View Post
how do i know if the time service is running?
There is a apt-gettable package in Debian and Ubuntu distros called "rdate" that will allow you to query your TOD server.

rdate -p servername
or
rdate -u -p servername (to check the UDP response)

It *can* be used to change the time of a server, so use with care.

Now a small further question, running normal inetd and not xinetd, I'm having problems getting TOD to respond over UDP. It's only allowing TCP by default...

time stream tcp nowait root internal

I added this line for UDP, adjusted my firewall, and rebooted...

time dgram udp wait root internal

But I am still only getting a response on from the one running TCP. Netstat would seem to indicate that the server isn't even listening on the UDP port. Did I do it wrong? On my CentOS box, I have it responding on UDP and TCP, but the CentOS box is using xinetd...
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
best distrubition for nas server and p2p download server and web server geosko Linux - Distributions 8 10-13-2006 09:20 AM
How the DNS-server is connected to work of a web-server and a mail-server? ukrainet Linux - Newbie 2 01-10-2005 09:18 PM
Wine Error Warcraft II ToD wildcat22 Linux - Software 2 09-29-2004 08:09 AM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM
Strange behaviour, TOD dependant... ? gti666 Linux - Security 2 10-07-2003 12:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration