- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: NTP for hpux11.31
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
11-18-2008 02:06 AM
11-18-2008 02:06 AM
NTP for hpux11.31
I just set ntp server and client for 2 of my hpux11.31 server.
After start the xntpd service the clock still show the same is there any patches related to this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2008 03:05 AM
11-18-2008 03:05 AM
Re: NTP for hpux11.31
What is the time difference? NTP will slowly adapt the time of the HPUX server to the time of the NTP server.
If you would like to sink the time at once, you can use the ntpdate command.
Just remember that if you have applications running on the HP server and you use the ntpdate command the time will be synced immediate. Question is how will these apps handle this time reset?
If you would like to use ntpdate first stop xntpd, use ntpdate and start xntpd again.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2008 03:14 AM
11-18-2008 03:14 AM
Re: NTP for hpux11.31
usually it takes from 5 and 8 minutes to sync. Anyway is the gap from server and client over 15 minutes?
Best regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2008 03:56 AM
11-18-2008 03:56 AM
Re: NTP for hpux11.31
The client machine also did not follow NTP server time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2008 04:21 AM
11-18-2008 04:21 AM
Re: NTP for hpux11.31
Have you tried looking at syslog.log and maybe /etc/rc.log for errors/excuses?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2008 04:30 AM
11-18-2008 04:30 AM
Re: NTP for hpux11.31
ntp will not handle discrepancies that are too large. To deal with this, you must manually adjust your system clock to within an hour of real time.
Note: You should not roll a system time back with a running oracle database open. Doing so will likely cause it to crash.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2008 05:21 AM
11-18-2008 05:21 AM
Re: NTP for hpux11.31
xntpd dies on clinet if gap from server is too large, that's the reason why I asked if the gap is over 15 minutes on my first post.
See also this from man of xntpd:
The NTP daemon has three regimes in which it operates:
offset below 128 milliseconds
This is the normal operating regime of NTP. A properly configured NTP hierarchy (with reasonable networking) can operate for years without ever approaching the 128 millisecond upper limit. All time adjustments are small and smooth (known as SLEWING), and nobody even notices the SLEW adjustments unless they have a cesium clock or a GPS clock and expensive instrumentation to make sophisticated measurements (HP/Agilent makes the instruments).
offset above 128 milliseconds
This regime is often encountered at power-on because, those battery-backed real-time clocks they put in computers are not too great. Because NTP is quite capable of keeping the offset below one millisecond all the time it is running, many users want to get into the normal regime quickly when an offset above 128 millisecond is encountered at startup. So in this situation NTP will (fairly quickly) make a single STEP change, and is usually successful in getting the offset well below 128 millisecond so there will be no more of the disruptive STEP changes.
offset above 1000 seconds
This is so far out of the normal operating range that NTP decides something is terribly wrong and human intervention is required. The daemon shuts down.
1000 seconds are 16 minutes or so, if you have such discrepancy xtnpd will die with a message in syslog.log.
So post:
- reply about the discrepancy between client and server;
- if syslog.log shows something related to xntpd.
HTH.
Best regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2008 05:21 AM
11-18-2008 05:21 AM
Re: NTP for hpux11.31
xntpd dies on clinet if gap from server is too large, that's the reason why I asked if the gap is over 15 minutes on my first post.
See also this from man of xntpd:
The NTP daemon has three regimes in which it operates:
offset below 128 milliseconds
This is the normal operating regime of NTP. A properly configured NTP hierarchy (with reasonable networking) can operate for years without ever approaching the 128 millisecond upper limit. All time adjustments are small and smooth (known as SLEWING), and nobody even notices the SLEW adjustments unless they have a cesium clock or a GPS clock and expensive instrumentation to make sophisticated measurements (HP/Agilent makes the instruments).
offset above 128 milliseconds
This regime is often encountered at power-on because, those battery-backed real-time clocks they put in computers are not too great. Because NTP is quite capable of keeping the offset below one millisecond all the time it is running, many users want to get into the normal regime quickly when an offset above 128 millisecond is encountered at startup. So in this situation NTP will (fairly quickly) make a single STEP change, and is usually successful in getting the offset well below 128 millisecond so there will be no more of the disruptive STEP changes.
offset above 1000 seconds
This is so far out of the normal operating range that NTP decides something is terribly wrong and human intervention is required. The daemon shuts down.
1000 seconds are 16 minutes or so, if you have such discrepancy xtnpd will die with a message in syslog.log.
So post:
- reply about the discrepancy between client and server;
- if syslog.log shows something related to xntpd.
HTH.
Best regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2008 05:10 PM
11-18-2008 05:10 PM
Re: NTP for hpux11.31
So, next time before you go to start the xntpd service on your server, do an ntpdate command, pointing at one of the three or more lower stratum servers in your /etc/ntp.conf file first. That should get the system time "close enough" for xntpd to be willing to continue living.
Then do the same thing on your clients.
Finally, make sure that /etc/rc.config.d/netdameons (IIRC that is the one) not only sets the XNTPD flag to 1, but also has an entry for the NTPDATE_SERVER entry - I may have the spelling wrong on those, but once you see them it should become clear. That way on your next boot, there will be an ntpdate command prior to xntpd start.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2008 05:16 PM
11-18-2008 05:16 PM
Re: NTP for hpux11.31
Anyway let me try another round by looking at the syslog error if exist.
Thanks all will update the result.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2008 05:24 PM
11-18-2008 05:24 PM
Re: NTP for hpux11.31
So, what are the "server" entries in your ntp server's /etc/ntp.conf file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2008 06:23 PM
11-18-2008 06:23 PM
Re: NTP for hpux11.31
server ntpserverip (10.1.1.x)
broadcast 10.1.1.255
driftfile /etc/ntp.drift
broadcastclient yes
Then the out[ut for below command
ntpdate -d 10.1.1.x
transmit(10.1.1.x)
transmit(10.1.1.x)
transmit(10.1.1.x)
transmit(10.1.1.x)
transmit(10.1.1.x)
server 10.1.1.x, port 123
stratum 0, precision 0, leap 00, trust 000
refid [0.0.0.0], delay 0.00000, dispersion 64.00000
transmitted 4, in filter 4
reference time: 00000000.00000000 Thu, Feb 7 2036 14:28:16.000
originate timestamp: 00000000.00000000 Thu, Feb 7 2036 14:28:16.000
transmit timestamp: cccdf56d.bb866000 Wed, Nov 19 2008 10:16:13.732
filter delay: 0.00000 0.00000 0.00000 0.00000
0.00000 0.00000 0.00000 0.00000
filter offset: 0.000000 0.000000 0.000000 0.000000
0.000000 0.000000 0.000000 0.000000
delay 0.00000, dispersion 64.00000
offset 0.000000
19 Nov 10:16:14 ntpdate[14237]: no server suitable for synchronization found
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2008 06:28 PM
11-18-2008 06:28 PM
Re: NTP for hpux11.31
10.1.1.x 127.127.1.1 stratum 10
driftfile /etc/ntp.drift
server 127.127.1.1
fudge 127.127.1.1 stratum 10
broadcast 10.1.1.255 version 3
pls advice me if I did anything wrong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2008 06:45 PM
11-18-2008 06:45 PM
Re: NTP for hpux11.31
The ntp not work because I am copy out the netdaemons to netdaemons_ori as a backup.
The changes I did in netdaemons file. So it still loking at the non changes one which is netdaemons_ori.
After changing to netdaemons.ori than it recognize the setting I have done.
All client sync to the ntp server now it only diff at the second.(few second ahead or back).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2008 10:02 AM
11-19-2008 10:02 AM
Re: NTP for hpux11.31
If you want the systems to have the correct time, your server must sync to a proper time source or sources.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2008 04:58 PM
11-19-2008 04:58 PM
Re: NTP for hpux11.31
What does the stratum means? Actually I am copy out some of the figure from one of the NTP server which was set by HP eng previously.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2008 05:07 PM
11-19-2008 05:07 PM
Re: NTP for hpux11.31
> What does the stratum means?
See:
http://www.docs.hp.com/en/B2355-91060/ch04s02.html#chbbjajb
This chapter (on NTP) should give you the insight you need.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2008 05:08 PM
11-19-2008 05:08 PM
Re: NTP for hpux11.31
All sorts of useful ntp information at:
http://www.ntp.org/
Keep in mind that the NTP in HP-UX is a somewhat older version than what ntp.org might discuss, so some options in their docs may not match-up, but description of things like stratum is the same.