change network time protocol

 
Thread Tools Search this Thread
Operating Systems OS X (Apple) change network time protocol
# 1  
Old 03-01-2007
change network time protocol

by default, a mac syncs its time and date with time.apple.com (located system prefs->Date&Time). Is there a way in unix to change it to another address?

my attempts to use ntpdate and ntpd have failed.
# 2  
Old 03-02-2007
What is the error that you've received ?
Example - I use this command :
Code:
/usr/sbin/ntpdate 209.81.9.7 > /dev/null 2>&1

to set the time via ntpdate. Otherwise you may use the global server : ntp.pool.org
# 3  
Old 03-02-2007
this is what i get

Code:
ComputerName ~ $ sudo ntpdate timeserver.something.com
Password:
 2 Mar 12:02:13 ntpdate[8910]: the NTP socket is in use, exiting
ComputerName ~ $

so then i kill running process "ntpd"

Code:
[Computer Name] ~ $ sudo kill 167
Password:
[Computer Name] ~ $ sudo ntpdate timeserver.somthing.com
 2 Mar 12:17:52 ntpdate[9018]: no server suitable for synchronization found
[Computer Name] ~ $ sudo ntpdate time.apple.com
 2 Mar 12:17:32 ntpdate[9010]: no server suitable for synchronization found


Last edited by CBarraford; 03-02-2007 at 01:21 PM..
# 4  
Old 03-05-2007
Have you tried editing (or creating) an /etc/ntp.conf file?

contents of that file should look something like this:
Code:
server time.someserver.com minpoll 12 maxpoll 17

There are of course lots of things you can specify in that file, but the string above should work if it's a valid time server.

For more info, Google ntp.conf

Also, ntpdate sets the date under two conditions. Greater than 5 seconds, or less than 5 seconds. What it does in either case is spelled out in the man page for ntpdate.
The man page also seems to imply you can specify a time server on the command line as an option only if ntpdate can find a reference to "a" time server that ntpd uses in netinfo.
Seems sorta silly...

Anyway, use the ntp.conf file and ntpd for most time syncing. It works pretty well.

Last edited by [MA]Flying_Meat; 03-05-2007 at 06:25 PM..
# 5  
Old 03-05-2007
thanks man, making my own ntp.conf file works great. I tried using ntpdate, but just couldn't get it to work right
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Solaris

Change congestion protocol in Solaris 10

I have a client with a meshed Cisco backbone. 6500's on top, Nexus 7000 in the middle and 4500's in bottom. Solaris 10 servers connected to the 4500's backing up to a RedHat Linux backup server connected to the Nexus 7000's. The traffic is routed from 4500 --> Nexus 7000 --> 6500 --> Nexus 7000... (3 Replies)
Discussion started by: crusoe
3 Replies

2. UNIX for Dummies Questions & Answers

Need help showing which network protocol users use.

I'm having a bit of a trouble trying to figure out how to tell which network protocol users HAVE been logging in with. I know how to find this information for currently logged in users : maximillian.gardner@syccuxfs01:~> who joseph.blosser pts/0 2012-01-15 14:07 (198.107.160.185)... (5 Replies)
Discussion started by: maximillian.g
5 Replies

3. Shell Programming and Scripting

want know about network protocol testing

Hi guys, i want to know about network protocol testing. 1. What is network protocol testing? 2. Whats the role of network protocol tester? 3. Is there good future scope in network protocol testing field? 4. Just give me a example of protocol testing. 5. How it relates to perl or unix? Thanks... (0 Replies)
Discussion started by: rangarasan
0 Replies

4. UNIX for Advanced & Expert Users

How To Provide Time Sync Using Nts-150 Time Server On Unix Network?

can anybody tel lme,how to instal NTS -150 on a unix network,it needs some patch to fetch time frm serve,,?? (2 Replies)
Discussion started by: pesty
2 Replies

5. IP Networking

RH 9 and Network Time Protocol

I have a small program written in C using winsock v1, that uses a unix host to get the time. I have two machines networked, one windows, the other red hat 9. The windows machine will request the time off the RH one. How can I configure red hat to reply to the time request, i.e act as an... (1 Reply)
Discussion started by: jaredGalen
1 Replies
Login or Register to Ask a Question