1827459 Members
4730 Online
109965 Solutions
New Discussion

Re: NTP set up

 
SOLVED
Go to solution
Musa I. S.
Frequent Advisor

NTP set up

how do i go about setting up NTP in my network. I need my 9 HP servers to have thesame time.
4 REPLIES 4
Ivan Krastev
Honored Contributor

Re: NTP set up

Mustafa Gulercan
Respected Contributor

Re: NTP set up

Hi Musa;
if you have an NTP server, do the following;
1- vi /etc/hosts
x.x.x.x timeserver
2- edit the /etc/rc.config.d/netdaemons file
like,
NTPDATE_SERVER=â timesrv.fun.comâ
XNTPD=1

3- edit /etc/ntp.conf
server timesrv.fun.com
driftfile /etc/ntp.drift
4- /sbin/init.d/xntpd start
5- ntpq -p use this command to preview.
6- you can also use ntpdate -b timesrv.fun.com to set time.

regards,
mustafa
Ernesto Cappello
Trusted Contributor
Solution

Re: NTP set up

Hi Musa,
ntp is the network time protocol service while xntpd is nothing but the daemon which is must to run the ntp service.
Follow this steps:

Login as root to SRV1 server and:
1) Edit " /etc/rc.config.d/netdaemons " file on the SRV1 Server as follows : export NTPDATE_SERVER=
export XNTPD=1
export XNTPD_ARGS=

2)Edit " /etc/ntp.conf " file in the SRV1 server with the below entries at the end of the file :

server
3) To Maually start xntpd daemon : # /sbin/init.d/xntpd start

ON SRV2 side :

1)Edit " /etc/rc.config.d/netdaemons " file on the clients side as follows :
export NTPDATE_SERVER=
export XNTPD=1
export XNTPD_ARGS=
2)Edit " /etc/ntp.conf " file on the SRV2 server and add below entries at the end of the file:
server
3)#/sbin/init.d/xntpd start

In case the time synchronisation doesn't start it will definately start at the reboot of respective servers. 95 % it will start w/o reboot.

Best Regards,
Ernesto
James R. Ferguson
Acclaimed Contributor

Re: NTP set up

Hi:

It is very desirable to have at least three external time sources. I suggest using the NTP Pool services in your region or close to it:

http://www.pool.ntp.org/

Regards!

...JRF...