Auto NTP Time Synchronization


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Auto NTP Time Synchronization
# 8  
Old 12-16-2011
No problem. Using ntpdate to slam a clock at intervals with cron seems like hammering screws with the screwdriver is right there in your tool kit. The right tool for the job should be to use the daemon.Smilie
# 9  
Old 12-16-2011
Quote:
Originally Posted by mark54g
That seems like such a convoluted way to use NTP, which actually DOES sync time automatically.
ntp just seems so complicated for what it does... set the time. It's also rather undeterministic. "update clock on boot if possible" seems preferable to "set clock whenever ntp feels like it", particularly when it's changing not just seconds, but days, months, and years.

But I suppose I don't need the clock accurate down to milliseconds, I usually just want things to stop flashing 12 Smilie
# 10  
Old 12-16-2011
corona -

for test & dev boxes here anything close to the real time is fine. For production - no.
The legal department would have a cow if we were not spot on with time. We are a publically regulated utility. This is true in finance, utilities, etc. - any place where customers like to sue for their own negligence. (or the company's)
# 11  
Old 12-16-2011
Corona,

Properly configured NTP will not be as convoluted as you seem to make it out to be. I worked at an exchange, and when we needed precise time, we got it down to 300us. If and when we needed more, PTP was being looked into

Precision Time Protocol - Wikipedia, the free encyclopedia

It is not un-deterministic because you do NOT want to alter the clock regularly. There is a reason that it is preferable to slew the clock. Each crystal oscillates differently, and the factors that influence this can be electrical or thermal among others. The way that NTP can correct this is to have a proper drift file as well as a stepping file. Then, the daemon can check values based on the past, even through a reboot.

Normally, on a reboot, a clock would have too much indeterminism to function properly for an exchange system without such tools. The clock would vary wildly for the first few minutes of operation. After the configuration was updated, the machine was usable significantly faster.

This may not be a concern to you, but as modern clusters need to sync'd regularly to function properly, it is hitting more people than it used to.
This User Gave Thanks to mark54g For This Post:
# 12  
Old 12-16-2011
Thank you for that explanation. That there's real applications where timing is important enough for thermal drift to cause software errors in realtime is bit of an eye opener. Smilie

Last edited by Corona688; 12-16-2011 at 05:57 PM..
# 13  
Old 12-16-2011
No problem. You have your specialties. This one is just one that has been hammered home to me on repeated occasion. Essentially, using things like minpoll and maxpoll you can set how often the lower stratum clock needs to/should be checked.

At my last company, I actually updated/rewrote the default init script for ntpd because we wanted to slam clocks that were outside of the acceptable tolerances, since they would otherwise not be usable. It also on start/status would check the offset from the 2 upstream stratum 1 clocks in their regions to show how far off they were from their lower stratums.

GPS is widely used as a medium for a stratum 1 clock because of the high level of accuracy and precision.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Ntp : How is the synchronization time scheduled?

Hello, one of my clients has the following task for me: To write a Perl script that checks, whether ntp is active on a particular AIX or Linux box. Obviously the last synchronization is logged in the file ntp.log So, my task would be find out, when the synchronization SHOULD have taken... (1 Reply)
Discussion started by: Bloehdian1
1 Replies

2. HP-UX

Ntp time synchronization problems

There is one server in my company where the time is out of sync. When I checked (compared with other servers whose time is correct), the XNTPD variable in /etc/rc.config.d/netdaemons was set as 0. I changed this to 1, and tried restarting the xntpd process with : # /sbin/init.d/xntpd start ... (4 Replies)
Discussion started by: anaigini45
4 Replies

3. AIX

NTP time problem

I got an ntp time problem on AIX server. os version is AIX7.1 OS LEVEL 7.1.0.0 i got below output,when i run the below command bash-3.2# ntpdate -dv XXXXXXXXXXXXXXXXXXXXXXXX 4 Dec 12:50:49 ntpdate: 3.4y transmit(xxxxxxxxx) receive(xxxxxxxxx) transmit(xxxxxxxx) receive(xxxxxxxxx)... (9 Replies)
Discussion started by: murali969
9 Replies

4. Red Hat

ntp time synchronization

hello all,, am trying to do a time synchronization between a ntp server and a client, but facing some problems in doing so: i run the ntpdate in debug mode and this is what i got. please help me out.. # ntpd -d -u 172.22.1.207 ntpd 4.2.2p1@1.1570-o Sun Aug 28 19:21:03 UTC 2011 (1)... (1 Reply)
Discussion started by: rahul11c
1 Replies

5. Linux

How often does Linux NTP server update its time with the external NTP server?

All here, thank you for listening. Now I've set up a Linux NTP server by adding a external windows NTP server in /etc/ntp.conf. Then I start the ntpd daemon. But how often does the Linux NTP server update its time with the external NTP server? I've looked up everywhere but found no information... (1 Reply)
Discussion started by: MichaelLi
1 Replies

6. AIX

NTP - with time difference

We have configured most of 1200 servers with an NTP server. For the rest of the servers, I have a strange requirement. I want to synchronize them with NTP time with a lag of 15 minutes. Is it possible ? If yes How ? (0 Replies)
Discussion started by: shauche
0 Replies

7. UNIX for Advanced & Expert Users

time synchronization

i have an HP UNIX box w/c acts as ntp server... I tried to change the time plus 8 minutes... the problem is that the other HP UNIX ntp client did not follow the time... when I tried to restart ntp client... using stop start it only sync to the server once... when I issue the command "ntpq -p", w/c... (2 Replies)
Discussion started by: inquirer
2 Replies

8. HP-UX

NTP time

Is anyone familiar with adding NTP timing to a HPUX 10 OS? Thanks Brian (2 Replies)
Discussion started by: breigner
2 Replies

9. UNIX for Dummies Questions & Answers

Time synchronization

All What is the best way to keep the system clock synchronized? I have looked at ntp and netdate. Is one good over the other? Basically I want to know if what is the most secure way to keep the system clock insync. netdate will require me to open up some port 37... is this safe? ntp also... (1 Reply)
Discussion started by: skotapal
1 Replies

10. UNIX for Advanced & Expert Users

ntp across time zones

I've been tasked to implement ntp on my SCO Unix servers. I have over 600 servers spread across the US in different time zones. Each remote server has network connectivity to a main server here, through their local ISP. (That's how we currently deliver mail to them). My question is, how can... (5 Replies)
Discussion started by: Howeird
5 Replies
Login or Register to Ask a Question