Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Time server change



Title: Re: Time server change
On 2/20/07 3:02 PM, "CanzoneriK" <email@hidden> wrote:

Hello, I am currently pointing to an internal time server for system time on my 70+ Mac’s, I need to point to a different server. My question is there a simple way to do this through ARD? I am new to ARD so please excuse my ignorance.
 
Thank You,

Kurt


Kurt, I recently used the following script (sent from ARD as root) to reconfigure the network time service. I wanted a configuration that would work universally since many of my computers are laptops that occasionally go off-site. This is why you see three different time servers in the config. When on-site, my Macs will sync with one of two internal timeservers. When off-site, they won’t be able to reach either of those and will fail over to Apple’s time server.

I’m pasting the script with the comments intact.

- - - - - - - - - -
#!/bin/bash

# This script configures the Network Time service to use two internal NTP
# servers first, and fail over to Apple's time server if unreachable.
# Script must be run as root.

# Stop the Network Time service
SystemStarter -d stop "Network Time"

# Overwrite ntp.conf with new values, using Apple’s default polling intervals
/bin/echo server ns0 minpoll 12 maxpoll 17 >/private/etc/ntp.conf
/bin/echo server ns1 minpoll 12 maxpoll 17 >>/private/etc/ntp.conf
/bin/echo server time.apple.com minpoll 12 maxpoll 17 >>/private/etc/ntp.conf

# Set proper ownership and permissions
/usr/sbin/chown root:wheel /private/etc/ntp.conf
/bin/chmod 644 /private/etc/ntp.conf

# Restart the Network Time service (and synchronize clock)
SystemStarter -d restart "Network Time"
- - - - - - - - - -

------------------------------
Peter M. Bukowinski
IT - Sr. Support Analyst
Janelia Farm Research Campus
Howard Hughes Medical Institute
19700 Helix Drive
Ashburn, VA 20147
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Remote-desktop mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/remote-desktop/email@hidden

This email sent to email@hidden

References: 
 >Time server change (From: "CanzoneriK" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.