System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: NTP configuration in HPUX

 
SOLVED
Go to solution
Super Advisor

NTP configuration in HPUX

Hi All,

I am using HP-UX 10.20, 11.00, 11.11, 11.23 adn 11.31.

Having folloing questions about configuring NTP on all above mentioned OS:

1)How to view if NTP is already configured?

2)Is there any difference in configuring NTP among above mentioned OS?

3)How to configure NTP?
7 REPLIES 7
Outstanding Contributor

Re: NTP configuration in HPUX

SAM


Pete

Pete
Honored Contributor
Solution

Re: NTP configuration in HPUX

1)How to view if NTP is already configured?

ntpq -p

2)Is there any difference in configuring NTP among above mentioned OS?
no

3)How to configure NTP?

edit /etc/rc.config.d/netdaemons and change XNTPD variable value to 1

edit /etc/ntp.conf and add ntp server entry

server

start xntpd service
/sbin/init.d/xntpd start


check the ntp sync status

ntpq -p

Regular Advisor

Re: NTP configuration in HPUX

1)How to view if NTP is already configured?

#ntpq -p -->This command will list you ntp servers,stratum delay time, offset & disp

2)Is there any difference in configuring NTP among above mentioned OS?

>>>NO

3)How to configure NTP?

>Edit /etc/ntp.conf (configuration file)

put ntp server entries in ntp.conf file.
drift file path

>Edit /etc/driftfile
put reuired value(as per the timezone)

>edit /etc/rc.config.d/netdaemons

XNTPD=1 (For start ntp daemon automatically at nextboot)

start daemons.

/sbin/init.d/xntpd start
Acclaimed Contributor

Re: NTP configuration in HPUX

Hi Senthil:

As usual, if you consult the vast documentation stable at docs.hp.com you could easily answer these questions. For example:

http://docs.hp.com/en/B2355-91060/ch04.html

You should configure at least three (3) time sources for the best, most accurate timekeeping. The NTP "pool" is a wonderful source sink:

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

Regards!

...JRF...
Super Advisor

Re: NTP configuration in HPUX

Hi All,

Time zone is fetched from local (/etc/TIMEZONE) or remote server (NTP server)?

Honored Contributor

Re: NTP configuration in HPUX

As far as NTP is concerned, the time zone is irrelevant.

NTP is based on GMT/UTC time, as is the internal clock on the system.

Acclaimed Contributor

Re: NTP configuration in HPUX

Hi (again):

> Time zone is fetched from local (/etc/TIMEZONE) or remote server (NTP server)?

No. NTP works in UTC (GMT, if you prefer). NTP doesn't care about localtime zones. All synchronization is done in UTC. In fact, for NTP to synchronize your server's clock, your server's clock must be close to the correct UTC time. Check it with:

# date -u

Regards!

...JRF...