1833702 Members
2964 Online
110062 Solutions
New Discussion

Time server

 
SOLVED
Go to solution
Noa Harel_2
Advisor

Time server

Hello all,
I have 3 questions. I hope you could help me.
I'm using an HP-UX 11.0 machine.
1. I installed a kerberos client to work with a win2k KDC server. The two servers seem to talk with each other but has a problem with the time differences. When I changed the Win2k server's clock It worked beautifully.
I work in Israel and we use: IST -Israel standard time which is GMT+2.
Now.. 2. Since I didn't manage to figure this one out, I wanted to sync the HP-UX clock to a clock on another server. I can't find out how do you do that. and 3. If it can be done - is there any way to let the HP-UX use a time server on an NT machine?

As you see, It's been wonderful to be inside my head in this last couple of hours ((:
Thanks guys.
Noa
8 REPLIES 8
Zeev Schultz
Honored Contributor
Solution

Re: Time server

Noa,see this thread
http://bizforums.itrc.hp.com/cm/QuestionAnswer/0,,0x4a66ef70e827d711abdc0090277a778c,00.html

or just call :)

Best regards

Zeev

So computers don't think yet. At least not chess computers. - Seymour Cray
Caesar_3
Esteemed Contributor

Re: Time server

Hello!

I can help for the sync the time,
you have tool that called "rdate"
you run it with the name of station
with good date for you and it sync the
time of your machine.

The binary for HP came with this msg.

Caesar
Jeff Schussele
Honored Contributor

Re: Time server

Yes, The NT server MUST be running as a NTP time SERVER.
If that's properly setup then you just set the HP server as a client by defining the NT server in it's /etc/ntp.conf file.
BUT I have to comment that the reverse is the better solution - Lord knows, NT servers drift far less than 'NIX servers - NOT!!

My 2 cents,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Bill Hassell
Honored Contributor

Re: Time server

NTP is the tool of choice for synchronizing time. But this should be a network project, not just a couple of machines. Ultimately, all your computers should be running NTP to remain synchronized. Start with a very high accuracy time source--there are dozens on the Internet, and always specify more than 3 or 4. NTP can maintain time witnin 128ms accuracy.

Now if your firewall prevents the NTP port from going to the Internet, then you'll need a local time source (could be a GPS unit, your HP-UX box or with special software, a PC) and then sync all the boxes to that server with possible alternates.

Now if the two boxes (HP-UX and Win2k) are off because of timezones, you definitely do NOT want to change the HP-UX box to match a different timezone. HP-UX, like most flavors of Unix, can handle any timezone dynamically, and you can create any custom timezone. The key os in the environment variable TZ. For IST, set this in your HP-UX .profile:

export TZ=GMT+2

and then type the date command. All time references in this environment will be IST. The key is that you can create a custom environment for time anywhere on earth using the TZ variable. This means that your Kerberos server can be in any timezone. And NTP always maintains time internally as GMT.


Bill Hassell, sysadmin
Steven E. Protter
Exalted Contributor

Re: Time server

If NT is going to be your time server, a lot of the early time servers for it were not compliant to the standard your HP-UX boxes need. An ntpq -q command will produce an error when ntp.conf is pointed to an NT server.

Here are some links to Dr. David Mill's web sites(the father of ntp). On one of these sites is a good ntp server program that I've tested with NT Server and Windows 2K.

http://www.eecis.udel.edu/~mills/

http://www.ntp.org/

http://developer.novell.com/research/appnotes/1999/july/03/02.htm


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Noa Harel_2
Advisor

Re: Time server

Thank you all.
I can't use an Internet Time Server. But I'm going to try the RDATE and check out the NTP sites.
Thank you all (:
Noa
Noa Harel_2
Advisor

Re: Time server

Thank you all.
I can't use an Internet Time Server. But I'm going to try the RDATE and check out the NTP sites.
Thank you all (:
Noa
Noa Harel_2
Advisor

Re: Time server

Thank you all.
I can't use an Internet Time Server. But I'm going to try the RDATE and check out the NTP sites.
Thank you all (:
Noa