LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Help required to configure NTP on linux machine (https://www.linuxquestions.org/questions/red-hat-31/help-required-to-configure-ntp-on-linux-machine-781108/)

bilalanwer_24h 01-09-2010 02:48 PM

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.

acid_kewpie 01-09-2010 03:41 PM

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.

pixellany 01-09-2010 04:04 PM

I am using openntpd on Arch. There is no "ntpq" command.

Any clues?

colucix 01-09-2010 04:36 PM

Quote:

Originally Posted by pixellany (Post 3820556)
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.

pixellany 01-10-2010 07:54 AM

Thank you!!


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