1833016 Members
2640 Online
110048 Solutions
New Discussion

Re: NTP issue

 
gogleboy
Occasional Advisor

NTP issue

HI,

I have installed NTP server and there is seconds diffetent in client so could you tell me the reasion and how to resolve

Thanks
Nanda
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: NTP issue

Shalom Nanda,

It may be the system time is more than an hour different from the time server in ntp.conf, which would prevent ntp from adjusting the system clock under certain OS levels.

It may be bad time servers.

The firewall could be blocking port 123 access from the firewall to this machine. Commonly ntp is closed.

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
rick jones
Honored Contributor

Re: NTP issue

In addition to making sure you can run ntp traffic through your firewalls, you should check syslog. On a client if the time is too far off from the servers, ntp will not adjust the clock. It throws up its hands and says "help" as it were :)

IIRC HP-UX at initial startup will query an NTP server via the ntpdate command. That will do an initial setting of the clock, and after that the xntpd should be much happier. You can make sure that happens by editing /etc/rc.config.d/netdaemons to make sure that NTPDATE_SERVER is set.

Also, on the NTP server, run ntpq and a "peers" command:

$ ntpq
ntpq> peers

Your server will not serve time to any clients until it has synchronized to a higher stratum (lower number) server.

Also, you should strive to point your NTP server at at least three sources of time so its "false ticker" heuristics can weed-out bad time.
there is no rest for the wicked yet the virtuous have no pillows
Javed Khan_1
Valued Contributor

Re: NTP issue

Hi,

Please post below command output

$ntpq -c rv
$ntpq -p
$ps -ef | grep xntpd

In case if you want to sync time manually with time server stop xntpd and run

$ntpdate ntpservername

Regards,
Javed Khan
Never Give Up
gogleboy
Occasional Advisor

Re: NTP issue

Thanks all,