Skip to main content

Hi!



Anyone have an EA that will pull what NTP server is set to?



Thanks!
John

Server list:



#!/bin/sh
echo "<result>$( /bin/cat /etc/ntp.conf )</result>"


State:



#!/bin/sh
echo "<result>$( /usr/sbin/systemsetup -getusingnetworktime | awk '{ print $3}' )</result>"

There's actually a template EA right in the JSS for that. It's basically already there. You just need to enable it. It's basically the same as the 2nd version above from @donmontalvo


I see it now. Thank you!