There is one server in my company where the time is out of sync.
When I checked (compared with other servers whose time is correct), the XNTPD variable in /etc/rc.config.d/netdaemons was set as 0.
I changed this to 1, and tried restarting the xntpd process with :
however seems like there is no effect.
I also tried and used this command :
But I get this error : ntpq: read: Can't assign requested address
Some solutions I googled have suggested killing processes which are using the port 123, which is the default port for ntp. And then try restarting xntpd.
Another option given was to try and reboot the server after making changes required in configuration files.
However, there are too many important processes that are running on port 123 at the moment, like nfs, and rpcbind. I am afraid killing these processes will cause problems.
Will a reboot resolve this problem?
I have checked and compared all settings in the configuration files for ntp setup (like /etc/rc.config.d/netdaemons, /etc/ntp.conf, /etc/TIMEZONE) with other servers(where ntp works), and everything is the same.
I haven't used HP-UX for years so I'm not an expert but have you checked that the DNS (services and configuration) is working because a NTP server name needs to be resolved like any other URL. Can you ping the NTP server name?
Yes, I have checked and both the NTP servers are pingable.
Now I believe the problem is not with the DNS settings, but the port that ntp is running on.
The port 123 is used by other processes, and probably killing it(like suggested by other forums) and then starting ntp will help, but I have yet to try this.
Also when I check with other servers which have ntp installed and running, the ports that use ntp are not 123. Those are customized ports. How is this done (customizing the ports on which ntp runs)?
Also when I check with other servers which have ntp installed and running, the ports that use ntp are not 123. Those are customized ports. How is this done (customizing the ports on which ntp runs)?
Looks like you can't change NTP port directly but you can use iptables to redirect UDP:123 requests to your actual target UDP port your NTP servers are running at.
Does it work if you issue with ntp daemon off :
If it works command should return data indicated that time was synced.
You can run it multiple times if you want.
Can you check your NTP conf on the client (that box) ?
Does netstat or lsof show what is holding the port open ?
Perhaps your HPUX box is configured as NTP server with some other (copied) /etc/ntp.conf config file and directives in it to bind to non existing address ?
If your server is NTP client (wants to sync time from your NTP servers), all you should have is couple of lines in ntp.conf (with additional steps you did correctly - netdaemons etc) for things to work (with resolving working or hosts/resolv.conf file configured).
Hello,
one of my clients has the following task for me:
To write a Perl script that checks, whether ntp is active on a particular AIX or Linux box.
Obviously the last synchronization is logged in the file ntp.log
So, my task would be find out, when the synchronization SHOULD have taken... (1 Reply)
I got an ntp time problem on AIX server.
os version is AIX7.1
OS LEVEL 7.1.0.0
i got below output,when i run the below command
bash-3.2# ntpdate -dv XXXXXXXXXXXXXXXXXXXXXXXX
4 Dec 12:50:49 ntpdate: 3.4y
transmit(xxxxxxxxx)
receive(xxxxxxxxx)
transmit(xxxxxxxx)
receive(xxxxxxxxx)... (9 Replies)
Good morning,
My first post and first visit, so hello. I have been asked to see if one of our Linux boxes can have it's time sync automatically because the person who built the system has told our staff it cannot be done. To me that raised some flags because although I am no Linux expert, I just... (12 Replies)
hello all,,
am trying to do a time synchronization between a ntp server and a client, but facing some problems in doing so:
i run the ntpdate in debug mode and this is what i got. please help me out..
# ntpd -d -u 172.22.1.207
ntpd 4.2.2p1@1.1570-o Sun Aug 28 19:21:03 UTC 2011 (1)... (1 Reply)
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)
Hy,
I'm having problems with NTP synchronisation on one of the machines wich runs SCO 5.0.5Eb.
It should synchronize with one RedHat machine in local network, but it doesn't (all other machines are fine). It just falls behind after a while.
In /etc/ntp.conf i have only this entry:
server... (1 Reply)
i have an HP UNIX box w/c acts as ntp server... I tried to change the time plus 8 minutes... the problem is that the other HP UNIX ntp client did not follow the time... when I tried to restart ntp client... using stop start it only sync to the server once... when I issue the command "ntpq -p", w/c... (2 Replies)
All
What is the best way to keep the system clock synchronized? I have looked at ntp and netdate. Is one good over the other? Basically I want to know if what is the most secure way to keep the system clock insync. netdate will require me to open up some port 37... is this safe? ntp also... (1 Reply)
I've been tasked to implement ntp on my SCO Unix servers. I have over 600 servers spread across the US in different time zones. Each remote server has network connectivity to a main server here, through their local ISP. (That's how we currently deliver mail to them).
My question is, how can... (5 Replies)