我在一个盒子上运行 ntpd。我想看看盒子上的时间与从 ntp.ubuntu.com 检索到的时间相比如何。是否有捷径可寻?
jsc*_*ott 20
ntpq -p ntp.ubuntu.com
来自man ntpq:
...
-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.
...
Run Code Online (Sandbox Code Playgroud)
编辑:主机现在超时。 ntpq -p pool.ntp.org将返回一个有效的结果。
小智 12
实际上,该命令ntpq -c "rv 0 clock" ntp.ubuntu.com将以标准格式返回服务器的时间:这是来自ca.pool.ntp.org的结果:
clock=d1b5aa9c.b8f9697a Wed, Jun 29 2011 9:43:56.722
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
77369 次 |
| 最近记录: |