Operating System - HP-UX
1833059 Members
2743 Online
110049 Solutions
New Discussion

Re: Setup NTP broadcast server/client

 
SOLVED
Go to solution
ys_6
Occasional Advisor

Setup NTP broadcast server/client

Greeting all,

i would like to setup NTP braodcast server and client within my LAN.
First of all, all system do not have internet connection. I would like to setup 1 system as a refrece server to others system.

I read from online manual and i found that it can be done easily by setup NTP broadcasting. I follow the procedure as :

for Broadcasting server:
SAM -> Time -> NTP Broadcasting -> Action -> Add Broadcast Client Network ->
then i add the client address at the broadcast address field.
after that -> Start NTP


for Broadcasting client:
SAM -> Time -> NTP Broadcasting -> Action ->
Enable Receiving Time Broadcasts -> Start NTP


This is what i did in order to setup NTP in my system. I not sure whether the step is correct, but it dosent funtction. The time wont synchronize.

Besides, i read from online and i found it can be done 2nd way, which is client poll time from server. I follow this step, but it cant function as well.

for server:
Sam -> Time -> NTP Network Time Sources -> Action -> Configure NTP Local Clock -> Use System clock -> Start NTP

for Client:
Sam -> Time -> NTP Network Time Sources -> Action -> Add Remote Server or Peer -> key in Server address and choose "SERVER" as relationship -> Start NTP

This way cant work as well ! i do not sure where the problem come from. Please advice me on this.

THank you very much !
10 REPLIES 10
ys_6
Occasional Advisor

Re: Setup NTP broadcast server/client

Sorry, forgot to mention. My main purpose is to SYNC all my workstations' clock with server clock within LAN.

All workstation and server are without internet connection.
Steven E. Protter
Exalted Contributor

Re: Setup NTP broadcast server/client

Shalom,

take a look at /var/adm/syslog/syslog.log

tail -f the file and try the setup again.

Note that many can routers block port 123 and this interferes (nice word for it) with ntp

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
ys_6
Occasional Advisor

Re: Setup NTP broadcast server/client

halo steven

thank for replying, but i not really good in UNIX. I read through the syslog.log and i cant figure out anything went wrong. Is it any others ways to SYNC the clock ??
Just now i read a topic :

https://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1035339

according to that thread,

Then set up a cron job to execute '/usr/sbin/ntpdate '. I have mine scheduled to run once a day.

i try this, but it give me another error which is

28 May 17:47:38 ntpdate[20026]: no server suitable for synchronization found

what could be the possible root cause for that error ?? thank in advance !
ys_6
Occasional Advisor

Re: Setup NTP broadcast server/client

Here the error message when i execute

"/usr/sbin/ntpdate -d 10.192.200.7"

,i dont know how to analysis it, please help to have a look :

# /usr/sbin/ntpdate -d 10.192.200.5
28 May 19:14:00 ntpdate[20747]: ntpdate version 3.5f: Thu Oct 21 18:32:44 GMT 19
99 PHNE_19710
transmit(10.192.200.5)
transmit(10.192.200.5)
transmit(10.192.200.5)
transmit(10.192.200.5)
tr ansmit(10.192.200.5)
server 10.192.200.5, 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: ca0537fb.5489c000 Mon, May 28 2007 19:14:03.330
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

28 May 19:14:04 ntpdate[20747]: no server suitable for synchronization found
ys_6
Occasional Advisor

Re: Setup NTP broadcast server/client

Anyone can help me on this?? :(
ys_6
Occasional Advisor

Re: Setup NTP broadcast server/client

Another try on others machine, still failed. seem like something weird in Refrence time. Same error again, "no server suitable for synchronization found"

# /usr/sbin/ntpdate -d 10.192.200.5
29 May 11:21:14 ntpdate[8656]: ntpdate version 3.5f: Thu Oct 21 18:32:44 GMT 199
9 PHNE_19710
transmit(10.192.200.5)
receive(10.192.200.5)
transmit(10.192.200.5)
receive(10.192.200.5)
transmit(10.192.200.5)
receive(10.192.200.5)
transmit(10.192.200.5)
receive(10.192.200.5)
transmit(10.192.200.5)
server 10.192.200.5, port 123
stratum 16, precision -18, leap 11, trust 000
refid [0.0.0.0], delay 0.02620, dispersion 0.00003
transmitted 4, in filter 4
reference time: 00000000.00000000 Thu, Feb 7 2036 14:28:16.000
originate timestamp: ca061a0b.69437000 Tue, May 29 2007 11:18:35.411
transmit timestamp: ca061aab.15640000 Tue, May 29 2007 11:21:15.083
filter delay: 0.02641 0.02620 0.02654 0.02621
0.00000 0.00000 0.00000 0.00000
filter offset: -159.672 -159.672 -159.672 -159.672
0.000000 0.000000 0.000000 0.000000
delay 0.02620, dispersion 0.00003
offset -159.672779

29 May 11:21:15 ntpdate[8656]: no server suitable for synchronization found
Khairul_1
Frequent Advisor

Re: Setup NTP broadcast server/client

Hi
Do the following in your NTP Server:
Can you check /etc/ntp.conf & /etc/rc.config.d/netdaemons file.

Then
1. Start the daemon using the startup script

#/sbin/init.d/xntpd start

2. Verify whether the daemon process is running using the following command:

#ps â ef |grep ntp

3. Stopping the NTP daemon xntpd, To stop xntpd, issue the following command:

#/sbin/init.d/xntpd stop

4. Start the NTP daemon xntpd, To start xntpd, issue the following command:

#/sbin/init.d/xntpd start

5. Verifying the NTP Status

#/usr/sbin/ntpq -p
#/usr/sbin/ntpq -pn

Thanks
Khairul
Matti_Kurkela
Honored Contributor
Solution

Re: Setup NTP broadcast server/client

Just what kind of device is 10.192.200.5?

The ntpdate output in your first test suggests it does not respond like a real NTP server. Maybe it uses only SNTP?

SNTP is a stripped-down version of the NTP protocol, which is designed to allow embedded devices get a reasonably correct time from a real NTP server and distribute it among other embedded devices if necessary. SNTP is less precise than NTP.

With a complete NTP implementation, the server and client communicate with each other, measure the travel time of the messages and compensate for it as much as possible to get accurate real time.

With SNTP, this measurement and compensation process is omitted.

In your second test, the server indicates "stratum 16", which means the server is either a chain of 16 or more NTP hosts between you and a known-good clock (which is not too good), or the server is still in the start-up phase and isn't yet certain about the accuracy of its time.

MK
MK
ys_6
Occasional Advisor

Re: Setup NTP broadcast server/client

Hi guys, thanks for the help. I manage to setup my NTP server and sync with it. Just i wonder, better to do a cronjob sync manually or start the xntpd daemon to sync automatically?

Thanks very much !
ys_6
Occasional Advisor

Re: Setup NTP broadcast server/client

Hi Matti,
The 10.192.200.5 is my local NTP server.