Operating System - Tru64 Unix
1753506 Members
5114 Online
108794 Solutions
New Discussion юеВ

help!help!help! Tru64 4.0F:some problems about NTP

 
SOLVED
Go to solution
Scarlett_Cancer
Occasional Advisor

help!help!help! Tru64 4.0F:some problems about NTP

i want to synchronize our 33 workstations and servers, therefore, according to SYSTEM ADMINISTRATION and NETWORK ADMINISTRATION, i have configed the NTP on my machines, and make two system servers as NTP servers and other workstations as NTP clients. but NTP cannot work as i expected.some errors occur as following:
1. #ntptrace -d
ERROR:....
wrong server
2. # ntpdate -d
error:
no suitable server for synchronization found.

and then i also looked up some documents on the Internet, it is said that this problem may be related to ntp.key, but i don't use it (ntp.key)at all, and related to packet filtering(or firewall), but i don't config it at all. so now i really how to do it, help me please!
10 REPLIES 10
Ivan Ferreira
Honored Contributor

Re: help!help!help! Tru64 4.0F:some problems about NTP

Before running ntpdate, you must be sure that the NTP SERVER is up and listening. In the ntp server, you have to run ntpq -p, and see your local reference with an asterisk.

Then, in the client, you must use ntpdate -b, otherwise it will fail, because you should not have too much difference on your clock. The -b option "forces" the synchronization of the client with the server, and should be used at the first time.

This error:

# ntpdate -d
error:
no suitable server for synchronization found.

May be because one of the two issues.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Michael Schulte zur Sur
Honored Contributor

Re: help!help!help! Tru64 4.0F:some problems about NTP

Hi,

have you done the setup with ntpsetup?

greetings,

Michael
Scarlett_Cancer
Occasional Advisor

Re: help!help!help! Tru64 4.0F:some problems about NTP

ofcourse, yes, i have setuped the NTP by ntpsetup!
Scarlett_Cancer
Occasional Advisor

Re: help!help!help! Tru64 4.0F:some problems about NTP

dear friends, thank you for your suggestion, and i will try your advise today. here i want to explain what i have done on my machine.
i want my workstatins can syncronize with my system servers automatically, so i setup the NTP with ntpsetup, and also config my machine as following:
host1 as the time source :
1. edit /etc/hosts file├п┬╝ add host2(as the client)IP address;
2. edit /etc/ntp.conf file├п┬╝ add one line:
peer 127.127.1.1
3. use 'rcmgr' to edit /etc/rc.config
# /usr/sbin/rcmgr set XNTPD_CONF YES
# /usr/sbin/rcmgr set XNTP_SERV1 host1
# /usr/sbin/rcmgr set XNTP_SERV2 host2
# /usr/sbin/rcmgr set XNTPD_OPTS "├п┬╝ gl"

host2 as the client:
1. edit /etc/hosts├п┬╝ add host1 IP address
2. edit /etc/ntp.conf├п┬╝ add the following:
server host1 version 3
server host2 version 3
3. use 'rcmgr' to edit /etc/rc.config
# /usr/sbin/rcmgr set XNTPD_CONF YES
# /usr/sbin/rcmgr set XNTP_SERV1 host1
# /usr/sbin/rcmgr set XNTP_SERV2 host2
# /usr/sbin/rcmgr set XNTPD_OPTS "├п┬╝ gl"
but the error still occur as i said.please help me!
Scarlett_Cancer
Occasional Advisor

Re: help!help!help! Tru64 4.0F:some problems about NTP

Ivan, i try again according to what you told me, but still error:
when i ntpdate -b
it said: the NTP socket is in use, exiting.
i don't know why, but the time cannot be synchronized now.
Please help me !
Michael Schulte zur Sur
Honored Contributor
Solution

Re: help!help!help! Tru64 4.0F:some problems about NTP

Hi,

while the ntp daemon is running it won't work. Stop it with /sbin/init.d/xntpd stop and then start it again after you used ntpdate.

greetings,

Michael
Ivan Ferreira
Honored Contributor

Re: help!help!help! Tru64 4.0F:some problems about NTP

You must have ntpd down before issuing ntpdate.

Now, how do you want to configure the system?

You are configuring the clients PEERs? Or host1 and host2 will be your ntp servers?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Ivan Ferreira
Honored Contributor

Re: help!help!help! Tru64 4.0F:some problems about NTP

And I think that ntp.conf configuration for the time source should be:

driftfile /etc/ntp.drif
server 127.127.1.0 version 3
fudge 127.127.1.0 stratum 12

# Add this if you have another NTP server
# peer host2 version 3

rc.config should be:

XNTPD_CONF="YES"
export XNTPD_CONF
XNTPD_OPTS="-g"
export XNTPD_OPTS
XNTP_SERV1="127.127.1.0"
export XNTP_SERV1
# If you have a peer
# XNTP_SERV2="host2"
# export XNTP_SERV2


And in the clients, the configuration should be:

driftfile /etc/ntp.drif
server host1 version 3
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Scarlett_Cancer
Occasional Advisor

Re: help!help!help! Tru64 4.0F:some problems about NTP

my dear friends, i have fixed the problem.
your advices are so helpful to me, thank you so much!

i added the following in my ntp.conf:
peer 127.127.1.1