Articles of ntp

问题与NTPconfiguration

我正在使用RHEL-6 64位服务器。 当使用ntpq -p我得到以下结果: $ ntpq -p localhost: timed out, nothing received ***Request timed out 使用RHEL 5.4,我们使用了如下的ntpconfiguration: # /etc/ntp.conf server <ip> prefer key <keyval> 但是它不适用于RHEL 6?

在Linux中是否可以通过SNMP监视NTP?

是否可以使用SNMP监视NTP漂移值(我的意思是测量NTP服务器和我试图监视的服务器之间的时间差)。

主服务器上的NTP和虚拟(LXC)上的替代

我正在build立一个服务器与几个VPS。 我正在使用LXC。 我想只有配备了ntp的主服务器才能更好,并且虚拟盒只需要从主框中获得时间。 是否有一个bash / python / php等脚本,我可以用来从主服务器获得时间?

如何返回到使用GP的域上的NTP /时间服务器的默认设置

这是一个编辑 – 根据评论,我可能不被理解/ 事实: 我有一个Windows 2003域 PDC模拟器已启用,并在我的DC上正常工作 我有一个不能正常工作的GPO 我想我的客户端与我的DC(W2K3)上的PDC模拟器同步, 我想我的DC与外部NTP服务器同步 这是当前是NTP GPO的GPO Policy Setting Configure Windows NTP Client Enabled NtpServer 0.asia.pool.ntp.org,0x1 Type NT5DS CrossSiteSyncFlags 2 ResolvePeerBackoffMinutes 15 ResolvePeerBackoffMaxTimes 7 SpecialPollInterval 3600 EventLogFlags 0 Policy Setting Enable Windows NTP Client Disabled 问题1: 如果我只是禁用链接的NTP GPO – 我的客户端是否会恢复到默认设置(假设需要gpupdate / force) – 他们是否会返回 – 实际上他们会继续同步到同一台服务器/同一台服务器,但只是没有GPO。 – 这是正确的吗? 如果第一季度的答案是否定的,那么在域名上需要做些什么吗? 问题2 […]

ntpd似乎不同步

我正在按照这个教程是2008年,所以我非常小心使用它的build议。 我需要让这台机器成为主人,让所有其他机器使用它来同步时间。 他们在20-30之间都不同步… 默认情况下,conf文件有这样的: # Specify one or more NTP servers. # Use servers from the NTP Pool Project. Approved by Ubuntu Technical Board # on 2011-02-08 (LP: #104525). See http://www.pool.ntp.org/join.html for # more information. server 0.ubuntu.pool.ntp.org server 1.ubuntu.pool.ntp.org server 2.ubuntu.pool.ntp.org server 3.ubuntu.pool.ntp.org # Use Ubuntu's ntp server as a fallback. server ntp.ubuntu.com 我只是稍作改动,现在它变成了server 0.ubuntu.pool.ntp.org […]

NTP:ntpdate在专用networking上的电脑之间同步时间

我有两个系统。 一个充当主/主动并且具有因特网连接并从NTP服务器获得时间。 第二个系统是次要的/被动的,与外部世界没有任何联系。 主用和备用连接在专用networking接口eth1 。 小学有 IP:169.254.10.10 子网:255.255.255.248 广播:169.254.10.15 中学有 IP:169.254.10.11 子网:255.255.255.248 广播:169.254.10.15 主要有以下ntp.confconfiguration driftfile /var/lib/ntp/ntp.drift 统计信息loopstats peerstats clockstats filegen loopstats文件loopstatstypes日启用 filegen peerstats文件peerstats键入day enable filegen clockstats文件clockstats键入date启用 服务器192.168.101.25 限制-4默认值kod notrap nomodify nopeer noquery 限制-6默认值kod notrap nomodify nopeer noquery 限制127.0.0.1 restrict :: 1 限制169.254.10.0掩码255.255.255.248 广播169.254.10.15 禁用身份validation broadcastclient 我只用ntpdate在Secondary上同步时间,不要在Secondary上运行ntpd守护进程。 在第二台上运行ntpdate -b -t 4 -p 4 -u 169.254.10.10 (主接口IP)并且Ntpd服务器在上述configuration的Primary上运行。 […]

我的NTPconfiguration是否正确?

我有一个远程运行的CentOS虚拟机,可以通过VPN访问。 它被设置为同步来自同一networking上的两台服务器的时间。 时间是大致正确的,但似乎是漂stream。 我对下面输出中提到的2036年的date感到担心,我应该吗? /usr/sbin/ntpq -pcrv remote refid st t when poll reach delay offset jitter ============================================================================== 10.245.8.100 10.249.8.100 2 u 24 64 377 1.185 12124.8 29.489 10.249.8.100 .RMOT. 16 u – 1024 0 0.000 0.000 0.000 assID=0 status=c011 sync_alarm, sync_unspec, 1 event, event_restart, version="ntpd [email protected] Fri Nov 18 13:21:21 UTC 2011 (1)", processor="x86_64", system="Linux/2.6.18-308.el5", […]

用DC工作手动同步电子钟,但一分钟后 – 5分钟时钟不正确

问题: DC1时钟:17:23 ADjoin了客户时钟:17:28 client> w32tm /resync时间同步后,时钟再次向客户端跳转5分钟。 它总是在不到一分钟的时间内发生。 好的,也许从其他地方同步。 我没有手动设置对等列表到域控制器: client>w32tm /config /manualpeerlist:"DC1 DC2 DC3" /syncfromflags:manual The command completed successfully. client>w32tm /resync Sending resync command to local computer The command completed successfully. 结果? 没有帮助,因为行为是一样的。 我应该注意到,DC和客户端在不同的子网中,但是可以进行通信。 我应该检查什么来进一步排查这种情况? 发布请求的信息: client> w32tm /query /configuration [Configuration] EventLogFlags: 2 (Local) AnnounceFlags: 10 (Local) TimeJumpAuditOffset: 28800 (Local) MinPollInterval: 10 (Local) MaxPollInterval: 15 […]

ntpdate失败“名称或服务未知”

我有一个基于Linux的Linux(Linux版本2.6.32.11-svn70860),它不能使用ntp设置它的时间。 以前的系统pipe理员早已不在了,所以我不知道这个问题刚刚开始发生,还是多年来一直如此。 我也在联系制造商,但是对他们的技术支持没有太大的信心 – 这就是我来到这里的原因! 在/var/log/daemon.log我看到这样的行: Jan 13 09:28:37 ntpdate[16529]: can't find host pool.ntp.org Jan 13 09:28:37 ntpdate[16529]: can't find host time.windows.com Jan 13 09:28:37 ntpdate[16529]: can't find host pool.ntp.org Jan 13 09:28:37 ntpdate[16529]: no servers can be used, exiting 所以我开始调查ntpdate。 如果我执行 ntpdate pool.ntp.org 它回应 Error : Name or service not known 16 Jan 09:16:38 […]

在Juniper SRX-240上禁用NTP

我试图closures/禁用Juniper SRX-240(junos 11.4)上运行的ntp守护程序,但显而易见的解决scheme显然无法用于此硬件/软件组合。