I have ntpd running on a box. I want to see how the time on the box compares to the time retrieved from ntp.ubuntu.com. Is there an easy way to do this?
ntpq -p ntp.ubuntu.com
... -p Print a list of the peers known to the server as well as a summary of their state. This is equivalent to the peers interactive command. ...
Edit: The host is timing out right now.
ntpq -p pool.ntp.org will return a valid result.
You can use ntpdate to query a time server
ntpdate -q ntp.ubuntu.com
Actually, the command
ntpq -c "rv 0 clock" ntp.ubuntu.com will return the time of the server in standard format : this is the result from ca.pool.ntp.org :
clock=d1b5aa9c.b8f9697a Wed, Jun 29 2011 9:43:56.722