Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Setting NTP servers & polling them
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting NTP servers & polling them

I'm trying to troubleshoot some problems relating to network logins (with the combined AD+OD environments), as Kerberos has very specific requirements for time synchronization.

In the ARD manual from Apple, it mentions both the UNIX Command Template and the actual UNIX command you can use to set the network time. This is great. My question is, though, how does it work? Let me elaborate: I have a machine which is, say, 5 minutes slow. For whatever reason (let's say because of firewalling), it can't connect to to synchronize it's clock. Too bad. So, I use this command sent out (as root) via ARD:

systemsetup -setusingnetworktime on -setnetworktimeserver

The reply from the client says "I'm already using NTP, but now I've ditched and I'm going with your server". The trouble is, the clock doesn't update -- at least not right away. It's still out by 5 minutes. But, if I go to System Preferences and then go to Date & Time, it polls the NTP server for what the time actually is and, voila, refreshes the clock. 

The systemsetup --help flag displays this:

Usage: systemsetup -getdate
        Display current date.

Usage: systemsetup -setdate <mm:dd:yy>
        Set current date to <mm:dd:yy>.

Usage: systemsetup -gettime
        Display current time.

Usage: systemsetup -settime <hh:mm:ss>
        Set current time to <hh:mm:ss>.

Usage: systemsetup -gettimezone
        Display current time zone.

Usage: systemsetup -settimezone <timezone>
        Set current time zone to <timezone>. Use "-listtimezones" to list time zones.

Usage: systemsetup -listtimezones
        List time zones supported by this machine.

Usage: systemsetup -getusingnetworktime
        Display whether network time is on or off.

Usage: systemsetup -setusingnetworktime <on off>
        Set using network time to either <on> or <off>.

Usage: systemsetup -getnetworktimeserver
        Display network time server.

Usage: systemsetup -setnetworktimeserver <timeserver>
        Set network time server to <timeserver>.

I'm unable to find a command that actually means "Hey, go out and poll the NTP server right now". So, my question is: does anyone know a way to do it? I have 200 clients, I don't want to either email them to tell them to go to Date & Time, or tell them to reboot. At least, not yet...

Any advice? TIA!


Do not post admin requests to the list. They will be ignored.
Remote-desktop mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

Visit the Apple Store online or at retail locations.

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.