LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-09-2010, 02:48 PM   #1
bilalanwer_24h
LQ Newbie
 
Registered: Dec 2009
Posts: 1

Rep: Reputation: 0
Help required to configure NTP on linux machine


Hello,

I am trying to configure NTP on linux box as I have configured two IPs of ntp server in /etc/ntp.conf to sync linux box with these NTP servers.

server 10.13.1.111
server 10.13.1.112

After configuration, I simply restart the ntpd daemon. Should I need to configure anything else in ntp.conf file.Please let me know how can i define one ntp server as primary & other secondary & also let me know how can I verify if linux box is properly synchronized with NTP server configured in NTP configuration file.

Quick response will be highly appreciated.
 
Old 01-09-2010, 03:41 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
don't use two servers, use *at least* three, preferably 57. If you only have 2 and they are different, how do you know which is right? There is no primary / secondary concept in NTP, the right time is the right time. use "ntpq -pn" to see if you're syncrhonized or not.
 
Old 01-09-2010, 04:04 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I am using openntpd on Arch. There is no "ntpq" command.

Any clues?
 
Old 01-09-2010, 04:36 PM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by pixellany View Post
I am using openntpd on Arch. There is no "ntpq" command.

Any clues?
A little explanation is given here:
Quote:
With the classic daemon written by Mills, there were programs, such as ntpq and ntptrace, that could be used to monitor ntp "health". These tools do not work with OpenNTPD. Older ntptrace programs work but newer versions are just a wrapper around ntpq and don't work.

Since you have no tools, you'll want to keep a copy of ntpdate handy that is useful for troubleshoot NTP problems.
 
Old 01-10-2010, 07:54 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Thank you!!
 
  


Reply

Tags
redhat



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
Configure a server to use NTP scucci Linux - Newbie 2 12-04-2009 01:05 AM
ntp drift file in /etc/ntp instead of /var/lib/ntp - suggestion for a patch in Slack niels.horn Slackware 16 05-07-2009 07:35 PM
component advice required: setting up a new linux machine (Fedora 10) carverknut Linux - Hardware 14 03-26-2009 10:40 AM
what files of filesystem are required automount USB after pluggin in to linux machine venkat.rohidas Linux - General 5 09-19-2008 10:35 AM
How to configure ftp in linux Ent-4 & how to get the required folder through browser sunil007_india Linux - Networking 1 08-15-2006 01:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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