- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ntp confusion
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
09-06-2004 06:15 AM
09-06-2004 06:15 AM
ntp confusion
I only have 3 entries in my ntp.conf file. 2 servers and one peer, as shown below.
server 210.0.2.4
server 210.0.2.2
peer 210.0.2.1
Yet after a while, say 10 minutes, I get this kind of display from an ntpq -p command.....
remote refid st t when poll reach delay offset disp
==============================================================================
*210.0.2.4 192.5.41.41 2 u 447 512 377 0.24 4.838 0.79
+210.0.2.2 192.5.41.40 2 u 489 512 377 0.27 -4.934 0.49
+210.0.2.1 210.0.2.4 3 u 343 512 376 0.55 -5.641 4.20
+210.0.2.103 210.0.2.4 3 u 226 512 377 1.42 5.569 4.15
-210.0.2.7 210.0.2.2 3 u 445 512 376 1.31 -31.125 4.14
+210.0.2.6 210.0.2.4 3 u 274 512 377 0.38 -2.574 2.23
+210.0.2.5 210.0.2.4 3 u 271 512 377 0.61 0.583 2.47
+210.0.2.102 210.0.2.4 3 u 203 512 377 2.37 -4.137 3.98
Now the first 3 entries correspond to the 3 entries in the ntp.conf file. The other 5 entries are coming from I have no idea. They are all valid IP's on our private network that goes between machines, but they aren't in the ntp.conf file. So why they are showing really has me puzzled.
Of 10 machines 8 are working fine and two have the same symtoms as above. Any ideas would be appreciated.... Really strange. FYI the two are 2 of four systems running HPUX 11.11 and the other two are running fine. The other 6 are 5 HPUX 11.00 and one SuSE Linux. Like I said everyone else is happy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2004 07:00 PM
09-06-2004 07:00 PM
Re: ntp confusion
The good news is that the ntpd is sync'd with your first preferred choice "0.2.4".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2004 07:57 PM
09-06-2004 07:57 PM
Re: ntp confusion
Refer this link.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=550229
Hope that helps.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 06:04 AM
09-07-2004 06:04 AM
Re: ntp confusion
If you're looking for a fallback, a common way to do this is with the local clock. Just add this to your local NTP servers:
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10 # backup clock (internal)
This tells NTP on this machine to resort to using the internal clock when all servers above startum 10 are unreachable.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 06:23 AM
09-07-2004 06:23 AM
Re: ntp confusion
Example, the only entries would be
server 210.0.2.4
server 210.0.2.2
peer 210.0.2.1
There would be no other entries in the file. You would not have the LOCAL clock, you would not be broadcasting, no driftfile, etc. But it will keep time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 07:02 AM
09-07-2004 07:02 AM
Re: ntp confusion
Andrew:
Only one server broadcasting and it is to a "public" IP address range.
Bharat:
Deep link... but not much help
Bill:
It was my understanding that the purpose of "peers" was to maintain time between non-server machines should your machines that get the time from the internet are not available.
Rick:
Sounds good, except by broadcast is how we keep windows machines sync'd.
Hope the attachment isn't to confusing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 09:00 AM
09-07-2004 09:00 AM
Re: ntp confusion
The design of NTP is that it always ensures that there are 86400 seconds per day. So if a reference clocks go wacko and all say that the time is 25 minutes in the future or past, your server will ignore the reference clocks and freewheel to prevent any jump in time. Same with loss of the clocks. All your machines will sync on your server so that everyone has the same time. When the reference clocks are back, the local server will slowly adjust at fractions of a second until external sync is within 128ms. (note that you should have several external clock sources for reliability, somewhere between 3 and 6--see www.ntp.org for a bunch of sources. HP has one: ntp-cup.external.hp.com). Note also that your server should have the export NTPDATE_SERVER= setup. The reason is that on reboot, the time will be jumped to the correct time before anything important is started, something like: export NTPDATE_SERVER=tock.usno.navy.mil
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 09:50 AM
09-07-2004 09:50 AM
Re: ntp confusion
Do sync with multiple stratum 1 servers. If for some reason the stratum 1 server goes down, you have another stratum 1 server you are sync'ing with.
I look at 3 different sources. If 1 source (stratum 1 server) goes down then I have 2 additional stratum 1 servers I am sync'ing with.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2004 02:40 PM
09-07-2004 02:40 PM
Re: ntp confusion
I have shown in the attached file what is in the ntp.conf and netdaemons. But what comes out of ntpq -np is totally not what is in the files mentioned above. Still looking for ideas where to look to understand what went so wrong.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2004 07:46 AM
09-08-2004 07:46 AM
Re: ntp confusion
I think your "peers" configuration is not delivering any benefit to you, and it is almost certainly what is causing the strange output from ntpq.
You would be better off if all your stratum-2 machines had the same ntp.conf file:
==========
server 192.5.41.40
server 192.5.41.41
server time-a.timefreq.bldrdoc.gov
server time-c.timefreq.bldrdoc.gov
===========
Forget about the peering, it is obsolete when you have network connections. The above configuration with four stratum-1 servers protects you from the failure of any three (which is what you were trying to do with peering 2x2), and it will clear up your ntpq problems as well.
Peering was worth something when stratum-1 servers were accessed by a phone call or other point-to-point link (circa 1980), but today we have the internet and you can easily access three or more stratum-1 servers on each stratum-2 server of yours. Your entire campus only needs to have three stratum-2 servers, so the loading is reasonable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2004 04:28 AM
09-10-2004 04:28 AM
Re: ntp confusion
It turns out that if server "A" does a peer TO (here repeat the word TO) server "B", server "B" gets an entry in the output of ntpq -p even if there is NO ENTRY for server "A" in the ntp.conf file.
Since server 4-8 were getting their time from server 2 and 3 because of peer, there were 5 unexpected entries whenever I did an ntpq -p function on either of them.
Took the peer out of 4-8, restarted xntp on server 2 and 3 and now everything looks like I origninally thought it should.
Thanks to all
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2004 04:29 AM
09-10-2004 04:29 AM