- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- configure ntp.conf
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
05-24-2008 09:05 AM
05-24-2008 09:05 AM
configure ntp.conf
The story unfolds here...
"Server 1" shows the correct time.
"Server 2" 's time is 20 lagging..or in other way I can say the second server's time is incorrect.
Then I do some investigation on the second server..
$ /usr/sbin/ntpq -p
/usr/sbin/ntpq: read: Can't assign requested address
The I found that xntpd is not running.The I did /sbin/init.d/xntpd start
then...
# /usr/sbin/ntpq -p
No association ID's returned
Once the xntpd daemon started then we executed /usr/sbin/ntpq -p again and we got this output:
$/usr/sbin/ntpq -p
No association ID's returned
Then we visited /etc/ntp.conf
Here we found that all the lines in the file are commented out.
We found that all the entries are commented out in /etc/ntp.conf
etc $ grep -v "^#" ntp.conf|grep -v "^$"
etc $
Then we visited the "server 1" which shows the correct time...
We visited /etc/ntp.conf file and found that there are only two uncommented lines:
# grep -v "^#" ntp.conf|grep -v "^$"
driftfile /etc/ntp.drift # path for drift file
server 192.6.144.34
#
Now I have been told that The NTP timesource on server 1 is a valid source, so I should try to use that one.
Now do I need to enter those two lines in /etc/ntp.conf from server 1 into the server 2 .. please suggest.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2008 09:14 AM
05-24-2008 09:14 AM
Re: configure ntp.conf
and keep in mind, after starting ntp, it requires some time to sync. so you can verify that the server is syncing using
#ntpdate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2008 09:38 AM
05-24-2008 09:38 AM
Re: configure ntp.conf
The IP present in the ntp.conf of server 1 is not pingable from server 2.
In this case I think I need to find some other 'valid' ntp time source which can be 'pinged' from server 2.
Am I correct..?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2008 09:48 AM
05-24-2008 09:48 AM
Re: configure ntp.conf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2008 10:13 AM
05-24-2008 10:13 AM
Re: configure ntp.conf
On server 2
init.d $ /usr/sbin/ntpq -p
remote refid st t when poll reach delay offset disp
==============================================================================
192.6.144.34 0.0.0.0 16 - - 64 0 0.00 0.000 16000.0
init.d $
on server 1 ..with correct time:
# /usr/sbin/ntpq -p
remote refid st t when poll reach delay offset disp
==============================================================================
*atlosd1.osdatl. tor-ntp.omc.hp. 3 u 59 64 367 1.16 -0.179 0.09
#
I have a question her...trying to be optimistic... if the server2 is not able to ping it's ntp source IP (in ntp.conf)..then is it compulsory that I should keep an IP which is pingable?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2008 06:02 PM
05-24-2008 06:02 PM
Re: configure ntp.conf
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2008 12:16 AM
05-25-2008 12:16 AM
Re: configure ntp.conf
If you have communication issue with the master NTP server you could do the server one has the NTP server for the server 2.
By this method, the server 1 will sync the time with 192.6.144.34 and server 2 will sync the time with server1.