1829816 Members
1665 Online
109993 Solutions
New Discussion

Re: NTP queries

 
yc_2
Regular Advisor

NTP queries

Hi,

How frequent the NTP client sync with the NTP server?


Thanks in advance.
5 REPLIES 5
Chauhan Amit
Respected Contributor

Re: NTP queries

Hello,

It depends upon the client Configuration:

a) Configuring a Client to Use Server Polling

Multiple timeservers may be used in the configuration file. The default polling time for the timeserver is once every 64 seconds. At every poll time, drift in the local time and the server time is recorded. If the drift is high, the next polling time is scheduled to occur earlier. If the drift is low, the next polling time is later.

b )Configuring a Client to Use Server Broadcast
A broadcast client does not contact any server for time information but listens for broadcast time information from a broadcast timeserver.

Hope this helps.

-Amit
If you are not a part of solution , then you are a part of problem
yc_2
Regular Advisor

Re: NTP queries

Hi,

How to check whether the NTP client is using polling method or server broadcast method?

Where is the file to configure the polling time in NTP client?
Arunvijai_4
Honored Contributor

Re: NTP queries

Hi,

You need to look into, /etc/ntp.conf file for more information.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Chauhan Amit
Respected Contributor

Re: NTP queries

a) Configuring a Client to Use Server Polling

A typical /etc/ntp.conf file for a client that is using gama as its timeserver is as shown next.

# vi /etc/ntp.conf
server gama
driftfile /var/adm/ntp.drift

b )Configuring a Client to Use Server Broadcast
A broadcast client does not contact any server for time information but listens for broadcast time information from a broadcast timeserver. The configuration for the broadcast NTP client is like the following.

# vi /etc/ntp.conf
broadcastclient yes
driftfile /var/adm/ntp.drift

Hope this helps.

-Amit
PS: Please remember to assign points.
If you are not a part of solution , then you are a part of problem
spex
Honored Contributor

Re: NTP queries

Leong,

If you prefer, you can sync your time via a cron job, so that the xntpd daemon doesn't run all the time. Obviously, if you're using server broadcasting, you wouldn't want to do this.

To prevent the xntpd daemon from starting, set XNTPD=0 in /etc/rc.config.d/netdaemons. If the daemon is running, kill it with '/sbin/init.d/xntpd stop'. Then set up a cron job to execute '/usr/sbin/ntpdate '. I have mine scheduled to run once a day.

PCS