LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 10-25-2005, 08:24 AM   #1
ssg14j
LQ Newbie
 
Registered: Jul 2005
Posts: 12

Rep: Reputation: 0
Network Time protocol


Hello all !
I am now sudying about Network Time Protocol (NTP) . Any on ehelp me about how to get the time form time servers?

If anybody have example , send it to me....
 
Old 10-25-2005, 09:11 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
you would use an ntp client like ntpdate
 
Old 10-26-2005, 06:24 AM   #3
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
A quick google found the ntp homepage.. Lots of descriptions about how the protocol works etc

http://ntp.isc.org/bin/view/Main/WebHome
 
Old 10-26-2005, 03:58 PM   #4
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
It depends largely on what you want. I run an ntp server for the pool. Originally installed for my webserver but I have spare bandwidth so decided to "volunteer" my server to pool.ntp.org. If you wish to maintain a reasonably accurate time then install the ntp server package. The ntp.conf is normally installed in /etc . Edit the ntp.conf file and add the following lines to the file;

driftfile /var/lib/ntp/ntp.drift

server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org

The drift file allows your system to calculate the error of your system time chip and then apply a correction. The links to the pool servers will allow your system to compare its time to a fairly accurate server and thereby keep an accurate time. Using 3 different servers allows the system to connect to one with the best time and ignore those issuing a bad time (known as a false ticker).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Network Time protocol ssg14j Programming 1 10-25-2005 09:11 AM
How to specify Network Time Protocol Server in Kickstart script? EStester Linux - Enterprise 3 03-26-2005 01:46 PM
Network Time Protocol (NTP): Are you sure it's working? mchirico LinuxQuestions.org Member Success Stories 0 06-12-2004 06:00 PM
A network protocol like Samba??? Zappa Linux - Networking 8 02-11-2004 09:00 AM
Network Time Protocol (NTP) for RH 7.3 LinuxQuest01 Linux - General 1 01-15-2003 03:48 PM


All times are GMT -5. The time now is 01:40 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration