网络服务:邮件与文件传输配置指南
1. NTP 故障排除工具
NTP(网络时间协议)的分发中包含了一些实用的故障排除工具,如ntptrace。jitter表示系统时钟与远程时钟的观测时间误差(以毫秒为单位),是均方根(RMS)时间差的平均值(在 NTPv4 之前,此列称为dispersion)。
ntptrace用于确定给定 NTP 服务器的时间来源,并追溯 NTP 服务器链直至其主时间源。若不带参数运行ntptrace,则从localhost开始。示例输出如下:
Athena:/home/admin # ntptrace localhost: stratum 16, offset 0.000000, synch distance 0.000000 time.nrc.ca: stratum 2, offset 0.002815, synch distance 0.03061 toc.nrc.ca: stratum 1, offset 0.002153, synch distance 0.00156, refid ‘PPS’输出行的字段(从左到右)为:
- 主机名
- 主机层级
-ntptrace测量的该主机与本地主机的时间偏移(因此localhost的偏移并非总是零)
- 主机