1830997 Members
2484 Online
110018 Solutions
New Discussion

Re: NTP clients.

 
SOLVED
Go to solution
R.O.
Esteemed Contributor

NTP clients.

Hello,

I have just setup several ntp clients, and I want to know what is the default poll interval at what the clients connect with the server. Also, I want to increase it to 1 hour. The NTP is working by running the daemon ntpd continuously. Does anybody knows how to see and change this poll interval?

Thanks and regards,
"When you look into an abyss, the abyss also looks into you"
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: NTP clients.

Everything is controlled by the ntp.conf file.

Some linux distributions need xntp.conf.

http://www.ntp.org

After changing your setup, service ntpd restart or service xntp restart, depending on your Linux distributions.

Some distributions don't have the Service command, so you'll need to stop and start the script in /etc/init.d

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
Coenen_1
New Member

Re: NTP clients.

you also can use ntpdate command to sync the time. If you put this in the crontab you can determine the interval for yourself.
Ragu_3
Trusted Contributor

Re: NTP clients.

Default poll interval is usually set to 8, inside /etc/ntp.conf. Use the ntpq command to get a command shell, type help at the prompt and you can find many options. It seems that the poll interval feature is not yet implemented, anyway ....
Debian GNU/Linux for the Enterprise! Ask HP ...
Vitaly Karasik_1
Honored Contributor

Re: NTP clients.

as far as I remember, poll interval is dynamic.
what is your reason for increase poll interval? if you want to save network traffic you may use multicast for sync your clients.
Ross Minkov
Esteemed Contributor

Re: NTP clients.

Yeah. Why do you want to increase ntp poll interval? I've never heard anyone needed to do that.

The best setup in my opinion is to run ntpdate once during boot up, but before ntpd / xntpd starts. Then start ntpd / xntpd service and maintain the time.

If you don't want to use ntpd / xntpd you can just put a crontab entry to run ntpdate evry hour if you want.
Johannes Krackowizer_1
Valued Contributor
Solution

Re: NTP clients.

hi,

pool interval is dynamic, that means if it's working correct it will automatically decrese pool interval after a while. if you want to look for correct working of your server type at the servet "ntpq". with this tool you can see much information on the server, for example type "pe" shows you the configured time sources, "rl" shows you more information about the current timesource (if you have configured more than one timesource your ntpd will automatical test for the best timesource).

on your clients you could use ntpdate to syncronize time manualy. you can add ntpdate to your crontab.

or you can use ntpd to sync time with your ntp server with all features of ntpd. you will be able to add other time source if your ntpd server is down.

best regards

johannes
"First off, I'd suggest printing out a copy of the GNU coding standards, and NOT read it. Burn them, it's a great symbolic gesture." (Linus Torvalds)
Ranjith_5
Honored Contributor

Re: NTP clients.

Hi ,

There is something called as
* minpoll [ Number ]
* maxpoll [ Number ]

The default value of minpoll is 6 and
the default value of maxpoll is 10.

However u can customize these values. I have attached a doc. Pls see.

regards,
Syam