Operating System - HP-UX
1833776 Members
2523 Online
110063 Solutions
New Discussion

Setup NTP for HP-UX 11.00

 
SOLVED
Go to solution
twtandigi.com.my
Frequent Advisor

Setup NTP for HP-UX 11.00

hi,

i am currently setting up the ntp for the servers.
i am not sure where to start and what else to do.
i have read through the documents but is seems to be quite confusing.
does anyone have any simple instructions/tips and hints on how it is suppose to be implemented?

Regards,
Calvin
4 REPLIES 4
Shaikh Imran
Honored Contributor

Re: Setup NTP for HP-UX 11.00

Hi,
Try this link below
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=500591

Regards
I'll sleep when i am dead.
Tapas Jha
Valued Contributor
Solution

Re: Setup NTP for HP-UX 11.00

Hi,
U can follow like this.

0) Check NTP patch is there or not. In our case it is PHNE_27223.
1)Add following lines on /etc/ntp.conf file. (Check ip address)
server 192.5.41.40 #tick.usno.navy.mil (Time server name)
restrict default notrust nomodify
restrict 192.5.41.40 nomodify
# The local host is unrestricted ( no
flags ).
restrict 127.0.0.1
restrict (localhostipaddr)
driftfile /etc/ntp.drift
2)Then touch /etc/ntp.conf
3) Then Start ntp daemon and your server is setup
/usr/sbin/xntpd
4)To make sure it start at boot time edit /etc/rc.config.d/netdaemons file
Add export NTPDATE_SERVER=tick.usno.navy.mil(Time Server name)
and replace export XNTPD=0 with
export XNTPD=1
5)To verify
ntpq -p

##man xntp and or ntp.conf read it there, but basically it goes something like below which is not in my system.
## edit /etc/rc.config.d/xntp & make NTP=1
##edit /etc/ntp.conf appropriately
##/sbin/init.d/xntp start


Regards
Tapas
Tapas Jha
Robert-Jan Goossens
Honored Contributor

Re: Setup NTP for HP-UX 11.00

Hi Calvin,

Startup sam --> Time --> NTP network time sources.

Regards,
Robert-Jan
Ernesto Cappello
Trusted Contributor

Re: Setup NTP for HP-UX 11.00

Hi Calvin,
ntp is the network time protocol service while xntpd is nothing but the daemon which is must to run the ntp service.

How to configure the SRV#1 as the master and SRV#2 as the slave in order these 2 servers will have the same time

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

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

server

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


ON SRV#2 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 SRV#2 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.

Regards, Ernesto