LinuxQuestions.org
Help answer threads with 0 replies.
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 04-22-2011, 09:03 PM   #1
justin-goldberg
LQ Newbie
 
Registered: Jan 2008
Posts: 20

Rep: Reputation: 0
Updating Server Time


I am managing a PBX which runs redhat enterprise linux. The time on it is always getting out of sync, which causes the time on the phones to display incorrectly.

I can't figure out for the life of me why the time keeps changing. How can I set it to update it's time every day or two? I don't want to hit ntp.org every day, as is recommended. What's the recommended interval for connecting to the ntp pool?

The kernel is Linux 2.6.9-67.0.4 (from uname -a)

Last edited by justin-goldberg; 04-22-2011 at 09:05 PM.
 
Old 04-22-2011, 09:30 PM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
The recommended frequency to hit a time server is once. It's good
to do that immediately before enabling the ntp service to run.

It's rather easy to set up ntp in RHEL. Run "yum install ntp"
then "ntpdate time.nist.gov". To synchronize the hardware
clock, run "hwclock --systohc". Run "chkconfig ntpd on" to
ensure that ntp starts at boot and run "service ntpd start"
to make it start without rebooting.

Of course you can use another server instead of time.nist.gov
or you can edit /etc/ntp.conf if you don't want to use the
default servers.

Last edited by carltm; 04-22-2011 at 09:32 PM. Reason: Added last paragraph
 
  


Reply

Tags
ntp


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating BIOS time from Linux girolamo.savonarola Linux - Newbie 2 08-02-2008 09:44 AM
Date/Time not updating correctly. PeteBass Linux - Software 1 05-30-2007 09:48 AM
time change not updating psychobyte Fedora 1 03-12-2007 06:49 PM
Updating time automagically cwwilson721 Slackware 5 07-27-2006 07:52 PM
Updating System time from some Inet time server Steave Linux - General 6 12-21-2001 03:12 PM

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

All times are GMT -5. The time now is 06:15 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