|
|
Control the Network Time Server settings from the command line
From the command line you can use the One of the downsides of the GUI System Preferences tools is that in the case of updating the system time requires that you open the Date and Time system preferences pane to trigger an update. I manage several dozen OS X server boxes, and this issue causes my servers to drift out of sync, leading to all sorts of problems. But creating a script that uses the network time server functions of the systemsetup command, combined with crontab, to force resyncing on a regular basis. The available commands are: Viewing or Changing Network Time Server Usage To see if a network time server is being used: To enable or disable use of a network time server: To view the current network time server: To specify a network time server: While this is a rather ham-handed way of doing things, creating a script that turns the use of the network time server off and then back on again will force the system to synchronize its clock with your desired time server. Create a cron job that runs the script as root once a day, or once a week, and you should no longer have problems with drifting time. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.30 seconds |
|