- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ntp.conf query
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
02-06-2007 10:31 AM
02-06-2007 10:31 AM
Hello Guys,
I have set up my prefered ntp server details in ntp.conf file, ie its ip address and dns entry.
now what do i do to sync the time on this hosts to an NTP server.
I get this error when I run ntpdate with -b and without -b option in order to sync the time with NTP server.
# ntpdate 10.209.28.250
7 Feb 10:25:13 ntpdate[712834]: the NTP socket is in use, exiting
# ntpdate -b 10.209.28.250
7 Feb 10:25:42 ntpdate[385194]: the NTP socket is in use, exiting
Please advise
Raf
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2007 10:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2007 10:44 AM
02-06-2007 10:44 AM
Re: ntp.conf query
Ivan is correct, both 'xntpd' and 'ntpdate' use the same TCP port and hence cannot be run simultaneously.
That said, I would suggest that you configure NTP to set the server time to that of its time source(s) during bootup (by configuring the NTPDATE_SERVER variable in '/etc/rc.config.d/netdaemons') and thereafter let NTP run continuously.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2007 03:20 PM
02-06-2007 03:20 PM
Re: ntp.conf query
Thanks for your quick responses guys,
I have acutally tried stopping xntpd and then i have run the following but got an error ie
# ntpdate -b 10.209.28.250
7 Feb 15:16:45 ntpdate[217276]: no server suitable for synchronization found
###########################################
any suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2007 03:46 PM
02-06-2007 03:46 PM
Re: ntp.conf query
Use:
# ntpq -pn 10.209.28.250
...to troubleshoot. As asterisk ("*") in the leftmost column (before) the address indicates successful synchronization.
If you still get "no suitable server" see if:
# /usr/sbin/ntpdate -d 10.209.28.250
...offers any useful diagnostic information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2007 04:01 PM
02-06-2007 04:01 PM
Re: ntp.conf query
Thanks James,
I'm not an expert with ntp:)
here is the error that i get with "ntpq -pn 10.209.24.250"
10.209.24.250: timed out, nothing received
***Request timed out
#########################################
Here is the debug info,you will notice that at the bottom it still complain that no server suitable for synchronization?
# ntpdate -d 10.209.24.250
7 Feb 16:00:30 ntpdate[503812]: 3.4y
transmit(10.209.24.250)
transmit(10.209.24.250)
transmit(10.209.24.250)
transmit(10.209.24.250)
transmit(10.209.24.250)
server 10.209.24.250, port 123
stratum 0, precision 0, leap 00, trust 000
refid [0.0.0.0], delay 0.00000, dispersion 64.00000
transmitted 4, in filter 4
reference time: 00000000.00000000 Thu, Feb 7 2036 17:28:16.000
originate timestamp: 00000000.00000000 Thu, Feb 7 2036 17:28:16.000
transmit timestamp: c973db71.2c166000 Wed, Feb 7 2007 16:00:33.172
filter delay: 0.00000 0.00000 0.00000 0.00000
0.00000 0.00000 0.00000 0.00000
filter offset: 0.000000 0.000000 0.000000 0.000000
0.000000 0.000000 0.000000 0.000000
delay 0.00000, dispersion 64.00000
offset 0.000000
7 Feb 16:00:34 ntpdate[503812]: no server suitable for synchronization found
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2007 09:28 PM
02-06-2007 09:28 PM
Re: ntp.conf query
For NTP server.
Follow this :
1. modify /etc/rc.config.d/netdaemons
[ startup operation of NTP is controlled by netdaemons,If value is set to 1 then Xntpd will start at boot.You can start ths from command line by using
/etc/init.d/xntpd start]
2.modify /etc/TIMEZONE
[it must be remembered that the time zone setting on your system must be correct. For example if you are in the eastern daylight timezone, the /etc/TIMEZONE file must contain the EST5EDT time setting.]
3.modify /etc/ntp.conf
server navobs1.gatech.edu
server bitsy.mit.edu
peer gama
broadcast 192.168.2.255
driftfile /var/adm/ntp.drift
[The drift file is used to track the accuracy of the local clock over time. It is maintained by xntpd and used later to send fewer time synchronization requests to the server.
Some NTP servers may also require authentication from clients. In that case, the client machine maintains the /etc/ntp.keys file for this purpose]
4.Run /sbin/init.d/xntpd
5.WAit for NTP to establish associations with servers & peers.
6.Run ntpq -p to check associations.
Try ntpdate -b server server
-b--> Polls one or more servers ( NTP) & steps systemclock to synchronise the most accurate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 01:18 PM
02-07-2007 01:18 PM
Re: ntp.conf query
If you also cannot ping the NTP server's IP address, you may want to start looking into firewall issues along the path between your system(s) and the NTP server(s).
The output of netstat -rn might help us take some of the first steps along that path.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 07:58 PM
02-07-2007 07:58 PM
Re: ntp.conf query
Since you are based in Australia you should try and use Australia's NMI (was part csio) time server which has recently changed address. They require you to register and may have advice on firewall settings for your circumstances. see this link
http://www.measurement.gov.au/index.cfm?event=object.showContent&objectID=9BD77455-BCD6-81AC-1BF1C5D980A48E4D
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2007 09:34 PM
02-24-2007 09:34 PM
Re: ntp.conf query
Thanks James , Bupa and Rick and all of those who responded.
I apologise for the late response as went on holidays and that was my last day when I posted my last message.
Actually you guys were right, I have found out that firewall/was rules were not there to allow ntp comunication, hence I did request the firewall team to place rules for ntp communication and the problem was resolved:)....I really appreciate everyone's help..