Operating System - HP-UX
1825805 Members
2107 Online
109687 Solutions
New Discussion

Re: Difference in System time

 
Dayanand Naik_1
Occasional Advisor

Difference in System time

Hi Folks,

We are running HP-UX 11.00 on two L Class servers in a cluster environment, and our application is real time online transaction site.

The problem is that the system time differs from each other, even after setting it properly, How can this be rectifited, We dont want to connect our server on to the internet to the time servers, any other solution !!!!

Suggestin welcomed

Regards,
!!! Naik !!!
7 REPLIES 7
Michael Tully
Honored Contributor

Re: Difference in System time

Th best way is to set up NTP (network time protocol) from both of your servers to say your router. Both will then have the same time. Get your friendly network administator to have the time on your router (or firewall) to synchronise with an atomic time clock. See this document on NTP. You could also check them to each other.

http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90741/B2355-90741_top.html&con=/hpux/onlinedocs/B2355-90741/00/00/67-con.html&toc=/hpux/onlinedocs/B2355-90741/00/00/67-toc.html&searchterms=NTP&queryid=20021014-225802
Anyone for a Mutiny ?
Jim Mallett
Honored Contributor

Re: Difference in System time

You could use ntpdate. It doesn't necessarily have to sync w/ internet time. You could have one server A broadcasting the time and server B set up to pick up the time from server A.

Best of luck,
Jim
Hindsight is 20/20
Fragon
Trusted Contributor

Re: Difference in System time

Use NTP service!
Either box can be set as NTP server. That's a convient way to synchronize the time for many server by using NTP!

-ux
yogesh_4
Regular Advisor

Re: Difference in System time

you setup one of your box as a NTP server. To know more about NTP pls go through bwlow link.('http://docs.hp.com/hpux/onlinedocs/B2355-90685/B2355-90685.html')
Caesar_3
Esteemed Contributor

Re: Difference in System time

Hello!

You can use the ntp or use the rdate
that i added to this msg so save it, unzip
and use: rdate

Caesar
Bill Hassell
Honored Contributor

Re: Difference in System time

Your entire data center should be using NTP. It is the most accurate and stable method to keep hundreds, even thousands of systems in sync to a fraction of a second accuracy. There is no need to connect to the Internet--you probably already have a router/firewall connected to the Internet so you can use that as your time source (contact your network admins). If not, there are inexpensive GPS receivers that can be used to obtain the time of day from satellites and connected to one of your systems (PC or HP-UX) and in turn, act as a time server for the entire network. The protocol is extremely lightweight (no load on the system) but very accurate. NTP code is standard with HP-UX (and most other Unix flavors) as well as Windows-based systems.


Bill Hassell, sysadmin
Dayanand Naik_1
Occasional Advisor

Re: Difference in System time

thanks