1846992 Members
3536 Online
110257 Solutions
New Discussion

Re: Server Time

 
SOLVED
Go to solution
carl airiel
Advisor

Server Time

I have 7 HP-UX server. 3 of them are HP-UX 11. Each of this server have different time and date. Example, one of my server is ahead to 30 mins to the other server. I wanted it to be synchronized with each other. If I'm going to change the time, Will it affect the programs on each server?Will it cause me a lot troubles?Is there a free application or program that I can easily configure on one server?

Regards,
Allan
6 REPLIES 6
melvyn burnard
Honored Contributor

Re: Server Time

There is the xntp service that is available on HP-UX.
You can either manually configure it, or use SAM.

man xntpd
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
James R. Ferguson
Acclaimed Contributor
Solution

Re: Server Time

Hi Allan:

As Melvyn noted, the manpages for 'xntpd(1M)' provide a good source of information.

Chapter-7 of the "Installing and Administering Internet Services" guide discusses NTP configuration and support:

http://docs.hp.com/en/B2355-90685/index.html

You will want to either step or slew time differences if adjustments are needed. To configure slewing, set 'XNTPD_ARGS=-x' in '/etc/rc.config.d/netdaemons'.

If the time difference between your server and your NTP source is too great (>= 1000 seconds), XNTPD will die. You may need to plan a reboot to step the time difference to a very small delta. Re-setting the time can play havoc with databases and some applications. Setting your time forward is generally not a problem. Setting a server's time backwards should be avoided.

Regards!

...JRF...



Shameer.V.A
Respected Contributor

Re: Server Time

Hi Allan,
Happy New Year

You can use the HP UX service ntpd for time synchrnizing. You may set one server as master or you can configure servers as peer. For master server you may synchronize time with external time source like internet for better accuracy.

I'm attaching one file for your reference.
This having the full method of how to use NTP.

Hope this will help you..

Shameer
.... See invisible, feel intangible and achieve impossible as everything is possible ....
Mustafa Gulercan
Respected Contributor

Re: Server Time

hi carl;
you may config ntp as the following;
1- vi /etc/rc.config.d/netdaemons
NTPDATE_SERVER='timeserver'
XNTPD=1

2- vi /etc/ntp.conf
server timeserver
driftfile /etc/ntp.drift

3- /sbin/init.d/xntpd start

4- ntpq -q




mustafa
Arturo Galbiati
Esteemed Contributor

Re: Server Time

Hi Allan,
to knwo the time on remote system:
telnet remote_server 13 2>/dev/null|grep :

HTH,
Art
Muthukumar_5
Honored Contributor

Re: Server Time

You can also use rdate utility to get the remote server time and set it to local machine by running with root user.

Open source project:

http://freshmeat.net/projects/rdate/

--
Muthu
Easy to suggest when don't know about the problem!