1834786 Members
3201 Online
110070 Solutions
New Discussion

Re: Time Sycronization

 
augusto cossa
Frequent Advisor

Time Sycronization

Good Day all,

I have 7 HP-UX servers and I would like to syncronize the time between them to be the same.

Help on it will be appreciated.

Thanks
Augusto
4 REPLIES 4
Alex Glennie
Honored Contributor

Re: Time Sycronization

this has been covered on the forum multiple times: use search facility top left: try "NTP time synchronisation" as your search string and you should get loads of info !
federico_3
Honored Contributor

Re: Time Sycronization

Implement NTP on a ?network? based on the 7 UNIX systems.

The mechanism which NTP uses to keep systems clocks in syncronization is the following :

You could have two NTP peer servers ( between the seven you have) with internal system clock as time source and all the other machines as NTP client . This configuration can be done easily with SAM ( Time -> NTP Network time Sources ) or configuring the files /etc/ntp.conf and /etc/rc.config.d/netdaemons as explained in the man xntpd. After this configuration start the Daemon xntpd ( manually doing /sbin/init.d/xntpd start or with SAM -> Start NTP on action)


I hope this helps
Kofi ARTHIABAH
Honored Contributor

Re: Time Sycronization

Yes Augusto, you can use a combination of xntpd and ntpdate to sync your servers. There have been a couple of posts on this subject...

http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0xe95f7e990647d4118fee0090279cd0f9,00.html
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x84a30559ff7cd4118fef0090279cd0f9,00.html
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x9bc0119c3420d411b66300108302854d,00.html

You can also do a man on xntpd and ntpdate.

Essentially what you have to do is to set up one of the servers as a timeserver
then set up cron entries on each of the other boxes to run ntpdate -s timeserver at (say ) every 8 hours
if you are directly connected to the internet you can sync to an ntp server from your timeserver

also see...

http://www.eecis.udel.edu/~ntp/ntpfaq
nothing wrong with me that a few lines of code cannot fix!
federico_3
Honored Contributor

Re: Time Sycronization

As said by Kofi ARTHIABAH you could activate the xntpd daemon on one Server (let's say server1) and in the other ones you have to add a cron entry like this:
0 8,16,0 * * * /usr/sbin/ntpdate -s server1

This way it works fine but from my point of view it's better having two peer servers (As explained in the previous mail) in a such way that if one of the ntp client lose connection to one of the ntp servers it's the other one to give the sync.


Federico