- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ntp time diff
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
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
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
тАО03-13-2005 07:28 PM
тАО03-13-2005 07:28 PM
-I added the NTP server name in the ntp.conf file
-created the drift file (empty file)
-started the ntpd daemon
What might be the problem?
Do I have to run, ntpdate or anyother steps missing. Please advise.
Thanks
Rasheed.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-13-2005 07:38 PM
тАО03-13-2005 07:38 PM
Re: ntp time diff
Here are the steps to configure NTP:
Procedure on the main server:
Log in as root and run a SAM session then do the following steps:
1. Click on the Time icon.
2. Click on the NTP Network Time Sources icon.
3. Select the menu Action -> Configure NTP Local Clock
4. Select Use System Clock and press OK
5. Select the menu List -> NTP Broadcasting
6. Select the menu Action -> Add Broadcast Client Network
7. Enter the broadcast address of the subnet where your client is located. You
can get this information by running the following command on the client:
ifconfig lan0 ---> you will get the following listed:
lan0: flags=863
inet 15.37.113.130 netmask fffff800 broadcast 15.37.119.255
Here's the broadcast address
So add the broadcast address of all your clients if they are not on the same
subnet.
8. Select the menu Action -> Start NTP
Your server is now set.
Procedure for the client:
Log in as root and run a SAM session, then do the following steps:
1. Click on the Time icon.
2. Click on the NTP Network Time Sources icon.
3. Select the NTP Broadcasting icon.
4. Select the menu Actions -> Enable Receiving Time Broadcasts
5. Select the menu Actions -> Start NTP
Your client is now set. You can repeat this on all your clients.
Regards,
Ira
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-13-2005 07:39 PM
тАО03-13-2005 07:39 PM
Re: ntp time diff
what does
# ntpq
ntpq> peers
show ?
a helpfull link here :
http://docsrv.sco.com/NET_tcpip/CTOC-ntpN.ntp.html
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-13-2005 07:41 PM
тАО03-13-2005 07:41 PM
Re: ntp time diff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2005 12:47 AM
тАО03-14-2005 12:47 AM
Solution/usr/sbin/ntpq -p
which reports on all the NTP servers you are using. If they are reporting "reach" values of 0 or other errors, you need to fix the NTP communication first.
Once ntpq -p starts showing 'normal' values (reach = 377) then the time will begin to change. 5 minutes will need more than an hour to sync completely. Now if you configured /etc/rc.config.d/netdaemons to specify your default NTP server and set the XNTPD otption =1, then a reboot will set the clock immediately, but only if ntpq -p is working.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2005 02:29 AM
тАО03-15-2005 02:29 AM
Re: ntp time diff
Is this still open? First impresssion is that you have done everything required. I'd still like to see what your response is to Bill's inquiry. If you have started xntpd you should be able to get some kind of response. Also nptq -p is "Print a list of the peers known to the server as well as a summary of their state." so you should be getting something.
You modified your ntp.conf file specifing a server that you have apprently been using. Specified a drift file location, and then ran "/sbin/init.d/xntpd start" you should be getting something after 10-15 minutes.
As Bill said you would have to change the /etc/rc.config.d/netdaemons file so that xntpd starts up at boot time. After that, it should be working. NTP will take a few minutes to report anything as it is not "instantaneous".
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2005 02:50 AM
тАО03-15-2005 02:50 AM
Re: ntp time diff
In addition to the advice about checking reachability with ntpq, you might also check syslog. I believe that the maximum delta is > five minutes, but there is a time differnece above which xntpd will not try to sync time on the premis that manual intervention would be best.
Also, don't forget that when it does sync the time, it will do so rather slowly - it will not (generally) alter the time in one swell foop (stepwise adjustment) but will rather change the rate at which the clock advances to gradually bring it into agreement with the time source (slew).
Finally, just as one should have multiple DNS servers, one should configure multiple NTP time sources.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2005 03:09 AM
тАО03-16-2005 03:09 AM
Re: ntp time diff
I have the following entries in my ntp.conf file on one system
server 192.5.41.41 # Stratum 1: tock.usno.navy.mil
server time-c.timefreq.bldrdoc.gov
and
server 192.5.41.40 # Stratum 1: tick.usno.navy.mil
server time-a.timefreq.bldrdoc.gov
in another..... both working fine.
A time difference > 5 minutes may be correct, I thought it was 10 minutes, but I may be wrong. So before xntp might start working a manual adjustment of time may be required. The idea of checking the syslog may shead some light on what is going on, or not going on as the case may be.
Rasheed
You might also find something at
http://ntp.isc.org/bin/view/Support/WebHome
Rasheed... how about some feed back. If you have it now working, suggestions can quit being made.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2005 03:16 AM
тАО03-16-2005 03:16 AM
Re: ntp time diff
However, if the difference between the client time and server time is greater than the panic threshold, which defaults to 1000 s, the daemon sends a message to the system log and shuts down without setting the clock. It is necessary to set the local clock to within the panic threshold first, either manually by eyeball and wristwatch and the Unix date command.
at
http://www.eecis.udel.edu/~mills/ntp/html/debug.html