Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-11-2013, 01:16 PM
|
#1
|
Member
Registered: Jun 2012
Posts: 122
Rep: 
|
NTP client is not syncing to ntp server
Hi
Few of my linux Box .I could found the ntp service is not rsyncing as per Ntp server .Restarting of Ntp service is fixing out issue .There is any alternative command to make NTP client to sync to ntp server without restarting service .
What could be the better step to do ? ntpq -q (or) ntpdate -du ntpserver .Fix my solution .
Last edited by LittleMaster; 02-11-2013 at 01:22 PM.
|
|
|
02-11-2013, 01:29 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
no please or thank you? "Fix my solution" is hardly friendly...
Please post the output of "ntpq -pn" after the service has been running for a while.
|
|
|
02-11-2013, 02:10 PM
|
#3
|
Member
Registered: Jun 2012
Posts: 122
Original Poster
Rep: 
|
Hi Chris
Im planning to restart ntp client .whether ntpd -qg & /etc/init.d/ntpd restart .Both the perform same activities.
I had gone through below article,it says ntpd -qg is unsafe to run on production boxes.I had placed ntpd -qg in /etc/rc.local file to sync when ever the server get reboot .
Since do you have any idea of which could be the better options for starting ntpd service .Runnning ntpd -qg on /etc/rc.local is unsafe
https://wiki.archlinux.org/index.php...rotocol_daemon
Last edited by LittleMaster; 02-11-2013 at 02:16 PM.
|
|
|
02-11-2013, 02:36 PM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
you could try reading what I typed and responding to it.
|
|
|
02-18-2013, 03:49 PM
|
#5
|
Member
Registered: Jun 2012
Posts: 122
Original Poster
Rep: 
|
Hi
Very sorry for late reply .I Could find the ntp uses udp protocol.The ntp server is getting reachable by tracert command.And i could int reach ntp server via traceroute command
ntp service is running fine
telnet to ntpsever to port 123 not working
root:ubuntu# /usr/sbin/ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
sync0.part. .INIT. 16 u - 1024 0 0.000 0.000 0.000
sync1.part. .INIT. 16 u - 1024 0 0.000 0.000 0.000
sync2.part. .INIT. 16 u - 1024 0 0.000 0.000 0.000
*LOCAL(0) .LOCL. 10 l 14 64 377 0.000 0.000
root:ubuntu# /usr/sbin/tcpdump -i eth0 dst ubuntu and port 123
tcpdump: WARNING: eth0: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
0 packets captured
20 packets received by filter
0 packets dropped by kernel
root:ubuntu#
|
|
|
02-19-2013, 01:57 AM
|
#6
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
telnet is no use for troubleshooting UDP, only TCP.
the servers there are listed as strata 16. This means they are not reachable. Either they are not running NTP services, or something between you and them is preventing the access.
|
|
|
04-05-2013, 02:37 PM
|
#7
|
Member
Registered: Jun 2012
Posts: 122
Original Poster
Rep: 
|
Clearing of ARP CACHE resolved the issue temporarily .Every days i could found ntp client is not synchronising once i cleared ARP Cache problem get resolved .Does any one have any sort of idea about it
|
|
|
All times are GMT -5. The time now is 02:04 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|