1847252 Members
3126 Online
110263 Solutions
New Discussion

syn. system time

 
SOLVED
Go to solution
peterchu
Super Advisor

syn. system time

I want to syn. the system time on all hosts , I use rdate -s to get update the local system time on linux system, could suggest how to do it at UNIX system ? thx.
5 REPLIES 5
Sunil Sharma_1
Honored Contributor
Solution

Re: syn. system time

Hi,

Best way to configure ntp on your network.

Configure one server as time server or NTP server and other should be NTP client.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Sanjay Kumar Suri
Honored Contributor

Re: syn. system time

As Sharma suggested NTP is the best suited for HP-UX systems in networking environment to synchronize time.

HP-UX uses a network time service bundled with the OS called Network Time Protocol (NTP) and is used to synchronize system times in the network. The xntpd daemon is used to implement this feature. NTP is configurable through the command line or through SAM.

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Victor Fridyev
Honored Contributor

Re: syn. system time

Hi,

In order to synchronize HPUX machine with another one, use the following command :
/usr/sbin/ntpdate -b hostname.
If you need constant synchronization, edit the the following files: /etc/ntp.conf (according to the explanations in it) and and /etc/rc.config.d/netdaemons and update the following:
export NTPDATE_SERVER=hostname
export XNTPD=1

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

BTW, all this stuff can be done from SAM
Entities are not to be multiplied beyond necessity - RTFM
peterchu
Super Advisor

Re: syn. system time

thx replies, I have a unix server , how to get the system time from a linux server ( just like the rdate command on the linux ) ? thx much.
Elmar P. Kolkman
Honored Contributor

Re: syn. system time

Linux has xntp as well... I would suggest running it on those as well, with one or two as 'timeservers' and the rest trying to sync to it.

Also, I would recommend NOT to use ntpdate, or use the capital B option, to make sure the time is synced but does not make timejumps. Software sometimes doesn't like timejumps, especially timejumps back in time. By using '-B', the clock is synced by adjusting the speed at which the system clock runs. You could put a ntp server name in /etc/rc.config.d, but mind that the clock is then adjusted with a jump every time you start the ntp daemon by using the script in /sbin/init.d !
Every problem has at least one solution. Only some solutions are harder to find.