- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- NTP stratum? offset? dispersion? list of servers?
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
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
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
тАО10-31-2007 02:07 AM
тАО10-31-2007 02:07 AM
It does NOT say:
what stratum is.
what dispersion is.
what offset is.
HOW to get a list of time servers.
HOW to get permission to use a time server.
I'm having a hard time setting up NTP with these holes in my information.
steve
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2007 02:16 AM
тАО10-31-2007 02:16 AM
SolutionDispersion means picking servers to sync to that are physically located across a wide area.
Offset is the amount of time correction required.
List of time servers:
http://support.ntp.org/bin/view/Servers/WebHome
Generally the listing will also tell you who/how to contact in order to get permission.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2007 02:25 AM
тАО10-31-2007 02:25 AM
Re: NTP stratum? offset? dispersion? list of servers?
A typical /etc/ntp.conf file needs no more than this:
driftfile /etc/ntp.drift
server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
server 3.us.pool.ntp.org
server 127.1.1 stratum 10 # local fallback
The serverN.us.pool.org timeservers are a pool of public timeservers and you need no permission to use them. The hostnames correspond to a pool of round-robin IP addresses so that each time you start an NTP daemon, you will likeky get a new set of servers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2007 02:27 AM
тАО10-31-2007 02:27 AM
Re: NTP stratum? offset? dispersion? list of servers?
server 127.1.1 stratum 10 # local fallback
should be:
server 127.127.1.1 stratum 10 # local fallback
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2007 03:03 AM
тАО10-31-2007 03:03 AM
Re: NTP stratum? offset? dispersion? list of servers?
Bookmark this location: www.ntp.org and look at the link called the NTP Pool project. The pool project eliminates the permission problems of the past.
Now check that you can reach an Internet NTP server:
ntpq -p pool.ntp.org
If your system is not blocked by a firewall, you'll get a response from several open servers. This step is always the most difficult. If you get a response, all is well and you can proceed. If not, your system is blocked from using port 123 (the NTP port) out to the Internet. Start with your network administrator. They can open this port for you, or as a better alternative, setup the firewall to act as an NTP server, The NetAdmin would point the firewall to pool.ntp.rg (or better yet, the closest International server such as us.pool.ntp.org or europe.pool.ntp.com). Then you would run the ntpq -p test poiting to the IP address of your local firewall. When that works (it will report some of the stats you mentioned above), you can proceed.
Replace the (very lengthy) /etc/ntp.conf file with the following:
server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
fudge 127.127.1.1 stratum 10
driftfile /etc/ntp.drift
That's it. All the other options are for researchers and people with more time on their hands...
Now to start NTP, first make sure the time is close to actual time. NTP can't adjust more than a 10 minute difference. Also (and this is really important) make sure your $TZ value is correct for your local timezone. To verify this, type the command date -u and then compare the result with one of the many GMT or UTC websites:
http://www.worldtimeserver.com/current_time_in_UTC.aspx
HP-UX only keeps one time: UTC (aka, Zulu or the deprecated but commonly used GMT). This is the internal clock and must not be changed for things like Daylight Saving...if someone has changed the internal clock so it is off by an hour, etc, you'll need to schedule a reboot after shutting down ALL applications and user logins. To set the clock correctly, get the UTC time and then use date -u mmddhhmm to set the time. Then edit the default timezone in the file /etc/TIMEZONE. If you have not patched your tztab file, download the latest version:
PHCO_37053 (11.11)
PHCO_37054 (11.23)
PHCO_37055 (11.31)
Timezone and Daylight Saving changes are all handled in the tztab file, never by using the date command.
Once your internal clock is within a few minutes of GMT time (verified by date -u), then you can start xntpd (as root). It is a daemon and will immediately disconnect from your terminal session and run in the background. Now tail syslog to see what it reports:
tail /var/adm/syslog/syslog.log
Look for any problems or error messages. Then check that ntpq is working:
ntpq -p
By specifying -p with no destination, ntpq will evaluate your local machine. All you are really interested in is that you see numbers in the columns. The reach column will start at 0 and progress up to a maximum of 377 indicating a good connection (after an hour or two). The delay, offset and dispersion numbers indicate the stability relative to your local system and network connection. The poll column indicates how often (in seconds) that a time check is performed. The minimum will be 64 (once every 64 seconds). After a few hours the poll will back off to 128, then 256, etc all the way to 1024 (17 minutes) for a reliable connection. The increase in the poll interval takes place when time is within 128ms of the NTP time servers . NTP is very accurate.
Within a few hours, your time will be accurate and you can essentially forget about it. You might occasionally run ntpq -p to see how things a re going.
One last step: edit the startup parameters for reboot. vi the file /etc/rc.config.d/netdaemons and change two lines:
export NTPDATE_SERVER="us.pool.ntp.org"
export XNTPD=1
And now your server will be synchronized at bootup and maintain time to within 128ms.
Bill Hassell, sysadmin