If you need to determine what Network Time Protocol (NTP) server is being used on an Apple OS X system from a command line interface (CLI), aka a shell prompt, you can use the systemsetup command with the
-getnetworktimeserver
option.
$ sudo systemsetup -getnetworktimeserver Password: Network Time Server: time.example.com
If you wish to set the time server you can use the
-setnetworktimeserver
command, e.g.:
$ sudo systemsetup -setnetworktimeserver us.pool.ntp.org