Operating System - HP-UX
1753288 Members
5298 Online
108792 Solutions
New Discussion юеВ

Re: NTP - how to force synchronization without an association?

 
SOLVED
Go to solution
habyor
Occasional Advisor

NTP - how to force synchronization without an association?

Hello,

the HP-UX troubleshooting NTP documentation says that:

"
Every NTP time hierarchy must have at least one stratum-1 server,
with an external time source configured, either an attached radio clock
or the local system clock. If there is no stratum-1 server in the hierarchy,
no associations will be formed.
"

Is it possible to force NTP client to synchronize its time with a local (LAN)
NTP server despite the fact there is no stratum-1 server in the hierarchy?

I have a local (LAN) NTP server. When I type ntpq -p, it shows this:

remote refid st t when poll reach delay offset jitter
==============================================================================
ixi26.internetd .INIT. 16 u - 1024 0 0.000 0.000 0.000
ntp.ipartners.p .INIT. 16 u - 1024 0 0.000 0.000 0.000
vega.cbk.poznan .INIT. 16 u - 1024 0 0.000 0.000 0.000
smtp.certum.pl .INIT. 16 u - 1024 0 0.000 0.000 0.000
europium.canoni .INIT. 16 u - 1024 0 0.000 0.000 0.000

There is no '*' in the remote column, meaning there is no associacion.

When I type ntpq -p from my HP-UX client, it shows this:

remote refid st t when poll reach delay offset disp
==============================================================================
repepwd 0.0.0.0 16 u 5 64 0 0.00 0.000 16000.0

where repepwd is the local NTP server I want to synchronize with. There is
also no '*' in the remote column.

When I stop xntpd on the HP-UX client, and try sync the time by typing
"ntpdate repepwd", it shows this error message:

10 Dec 14:19:51 ntpdate[5250]: no server suitable for synchronization found

Do I understand correctly that it's because of the missing association?
If so, can I force NTP client to ignore the fact there is no stratum-1
server in the hierarchy?

Thanks in advance for any help.

Greetings,
Tomek.
19 REPLIES 19
Johnson Punniyalingam
Honored Contributor

Re: NTP - how to force synchronization without an association?

how about try with ip address

ntpdate
Problems are common to all, but attitude makes the difference
James R. Ferguson
Acclaimed Contributor

Re: NTP - how to force synchronization without an association?

Hi:

Synchronization will fail if your server's time is more than ~ 1000 seconds wrong. Verify that your server's time is correct with:

# date -u

If not, adjust it. If you need to set the server's time backwards, either reboot or stop time-sensitive processes like databases. Moving time forward is usually not a problem.

Regards!

...JRF...
Johnson Punniyalingam
Honored Contributor

Re: NTP - how to force synchronization without an association?

suggesting that the problem may be related to busy or remote network

ntpdate -b -t 4 -p 4

-t 4 sets the timeout to 4 seconds (from 1, "suitable for LAN applicatons") and -p 8 sets the number of averaged samples back to the default, After the initial ntpdate config, everything will sync up with ntpq which defaults to 5000 msec
Problems are common to all, but attitude makes the difference
habyor
Occasional Advisor

Re: NTP - how to force synchronization without an association?

The time difference between the NTP server and the HP-UX client is only about 4 minutes.

Trying ntpdate returns the same error message:

10 Dec 15:03:33 ntpdate[5559]: no server suitable for synchronization found

The same error message appears when I try:

ntpdate -b -t 4 -p 4 repepwd

or

ntpdate -b -t 4 -p 4

Am I wrong thinking that it's a problem with a missing associacion?

Tomek.
habyor
Occasional Advisor

Re: NTP - how to force synchronization without an association?

PS. ping repepwd shows very fast replies:

PING repepwd: 64 byte packets
64 bytes from 172.26.0.100: icmp_seq=0. time=0. ms
64 bytes from 172.26.0.100: icmp_seq=1. time=0. ms
64 bytes from 172.26.0.100: icmp_seq=2. time=0. ms
...

Tomek.
Juli├бn Aimar
Frequent Advisor

Re: NTP - how to force synchronization without an association?

Hi, can you paste output

# telnet 123

tks
habyor
Occasional Advisor

Re: NTP - how to force synchronization without an association?

Bingo, telnet can't connect on port 123:

telnet repepwd 123
Trying...
telnet: Unable to connect to remote host: Connection refused

On repepwd in ntp.conf there is a line:

restrict 172.27.0.0 mask 255.255.255.128 nomodify notrap

but apparently it's not enough or there is some error I can't see. 255.255.255.128 is the netmask of the HP-UX
client.
Juli├бn Aimar
Frequent Advisor

Re: NTP - how to force synchronization without an association?

give me the points.... hahahaha

Saludos

JEA
habyor
Occasional Advisor

Re: NTP - how to force synchronization without an association?

Points granted, still I don't know why it is refusing connections on port 123.

There is no firewall on repepwd, and netstat shows
that port 123 is open:

udp 0 0 172.26.0.100:123 0.0.0.0:*
udp 0 0 127.0.0.1:123 0.0.0.0:*
udp 0 0 0.0.0.0:123 0.0.0.0:*
udp6 0 0 fe80::21d:7dff:fe0d:123 :::*
udp6 0 0 ::1:123 :::*
udp6 0 0 :::123 :::*

When I try ntpdate repepwd, it gives me the same error:

# ntpdate -b -t 4 -p 4 172.26.0.100
10 Dec 16:37:05 ntpdate[6320]: no server suitable for synchronization found