- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: NTP problem, Client will not accociate with se...
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-09-2005 03:20 AM
11-09-2005 03:20 AM
I have a problem with an NTP client being unable to accociate with a an NTP server. I am able to run ntpdate and it syncs the time correctly, i then start xntpd i get the following
fmdbln95:root /sbin/init.d > ntpq -p
remote refid st t when poll reach delay offset disp
===============================================
itbkln99.qadev. ntp002-cer01-25 6 u 39 64 7 -0.18 -69093. 15882.8
For some reason the Client does not accociate with the server... i have also discovered that the system clock is faulty and it is running fast, could this impact the NTP functionality?
the only entries i have in the ntp.conf are the server name and authenticate set to no.
I have other clients which appear to be configured in exactly the same way (connecting to same NTP server on same DNS domain) which work correctly. anybody have any ideas??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 03:29 AM
11-09-2005 03:29 AM
Re: NTP problem, Client will not accociate with server
/etc/rc.config.d/netdaemons
The following variables should be set:
export NTPDATE_SERVER=
export XNTPD=1
export XNTPD_ARGS=
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 03:45 AM
11-09-2005 03:45 AM
Re: NTP problem, Client will not accociate with server
ps -ef | grep ntp
Check the peers list
ntpq -c peers
Consider enabling peers stats in /etc/ntp.conf
uncomment and set statsdir line
uncomment peerstats line.
Restart xntp and run tail -f on the peerstats
file. Should initially have one line every 16 seconds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 03:45 AM
11-09-2005 03:45 AM
Re: NTP problem, Client will not accociate with server
/etc/rc.config.d/netdaemons
export NTPDATE_SERVER=itbkln99
export XNTPD=1
export XNTPD_ARGS=
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 04:02 AM
11-09-2005 04:02 AM
Re: NTP problem, Client will not accociate with server
ntpq -c peers produces the same output as above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2005 03:08 AM
11-10-2005 03:08 AM
Re: NTP problem, Client will not accociate with server
ntpdate -d
to ensure times are close before starting the NTP deamon.
also, your ntp.conf file should look something like this:
driftfile /var/log/ntp.drift
logfile /var/log/ntp.log
server sometimeserver.somedomain.net
really, server is the only critical option, but logfile and driftfile will give you some clues and let the ntp deamon corret the clock skew, respectively.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2005 04:39 AM
11-10-2005 04:39 AM
Re: NTP problem, Client will not accociate with server
Also, if I'm interpreting the ntpq output correctly, you don't have very good connectivity to the server.
If the client clock is too fubar, the ntpd may not be able to keep it in check, in which case the only recourse would be to more fully investigate the cause of the clock fault.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2005 04:51 AM
11-10-2005 04:51 AM
Re: NTP problem, Client will not accociate with server
Windows time servers frequently can't meet the standard for Unix.
You may need to get different software for windows from ntp.org.
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-10-2005 04:58 AM
11-10-2005 04:58 AM
Re: NTP problem, Client will not accociate with server
of course, another thing... there really should be at least _two_ servers configured in the config file - relying on just one time server isn't a good idea...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2005 03:18 AM
11-16-2005 03:18 AM
SolutionYou grabbed it fairly early in the cycle.
Give it about 10 minutes to syncronize.
Reach should be 377 once it has enough data
to syncronize. This is a bit flag of the success of the last 8 requests 0 = no reply,
1 = reply received. It resets to 0 if ntp
jumps the clock (time is off by more than
128 ms). You may be close enough to jump the
clock.
You are showing an offset of 69 seconds
(over a minute) which is extemely high.
What worries me is the disp value of 15 seconds. Even on a really bad connection
this should be much lower 15 seconds.
Try
/sbin/init.d/xntpd stop
/sbin/init.d/nxtpd start
This should give you a message telling you
the clock is being set to the correct time.
Try ntpq -c peers itbkln99
this should have low offset and displ values
at most about 100. If not you have found
your problem.
Try ntpq -n -c peers itbkin99
then set if you can do
ntpq -n -c peers (ip of itbkin99's server)
If it work and is stable add it to your
server list.
Try running
while sleep 60; do ntqp -p; done
and watch the output for a while.
The values for offset and disp should
decease over time. If they increase and
decrase a lot then itbkin99 is likely not
a good ntpserver. I have seen problems
where an ntpserver appeared to be truncating
the time to the second. Your
variances look like itbkin99 or its server
is truncating to the minute.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2005 03:47 AM
11-16-2005 03:47 AM
Re: NTP problem, Client will not accociate with server
routers, and/or firewall (inside address).
Try using
/sbin/ntpdate -q (ip of )
If this gives you a good value consider using
it.
using ntpq -c peers may allow you
to trace up the tree to better servers.
Consider using three low stratum servers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2005 11:30 PM
11-16-2005 11:30 PM
Re: NTP problem, Client will not accociate with server
Ive found that the system clock is running 70% faster than it should be, it looks as if by the time the client trys to sync to the NTP server the drift is too far out for it to resync itself to the NTP server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2005 11:39 PM
11-16-2005 11:39 PM
Re: NTP problem, Client will not accociate with server
ntp is supposed to override the system clock.
In this situation with the clock really out of whack it might be going out of synch faster than ntp can bring it into sync.
What ntp does if a system is running fast is run the system time slower than reality until the system is in synch with the time source. If the system is going against that this could be why ntp didn't do the trick.
Good Luck,
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-17-2005 02:42 AM
11-17-2005 02:42 AM
Re: NTP problem, Client will not accociate with server
But before you make all this auomatic, you must verify connectivity. Make sure xntpd is stopped first. Then run ntpq -p
The next step (after ntpq -p tests) is to start xntpd using the startup script:
/sbin/init.d/xntpd start
Let this run for about an hour while checking /var/adm/syslog/syslog.log for aqny errors. Now run ntpq -p and it will report on the quality of the NTP server connections. The REACH value should be close to 377. Now with that one connection you already have, the 15 second delay looks like a very slow (simple modem?) connection. If this is all you have, then monitor the ntpq -p results to see if dispersion and reach are improving with time. If not, you will have to get a GPS clock to site on your network as the NTP server. This will at least get you a reliable NTP source without changing your Internet connection.
For a list of NTP sources, go to www.ntp.org
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2005 03:01 AM
11-17-2005 03:01 AM
Re: NTP problem, Client will not accociate with server
that being said, an authoritative time server should be able to slew the clock back into alignment, provided it's close and stable.
set up a local server on a good clock and set the minpoll and maxpoll directives to very low numbers (i.e. sync frequently) and call it a prefered truechimer. all this is per http://www.eecis.udel.edu/~mills/ntp/html/confopt.html
here's an example ntp.conf:
driftfile /var/ntp/drift
logfile /var/ntp/log
server ntp.local.net minpoll 4 maxpoll 6 prefer true
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2005 03:13 AM
11-18-2005 03:13 AM
Re: NTP problem, Client will not accociate with server
When i run ntpq associations it reports that the NTP servers are insane, this i gather is why they will not associate and sync.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2005 04:35 AM
11-18-2005 04:35 AM
Re: NTP problem, Client will not accociate with server
MAXPOLL and MINPOLL force it to synchronize often, which will speed the renormalization of the system clock.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2005 05:04 AM
11-18-2005 05:04 AM
Re: NTP problem, Client will not accociate with server
despite the attempts to sync with other servers failing, probably best to keep them in the config file so you have more than one configured for when you do get the system board replaced.