- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- NTP on a HPUX 11.11
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2007 08:14 AM - last edited on 03-17-2014 12:21 AM by Maiko-I
02-19-2007 08:14 AM - last edited on 03-17-2014 12:21 AM by Maiko-I
NTP on a HPUX 11.11
I have never setup NTP. How do I do it?
P.S. This thread has been moevd from General to HP-UX > networking. - Hp forum moderator
- Tags:
- NTP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2007 08:19 AM
02-19-2007 08:19 AM
Re: NTP on a HPUX 11.11
You can use SAM or you can configure '/etc/ntp.conf' manually. Chapter-7 of Installing & Administering Internet Services describes the procedure:
http://docs.hp.com/en/B2355-90685/index.html
You should use three (3) time sources. The internet "pool" is ideal:
server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2007 08:23 AM
02-19-2007 08:23 AM
Re: NTP on a HPUX 11.11
Next edit /etc/ntp.conf and add these lines (or something similar after you have determined a good set of servers; these public-access servers are good for the US):
server0.us.pool.ntp.org
server1.us.pool.ntp.org
server2.us.pool.ntp.org
server 127.127.1.1 stratum 10 #localhost
Next edit the file, /etc/rc.config.d/netdaemons and make sure that XNTPD=1.
Now make sure that the current system time is within a minute or so of "real" time. Use the date command to change the system time if needed.
Finally,
/sbin/init.d/xntpd start
Declare victory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2007 08:23 AM
02-19-2007 08:23 AM
Re: NTP on a HPUX 11.11
configre â xntpdâ ( in /etc/netconf ) and make sure that its up and running to get the True time from NTS server . Make sure that time server â xntpdâ is properly configured and started generating loopstat statistics governed by the configuration file â /etc/ntp.confâ . A typical entry in configuration file â ntp.confâ should be as below
server
driftfile /etc/ntp.drift
authenticate no
statsdir /var/etc/ntp.stas/
statistics loopstats
filegen loopstats file loopstats type day enable
filegen loopstats file loopstats type day link enable
keys /etc/ntp.keys ( not everywhere !!!)
Loopstats file should exist in the location defined in the ntp.conf file. Do the following to create the file
mkdir /var/tmp/ntp/
touch /var/tmp/ntp/loopstats
and also edit /etc/rc.config.d/netdaemons to autostart â 1â and put the ntp server name IP as it appears in the ntp.conf file.
# /sbin/init.d/xntpd stop / start
# ntpq â p ( will give the info on time server.)
On successful configuration, xntpd (timeserver) should start generating the drift statistics in the file loopstats under the directory /var/tmp/ntp.
Rgds / James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2007 01:50 AM
02-20-2007 01:50 AM
Re: NTP on a HPUX 11.11
# /sbin/init.d/xntpd stop
-verify connection with ntp sever:
# ntpdate -d ip_ntpserver
-initial clock alignment:
# ntpdate ip_ntpserver
-set ip ntp server
# vi /etc/ntp.conf # type one line:
server ip_ntpserver
-start daemon
# /sbin/init.d/xntpd start
-check
# ntpq -p
you should see after a few minutes a * near ntpserver line
-setup daemon autostart at boot
# vi /etc/rc.config.d/netdaemons
...
Export NTPDATE_SERVER=
Export XNTPD=1
Export XNTPD_ARGS=
...
that should be it
Paolo