I have gone through various sites describing on how to setup NTP and also troubleshooting. Even then, I have problems. It is described as under:
My NTP server is running on Windows 2003. It is also a PDC. It gets its time through a GPS based solution. While all my workstations running on XP / 2000 / Vista gets synchronized from the PDC, the problem lies in the linux based server(s).
One of them is a RedHat Fedora 3. As per the instructions, I have opened port 123 on the PDC and it is tagged as "Listening and Filtered".
When I ran ntpq -p on the linux box and here is the result :
Code:
remote refid st t when poll reach delay offset jitter
==============================================================================
192.168.1.30 .INIT. 16 u - 1024 0 0.000 0.000 4000.00
bhadra.appsoft. .INIT.16 u - 1024 0 0.000 0.000 4000.00
blaze.appsoft.a .INIT. 16 u - 1024 0 0.000 0.000 4000.00
*LOCAL(0) LOCAL(0)10 l 57 64 377 0.000 0.000 0.008
192.168.1.30 .INIT. 16 u - 1024 0 0.000 0.000 4000.00
blaze.appsoft.a .LOCL. 1 u 253 1024 377 0.302 -195830 32207.7
bhadra.appsoft. .LOCL. 1 u 249 1024 377 0.548 -195748 35514.7
_______________________________________________________________
Blaze happens to be the PDC.
When I restarted ntpd service, it got synched with a remote ntp server (0.in.pool.ntp.org).
But when I run ntpdate, I get the following :
Code:
ntpdate -d 192.168.1.30
5 May 14:19:46 ntpdate[30360]: ntpdate 4.2.0a@1.1190-r Mon Oct 11 09:10:21 EDT 2004 (1)
Looking for host 192.168.1.30 and service ntp
host found : 192.168.1.30
transmit(192.168.1.30)
transmit(192.168.1.30)
transmit(192.168.1.30)
transmit(192.168.1.30)
transmit(192.168.1.30)
192.168.1.30: Server dropped: no data
server 192.168.1.30, port 123
stratum 0, precision 0, leap 00, trust 000
refid [192.168.1.30], delay 0.00000, dispersion 64.00000
transmitted 4, in filter 4
reference time: 00000000.00000000 Thu, Feb 7 2036 6:28:16.000
originate timestamp: 00000000.00000000 Thu, Feb 7 2036 6:28:16.000
transmit timestamp: cf8bfd05.ed7bb730 Wed, May 5 2010 14:19:49.927
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
5 May 14:19:50 ntpdate[30360]: no server suitable for synchronization found
on the Linux box. The first command may show a 1, but the second should return 0. If it doesn't, check again if the NTP service is running, and Port 123/UDP is allowed incoming and outgoing on both sides.
Yes. It shows 1 for the first command while it returned a 0 for the second.
I ran ntpdate on an impulse once again and this is what I have got :
Code:
5 May 15:03:25 ntpdate[30484]: ntpdate 4.2.0a@1.1190-r Mon Oct 11 09:10:21 EDT 2004 (1)
Looking for host 192.168.1.30 and service ntp
host found : blaze.appsoft.accord.com
transmit(192.168.1.30)
receive(192.168.1.30)
transmit(192.168.1.30)
receive(192.168.1.30)
transmit(192.168.1.30)
receive(192.168.1.30)
transmit(192.168.1.30)
receive(192.168.1.30)
transmit(192.168.1.30)
server 192.168.1.30, port 123
stratum 1, precision -6, leap 00, trust 000
refid [LOCL], delay 0.04144, dispersion 0.00067
transmitted 4, in filter 4
reference time: cf8baec3.0c189374 Wed, May 5 2010 8:45:55.047
originate timestamp: cf8bb67c.48000000 Wed, May 5 2010 9:18:52.281
transmit timestamp: cf8c073d.72bca537 Wed, May 5 2010 15:03:25.448
filter delay: 0.04622 0.04147 0.04147 0.04144
0.00000 0.00000 0.00000 0.00000
filter offset: -20673.1 -20673.1 -20673.1 -20673.1
0.000000 0.000000 0.000000 0.000000
delay 0.04144, dispersion 0.00067
offset -20673.167045
5 May 15:03:25 ntpdate[30484]: step time server 192.168.1.30 offset -20673.167045 sec
-------------------------------------------
So, the windows server is responding. However what is bothering me that the time is not getting synched. I changed the time by 10 minutes on the windows server and ran ntpdate once again, but the time on the linux box did not change. Am i doing something wrong ?
Regards
Jagdish
Edit by pludi: please use [code][/code] tags, or the '#' button for code and listings
Last edited by pludi; 05-05-2010 at 06:45 AM..
Reason: code tags, please...
Because the -d switch tells ntpdate to run in debug mode without modifying the clock (see man ntpdate). If you want to run ntpdate, first stop the ntp daemon itself and start it again afterwards, as both bind to the local port 123, and would conflict otherwise.
LANG=C date
Wed May 5 17:05:25 UTC 2010
LANG=C date -u
Wed May 5 17:06:02 UTC 2010
ntpdate 192.168.1.30
5 May 11:24:07 ntpdate[30748]: step time server 192.168.1.30 offset -20549.160995 sec
LANG=C date
Wed May 5 11:24:36 UTC 2010
LANG=C date -u
Wed May 5 11:24:53 UTC 2010
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)
Hello everyone,
I've been trying to set up NTP authentication between a server and a workstation. Both point to the same NTP server which is on a different physical box with its own IP address. I followed the steps below but I get the following result. How can I get this working?
Expected... (0 Replies)
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)
Hi Guru
I need to know which version of NTP is install in Solaris 10 box. How can I check it.
IF NTP 3 in implemented then somebody told me implement NTP 4 due to security reasons, for that I have to tell what are the vulnerabilities present in NTP 3 to higher authorities. I could not able... (5 Replies)
Hi everybody. I'm not sure where to post this, so I hope here is OK. I have 4 name servers and on one of the slaves, my log files are filling up with this error:
ntpd: sendto() (fd=20): Invalid argument
It is always the same IP, and only on this name server. A quick google revealed that the... (1 Reply)
Hello
I use Solaris 10 and I have NTP packages arlrady installed
pkginfo | grep -i ntp
system SUNWntpr NTP, (Root)
system SUNWntpu NTP, (Usr)
How to configure NTP?
thanks (2 Replies)
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)