06-11-2009
server is not getting synchronized with ntp server
Hello Guys,
i have a problem my local server is not getting synchronized with ntpd server.
1)ntpq -p is giving the following output
remote refid st t when poll reach delay offset jitter
==============================================================================
ntp1 0.0.0.0 16 u - 64 0 0.000 0.000 4000.00
ntp2 0.0.0.0 16 u - 64 0 0.000 0.000 4000.00
(i)i know that if there is no * mark in front of any ntp server means no ntp server is running is my understanding correct?
(ii)in the above output of ntpq -p what is the significance of refid and it's value here is 0.0.0.0 can some body explain this?
2) while i am trying to restart ntps service it's failing and saying the following message
service ntpd start
ntpd: Synchronizing with time server: [FAILED]
Starting ntpd: [ OK ]
3) here i am pasting the /etc/ntp.conf file
vi /etc/ntp.conf
# Prohibit general access to this service.
driftfile /var/lib/ntp/drift
restrict 127.0.0.1
restrict 132.95.160.58 nomodify notrap noquery
restrict 132.95.160.127 nomodify notrap noquery
server ntp1 version 3
server ntp2 version 3
restrict default ignore
# Permit all access over the loopback interface. This could
# be tightened as well, but to do so would effect some of
# the administrative functions.
# -- CLIENT NETWORK -------
# Permit systems on this network to synchronize with this
# time service. Do not permit those systems to modify the
# configuration of this service. Also, do not use those
# systems as peers for synchronization.
# restrict 192.168.1.0 mask 255.255.255.0 notrust nomodify notrap
# --- OUR TIMESERVERS -----
# or remove the default restrict line
# Permit time synchronization with our time source, but do not
# permit the source to query or modify the service on this system.
# restrict mytrustedtimeserverip mask 255.255.255.255 nomodify notrap noquery
# server mytrustedtimeserverip
# --- NTP MULTICASTCLIENT ---
#multicastclient # listen on default 224.0.1.1
# restrict 224.0.1.1 mask 255.255.255.255 notrust nomodify notrap
# restrict 192.168.1.0 mask 255.255.255.0 notrust nomodify notrap
# --- GENERAL CONFIGURATION ---
#
# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available. The
# default stratum is usually 3, but in this case we elect to use stratum
# 0. Since the server line does not have the prefer keyword, this driver
# is never used for synchronization, unless no other other
# synchronization source is available. In case the local host is
# controlled by some external source, such as an external oscillator or
# another protocol, the prefer keyword would cause the local host to
# disregard all other synchronization sources, unless the kernel
(i)in the above ntp.conf file i found the following lines are these correct
132.95.160.58 and 132.95.160.127 are ntp servers we are using
restrict 132.95.160.58 nomodify notrap noquery
restrict 132.95.160.127 nomodify notrap noquery
4) pls also find ntpdate -d (ntp server )
ntpdate -d 132.95.160.58
11 Jun 14:43:38 ntpdate[12230]: ntpdate 4.1.2@1.892 Tue Feb 24 06:32:26 EST 2004 (1)
transmit(132.95.160.58)
transmit(132.95.160.58)
transmit(132.95.160.58)
transmit(132.95.160.58)
transmit(132.95.160.58)
132.95.160.58: Server dropped: no data
server 132.95.160.58, 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: cddb261d.f2249a13 Thu, Jun 11 2009 14:43:41.945
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
11 Jun 14:43:42 ntpdate[12230]: no server suitable for synchronization found
5) drift file from /var/lib/ntp/drift
82.107
is it compulsory drift value always should be 0 if it's so how can we change here this value to 0.
kindly check this and provide your valuable feedback why ntp server is not synchronizing with my server.
with regards,
Srinu
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi.
i was wondering if anyone can show me or direct me on setting up a ntp server under redhat.. Is there any howtos so i can get familar to it "any good sites" (3 Replies)
Discussion started by: souldier
3 Replies
2. Solaris
All,
How do you set a Solaris 9 server which received ntp updates from a ntp server to broadcast them on a local subnet. I have created a /etc/inet/ntp.conf file to receive the updates from a server on network and need to make this server become like a ntp relay from the main server.
Any... (1 Reply)
Discussion started by: bubba112557
1 Replies
3. UNIX for Dummies Questions & Answers
Folks;
I'm setting up a new NTP server to sync time for our network. I have one Linux server that needs to point to that NTP server
My 3 questions are:
1. I added the IP address for the NTP server to the "/etc/hosts" file on the Linux server. Is that all i need to do to make the Linux server... (5 Replies)
Discussion started by: Katkota
5 Replies
4. UNIX for Dummies Questions & Answers
Not connected to the internet so I would like to set up 1 unix machine to be the ntp server and have it sync time to about 30 other machines that are all on an private 10net network?:confused: (3 Replies)
Discussion started by: parrisjr
3 Replies
5. Red Hat
Hi All....
I need to configure NTP server in my network, which is heterogeneous, containing Linux as well as windows systems. I'm planning to configure it on RHEL 5.0. What are the prerequisites for this and do I need to register this server?
Can anyone give me as many information as... (1 Reply)
Discussion started by: Amol21
1 Replies
6. Linux
All here, thank you for listening. Now I've set up a Linux NTP server by adding a external windows NTP server in /etc/ntp.conf. Then I start the ntpd daemon. But how often does the Linux NTP server update its time with the external NTP server? I've looked up everywhere but found no information... (1 Reply)
Discussion started by: MichaelLi
1 Replies
7. UNIX for Advanced & Expert Users
hello Guys,
I have an NTP problem on my SUN N240 server. External NTP server is being used for this box and when i run 'ntpq -p' i get connection refused message;
Code:
ntpq -p ntpq: read: Connection refused
Here this is the ntp.conf file:
Code:
cat /etc/ntp.conf # BEGIN NTP... (1 Reply)
Discussion started by: dyavuzy1
1 Replies
8. HP-UX
Hi
I wonder if its possible to setup NTP clients running HP-UX o.s. from a solaris 10 NTP server?
FR (3 Replies)
Discussion started by: fretagi
3 Replies
9. Red Hat
Hi,
I have two ntp servers in my cluster and I want all the nodes in my cluster to sync with either of the ntp servers or just one. Unfortunately it keep rotating the sync, between my ntp server 1, ntp server 2 and local. Is there anyway I can change the sync to avoid local?
# ntpq -p
... (3 Replies)
Discussion started by: pjeedu2247
3 Replies
10. Linux
Hello
I need to create NTP server for all my devices, What is the best OS for NTP Server? "CentOS, Redhat, Ubuntu "
I tried before Ubuntu but some of device not detect the server
Need your recommendation
Thank you (2 Replies)
Discussion started by: moudmm
2 Replies