I'm trying to create an extension attribute to show what time server is configured on our Macs. This should make it easier to show an auditor that we manage the time server on endpoints. Does anyone know of a terminal command that would output a machine's time server?
Solved
Time Server Extension Attribute
Best answer by mm2270
#!/bin/zsh
time_server=$(/usr/sbin/systemsetup -getnetworktimeserver | /usr/bin/awk '{print $NF}')
/bin/echo "<result>$time_server</result>"Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
