Operating System - HP-UX
1822158 Members
3806 Online
109640 Solutions
New Discussion юеВ

Synchronize time HP-UX with Windows 2000

 
Robson Menezes
Occasional Contributor

Synchronize time HP-UX with Windows 2000

We have tree HP-UX Servers and one Windows 2000 Server. How Can I synchronize the time HP-UXs with Windows 2000?

HP-UX nameserver B.11.00 A 9000/712
Windows 2000 Server is the Master Server Time.

I tried the NTP Daemon and put the lines on ntp.conf:

server nameserver version 3 prefer
broadcast version 3

But it didin┬┤t work.
10 REPLIES 10
Steven E. Protter
Exalted Contributor

Re: Synchronize time HP-UX with Windows 2000

Please post output of:

ntpq -q

or

ntpq -p

I forget which.

Windows 2000 Servers standard time server is not ntp standards compliant and can not be used as a time source for HP-UX.

Patching is required to make it compliant.

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
Hakan Aribas
Valued Contributor

Re: Synchronize time HP-UX with Windows 2000

Hi Robson,

I have prepared a step-by-step guide for you: How to synchronize time of HP-UXs with Win2K :-)

Sincerely,
Hakan
Florian Heigl (new acc)
Honored Contributor

Re: Synchronize time HP-UX with Windows 2000

ewwww, there's a few things to say here.

windows 2000 is using SNTP (S as in 'Simple')

- it doesn't know how to send broadcasts
- it doesn't know how to receive broadcasts

broadcast is the statement to *send* broadcasts, but the IP of the windows server of course is no broadcast address.

What You want is done by simply saying
server version 3

Notes:
- Windows is not good at timekeeping, and Unix is very critical about time, so this might not be a very good idea and unless You chose to run the NTP distribution on the windows host, You won't get broadcast to work
- the correct statement to let hp-ux listen for broadcasts is
broadcastclient
- rather use multicast
yesterday I stood at the edge. Today I'm one step ahead.
Florian Heigl (new acc)
Honored Contributor

Re: Synchronize time HP-UX with Windows 2000

Wow, Hakan, I just looked at Your pdf -
great idea for a walkthrough!
yesterday I stood at the edge. Today I'm one step ahead.
rariasn
Honored Contributor

Re: Synchronize time HP-UX with Windows 2000

Hi Robson,

Verify /etc/rc.config.d/netdaemons file.

export NTPDATE_SERVER=sntp.domain.net
export XNTPD=1
export XNTPD_ARGS=

Yogeeraj_1
Honored Contributor

Re: Synchronize time HP-UX with Windows 2000

hi,

see also my recent threads which permitted me to troubleshoot my timeserver problem http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=947300
and
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=953153


kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Robson Menezes
Occasional Contributor

Re: Synchronize time HP-UX with Windows 2000

My dears friends...thank├В┬┤s for all!
I`m sorry but my English isn├В┬┤t good. It├В┬┤s not my first language :-)

I did all the steps by Hakan├В┬┤s PDF, but didn├В┬┤t work.
After the PDF I made some things.
My procedures...
1. Netdaemons file
/etc/rc.config.d/netdaemons

export NTPDATE_SERVER=
XNTPD=1
export XNTPD_ARGS=

2. ntp file
/etc/ntp.conf
broadcastclient yes
server nameserverWin2000 version 3
driftfile /etc/ntp.drift

3. Run xntpd
/sbin/init.d/xntpd start

After that...ERRO
root@suport:/etc =>/sbin/init.d/xntpd start
21 Sep 09:22:50 ntpdate[2190]: no server suitable for synchronization found

4. ntpd tests
usr/sbin/ntpq -p
root@suport:/etc/rc.config.d =>ntpq -p
remote refid st t when poll reach delay offset disp
==============================================================================
nameserverWin2000 0.0.0.0 16 u 12 64 0 0.00 0.000 16000.0


root@suport:/etc/rc.config.d =>/usr/sbin/ntpdate -d nameserverWin2000
21 Sep 09:54:48 ntpdate[2251]: ntpdate version=3.5f; Thu Oct 23 13:37:24 PDT 1997 (6)
transmit(191.168.1.100)
receive(191.168.1.100)
transmit(191.168.1.100)
receive(191.168.1.100)
transmit(191.168.1.100)
receive(191.168.1.100)
transmit(191.168.1.100)
receive(191.168.1.100)
transmit(191.168.1.100)
server 191.168.1.100, port 123
stratum 2, precision -7, leap 00, trust 000
refid [0.0.0.0], delay 0.03436, dispersion 0.00276
transmitted 4, in filter 4
reference time: 00000000.00000000 Thu, Feb 7 2036 3:28:16.000
originate timestamp: c6dbd92f.1b22d0e5 Wed, Sep 21 2005 10:05:51.106
transmit timestamp: c6dbd698.41bda000 Wed, Sep 21 2005 9:54:48.256
filter delay: 0.03514 0.03439 0.03450 0.03436
0.00000 0.00000 0.00000 0.00000
filter offset: 662.8542 662.8520 662.8504 662.8487
0.000000 0.000000 0.000000 0.000000
delay 0.03436, dispersion 0.00276
offset 662.848728

21 Sep 09:54:48 ntpdate[2251]: no server suitable for synchronization found

Ahh...where has nameserverWin2000...is the name of the Windows 2000 Server.Ok

HELP ME!
Thanks > Obrigado!
Charles Holland
Trusted Contributor

Re: Synchronize time HP-UX with Windows 2000

Robson,

I'm are going to give this a shot.

First off I agree with SEP and Florian that Windows doesn't use the same ntp tha HP-UX does.

As you can see in your test 3 and test 4 "no server suitable for synchronization found" means exactly that. I don't believe that Windows can do a broadcast, without 3rd party software, but it can do a receive. If you want to look at 3rd party software I would suggest that you look at Tardis 2000 located at
http://www.kaska.demon.co.uk/tardis.htm

It has the capability to get the time from atomic clocks on the internet AND do a broadcast (not worked with that part).

We sync our HP-UX servers to the atomic clocks using the ntp that is provided as part of HP-UX, broadcast the tiime on our intranets and then have the pc's and I believe the Windows servers also sync to that signal with no additional software on either of them. This,unfortunately, is just the opposite of what you want to do.

If you MUST sync your HP-UX to the Windows you might try Tardis above.

Regards
"Not everything that can be counted counts, and not everything that counts can be counted" A. Einstein
Steven E. Protter
Exalted Contributor

Re: Synchronize time HP-UX with Windows 2000

http://www.meinberg.de/english/sw/ntp.htm#ntp_nt

http://www.ntp.org

There are free servers for NT/2000/2003 that actually comply with Unix standards.

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
Robson Menezes
Occasional Contributor

Re: Synchronize time HP-UX with Windows 2000

Thank you!!!
I├В┬┤m going to try now.
I think that the problem is the port 123 (Windows 2000).
See you...