- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ntp question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2004 02:57 AM
12-08-2004 02:57 AM
ntp question
When does this sync occur? does it occur with any set schedule? twice a day etc?
As far as me reading, ntp does the sync by itself and not on any set schedule.
Is there a way in the /etc/ntp.conf to make it do a sync like twice a day?
thanks!
Phil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2004 03:02 AM
12-08-2004 03:02 AM
Re: ntp question
The time in seconds that each extenal server is being queried is listed undet the "poll" column.
If you only wanted to update the time twice a day (not recommended), you could run the ntpdate command twice a day via cron instead of the ntp daemon.
The ntp algorithms are quite complex (and very good) so I would just let ntp do its thing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2004 03:05 AM
12-08-2004 03:05 AM
Re: ntp question
http://www.ntp.org
Management may view this as a potential security risk. By experience, the communication is happening many times a day.
How often depends on your configuration of the ntp.conf file.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2004 03:17 AM
12-08-2004 03:17 AM
Re: ntp question
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2004 03:20 AM
12-08-2004 03:20 AM
Re: ntp question
Can you increase the time that it would poll?
like from 512 to every 8 hours?
thanks!
Phil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2004 03:35 AM
12-08-2004 03:35 AM
Re: ntp question
If you only want updates every 8 hours, use ntpdate via a cron instead of the ntp daemon. You will, however, experience some time steps in doing this with the severity depending on how much your servers internal clock drifts. This may or may not be an issue with you (FYI, databases don't like big time steps!).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2004 03:42 AM
12-08-2004 03:42 AM
Re: ntp question
Maybe this will help you better understand the ntpq output,
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000076090198
The itrc doc id is KBRC00015657.
For the polling interval,
/Quote/
How often (in seconds) are we making a query to this server ? 512 seconds (approx 8 minutes) and 1024 seconds (approx 17 minutes) are very popular for network connections, but a machine with an external clock (like GPS) should poll it every 64 seconds or less.
This number can be specified with the minpoll and maxpoll directives, but it is better to let the daemon adjust it as needed. After stabilizing at startup this number will move automatically to 1024 for network servers and 64 (or sometimes 32) for external reference clocks.
/EndQuote/
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2004 04:42 AM
12-08-2004 04:42 AM
Re: ntp question
Now you must keep in mind that these polls to the NTP server you have defined are very short and use almost no bandwidth. NTP is also pretty secure. There's not much of a threat to using external time sources.
8 hours is much too long to wait to poll. Just set NTP up and let it do its thing. You want to polling frequent enough to ensure that your clocks are always right on.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2004 04:52 AM
12-08-2004 04:52 AM
Re: ntp question
You don't want to change any of this. The reason is that NTP's goal is extfreme accuracy without ever 'jumping' the clock. When you jump the clock (move the time forward or backward even a few seconds), time-dependent code such as cron or databases will get confused. In fact, the date command (in the hand of root) is very dangerous to the health of your database.
The way that NTP syncs a system without jumping the clock is to adjust the hardware time tick so it is slightly faster or slower. That way, all 86,400 seconds in one day will actually occur. Any other method that simply changes the clock is archaic and risks a lot of problems with time-sensitive data.
The protocol is extremely efficient, sending just a few bytes for each poll. And inside a company, the best way ias to configure your firewall for NTP capability (almost all quality firewalls have this feature) and now you point all of your machines at the firewall for NTP sync. A typical firewall can handle thousands of computers syncing with NTP and still maintain the 128ms accuracy.
Bill Hassell, sysadmin