Operating System - HP-UX
1748089 Members
5095 Online
108758 Solutions
New Discussion юеВ

Re: How can I set the NTP for my HP-UX 11i server

 
SOLVED
Go to solution
Steve Tang
Occasional Advisor

How can I set the NTP for my HP-UX 11i server

Hi,

I have to configure NTP today morning...this is first time to config NTP.

Could someone give me full detail installation guide...???

I'm using HP-UX 11.11.

I have make the new setting in SAM but it not work ?
7 REPLIES 7
Armin Feller
Honored Contributor

Re: How can I set the NTP for my HP-UX 11i server

Here you will find all around NTP, it is very easy to configure.

http://www.eecis.udel.edu/~ntp/

Please have a look.
Leif Halvarsson_2
Honored Contributor

Re: How can I set the NTP for my HP-UX 11i server

Hi,
I assume yuo are going to use an external NTP server (from internet) as time source.

Start SAM.
Select "Time".
Select "NTP Network time sources".
Select "Add remote server or peer" from action menu.
Type the name or IP adress for the NTP server.
Select "Relationship",Server and Preferred server.
Done

Tom Ward_1
Honored Contributor

Re: How can I set the NTP for my HP-UX 11i server

Make sure you can connect the the time servers listed in /etc/ntp.conf

What does the output of /usr/sbin/ntpq -p show?

You might check the NTP section of /etc/rc.config.d/netdaemons. Be sure you have NXTPD=1 or the init script won'tstart the deamon.

Michael Steele_2
Honored Contributor
Solution

Re: How can I set the NTP for my HP-UX 11i server


NTP Time server
===========
# cd /etc/
# /sbin/init.d/xntp stop
# vi ntp.conf
server 127.127.1.1 minpoll 3 maxpoll 4 prefer
fudge 127.127.1.1 stratum 10
broadcast ip

# /sbin/init.d/xntp start

NTP Client
======
# cd /etc/rc.config.d
# /sbin/init.d/xntp stop
# vi netdaemons

export NTPDATE_SERVER=node name
export XNTPD=1

# ntpdate
# /sbin/init.d/xntp start

Wait for about 5-8 min, run the follwoing to check the status:
# ntpq -p
chk for output of "reftime" it should not be zero if the servers are in sync.
Support Fatherhood - Stop Family Law
Bill Hassell
Honored Contributor

Re: How can I set the NTP for my HP-UX 11i server

Just a note about ntpq before you get started. Most corporate firewalls won't let NTP services pass through. The good news is that most modern firewalls have NTP built-in so if your network admins did a good job, the firewall itself may already be synced to some of the many atomic clocks on the internet and in turn can act as your internal time service.

To verify that you have working time servers, use the ntpq command as in:

ntpq -p server_name_or_IPaddr

If you get a timeout or no service found, then the server is not reachable or is not providing NTP service. Once you have an NTP source(s), then follow the instructions above. It's always good to have several sources for reliability.


Bill Hassell, sysadmin
Steven E. Protter
Exalted Contributor

Re: How can I set the NTP for my HP-UX 11i server

As far as ntp sources go, if you are told to point to a microsoft server on your network, it needs the latest version of Dr. Mill's NT/2000/XP ntp program.

The built in Microsoft time source programs didn't meet standards and HP boxes couldn't talk to them.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steve Tang
Occasional Advisor

Re: How can I set the NTP for my HP-UX 11i server


when I use :

#ntpq -p

it can display the server which I set in the "netdaemons" and there have a sign "*" before the IP address mean use for sync

Moreover,
I don't why when I use:

#ntpq -q IP_Adderess

it prompt out time out, no request??