Operating System - HP-UX
1753259 Members
4865 Online
108792 Solutions
New Discussion юеВ

Re: NTP not working - coundn't start !

 
SOLVED
Go to solution
Bill Hassell
Honored Contributor

Re: NTP not working - coundn't start !

> bank1:/sbin/init.d #ntpq -p
> ntpq: read: Can't assign requested address

There's no reason to try anything else. The NTP server listed in /etc/ntp.conf does not exist, is not an NTP server or has locked you out. Until ntpq -p works, xntpd will do nothing.

Start by locating a working NTP server using ntpq. Kill any xntpd process first. ALWAYS use: ntpq -p 12.34.56.78 (the IP address, not the hostname) and keep trying all the NTP servers you have. Also use traceroute 12.34.56.78 to see if you are blocked by routers. Also check with the networking department. Many firewalls and routers are configured as NTP servers but no one ever tells the sysadmins.

Once ntpq is working, then you can configure xntpd. NOTE: The start/stop script for xntpd will 'jump' the time rather then slowly change it. Make sure your time sensitive applications are not running when you try to get xntpd going. ntpdate has an option to slowly move the time to be in sync (ntpdate -B).


Bill Hassell, sysadmin
DnD_1
Regular Advisor

Re: NTP not working - coundn't start !

by the way.

some changes and i can see that all synchronized...but still could not brig up the ntp process !

bank1:/root #ntpq -p
ntpq: read: Can't assign requested address

bank1:/root #ntpq -p 10.15.144.1
remote refid st t when poll reach delay offset disp
==============================================================================
*10.15.136.6 .GPS. 1 u 33 64 377 2.14 -13.308 0.44
LOCAL(0) LOCAL(0) 3 l 32 64 377 0.00 0.000 10.01

bank1:/root #ntpdate 10.15.144.1
9 Jun 12:37:39 ntpdate[19716]: adjust time server 10.15.144.1 offset -0.008219 sec

bank1:/root #ntpdate -d 10.15.144.1
transmit(10.15.144.1)
receive(10.15.144.1)
transmit(10.15.144.1)
receive(10.15.144.1)
transmit(10.15.144.1)
receive(10.15.144.1)
transmit(10.15.144.1)
receive(10.15.144.1)
transmit(10.15.144.1)
server 10.15.144.1, port 123
stratum 2, precision -17, leap 00, trust 000
refid [10.15.136.6], delay 0.02582, dispersion 0.00000
transmitted 4, in filter 4
reference time: cdd8b9c6.8a750000 Tue, Jun 9 2009 12:36:54.540
originate timestamp: cdd8b9ff.2de0e000 Tue, Jun 9 2009 12:37:51.179
transmit timestamp: cdd8b9ff.2ce1d000 Tue, Jun 9 2009 12:37:51.175
filter delay: 0.02599 0.02583 0.02585 0.02582
0.00000 0.00000 0.00000 0.00000
filter offset: 0.003820 0.003769 0.003777 0.003771
0.000000 0.000000 0.000000 0.000000
delay 0.02582, dispersion 0.00000
offset 0.003771

9 Jun 12:37:51 ntpdate[19717]: adjust time server 10.15.144.1 offset 0.003771 sec

bank1:/root #ps -ef | grep ntp
root 19735 19683 1 12:38:58 pts/3 0:00 grep ntp


Michal Kapalka (mikap)
Honored Contributor

Re: NTP not working - coundn't start !

hi,

you need to edit this file :

/etc/rc.config.d/netdaemons

change the entry export XNTPD=0 =>> export XNTPD=1

and them you could go to /sbin/init.d

and them ./xntpd start

ot /sbin/init.d/xntpd start

mikap
DnD_1
Regular Advisor

Re: NTP not working - coundn't start !

hi mikap..

the config has export XNTPD=1
DnD_1
Regular Advisor

Re: NTP not working - coundn't start !

solution found!
PavanAgrawal
Visitor

Re: NTP not working - coundn't start !

what is the solution ?