Operating System - HP-UX
1830229 Members
2664 Online
109999 Solutions
New Discussion

To syncronize my UNIX server with WIN2K time server

 
System Dude_1
Frequent Advisor

To syncronize my UNIX server with WIN2K time server

Dear expert,

I would like to syncronize my unix(HP,Solaris,IBM) server with my WIN2K time server. I've used /usr/sbin/ntpdate -a 8 -k /etc/ntp.keys -t 3000 xxx.xxx.xxx.xxx command where xxx.xxx.xxx.xxx is the WIN2K IP address but the unix server seems could not sync the time. It just hung there trying to connect and come out with below log.

30 Nov 15:06:59 ntpdate[22688]: no server suitable for synchronization found

Please advice
Performance Issue on HP-UX 10.20
2 REPLIES 2
Sanjay_6
Honored Contributor

Re: To syncronize my UNIX server with WIN2K time server

Bill Hassell
Honored Contributor

Re: To syncronize my UNIX server with WIN2K time server

Use ntpq -p win2k_box to query your WIN2K server. If it does not respond, then contact your win2k manager and perhaps you network administrator to make sure your system is allowed to obtain NTP time from the win3k box. And I am assuming your win2k server has been setup as an NTP server (domain server time syncs are meaningless outside of the PC world). Once ntpq -p is working (it will show you the win2k time sources), do NOT use ntpdate for sync! This is an old hack that bypasses all of the code in xntpd to keep local time accurate. Add your server to /etc/ntp.conf and enable NTP on reboot by editing /etc/rc.config.d/netdaemons. Set the BTP server name and turn on the enable option. Verify that it works by shutting down any database programs or other time sensitive processes, then type:

/sbin/init.d/xntpd start

The time will be jumped to the server's time (which is why you stop time critical processes) and xntpd will be run to keep your local server synced to within 128ms.


Bill Hassell, sysadmin