Posted on 04-19-2017 10:21 AM
In the Network time server field I'm getting this "The systemsetup binary is not present on this machine." Looks like this is only on OS 10.11 Macs. I have a few 10.9 machines that are returning the right network time server info.
I'm thinking I need to change my terminal command I'm using to set the network time server address. I'm currently using "sudo systemsetup -setnetworktimeserver my.network.time.server.url"
Thanks!
Posted on 04-19-2017 11:00 AM
@mnapier I can't answer why systemsetup
isn't being found on your 10.11 systems, but as an alternative to editing the time server setting on your machines (which isn't possible for iOS devices) you might want to consider having your organization's DNS redirect time.apple.com to the IP address of my.network.time.server.url
Posted on 04-19-2017 01:31 PM
@mnapier Can you use ntpdate
?
I use sudo ntpdate -vu my.network.time.server.url
to set the time server on my clients, so far haven't run into issues from 10.7 - 10.12.
Posted on 04-20-2017 06:04 AM
I'm willing to share my script for this...I ran into a problem where a device off campus could not receive ntp from the authoritative server on campus for time. I was able to specify two servers with this script:
#!/bin/bash
#Primary Time server for Company Macs
TimeServer1=<server address here>
#Secondary Time server for Company Macs
TimeServer2=<second server address here>
# Set the primary network server with systemsetup -setnetworktimeserver
# Using this command will clear /etc/ntp.conf of existing entries and
# add the primary time server as the first line.
/usr/sbin/systemsetup -setnetworktimeserver $TimeServer1
# Add the secondary time server as the second line in /etc/ntp.conf
echo "server $TimeServer2" >> /etc/ntp.conf
exit 0
Now I know that this wasn't your primary problem, but note the syntax of setting the timer server for the second server. This method would work to set the time server for the primary as well. Not the other way around though...in my case systemsetup works but systemsetup command only can specify one server so I use the second command to specify the second one. Hope this helps someone.
Posted on 03-01-2018 08:40 AM
Question: how does the system know when to use the second time server?
Posted on 03-01-2018 10:49 AM
Honestly unsure...I'm guessing it tries to hit the primary and when it can't looks for a secondary. That is the design assumption I am making when I use it. If someone is in house, we want them to hit the domain controller for their time. Our domain controller is not available off the network though and people's clocks sometimes go weird so I make the second server time.apple.com