The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > OS X (Apple)
.
google unix.com



OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
change network adapter ariec AIX 1 06-04-2008 03:03 PM
HTTP Time Protocol 1.0.1 (KIS branch) iBot Software Releases - RSS News 0 04-28-2008 04:40 PM
Change speed on network card hshapiro SUN Solaris 7 03-13-2008 08:57 AM
How To Provide Time Sync Using Nts-150 Time Server On Unix Network? pesty UNIX for Advanced & Expert Users 2 03-22-2007 02:20 AM
RH 9 and Network Time Protocol jaredGalen IP Networking 1 12-08-2003 11:08 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-01-2007
CBarraford CBarraford is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 17
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 (permalink)  
Old 03-02-2007
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,318
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 (permalink)  
Old 03-02-2007
CBarraford CBarraford is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 17
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 (permalink)  
Old 03-05-2007
[MA]Flying_Meat [MA]Flying_Meat is offline
Registered User
  
 

Join Date: Sep 2002
Location: San Fran
Posts: 130
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 (permalink)  
Old 03-05-2007
CBarraford CBarraford is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 17
thanks man, making my own ntp.conf file works great. I tried using ntpdate, but just couldn't get it to work right
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:43 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0