Sincronizar la hora de un W2kServer por NTP (v2)

Por las buenas

Contenido; para sincronizar la hora con el servidor trantor en windows 2003, ejecutar net time /setsntp:trantor.puig.es,0×1 (cambiar por 0×8)

(net time /queryntp)

Por las malas (windows -> no windows)

04/07/2008 10:24:40

Asunto; Time synchronization may not succeed when you try to synchronize with a non-Windows NTP server in Windows Server 2003

Contenido; ver artículo http://support.microsoft.com/kb/243574/en-us, en teoría estas sincronizaciones sólo en el pdc emulator

http://support.microsoft.com/kb/875424/en-us

Time synchronization may not succeed when you try to synchronize with a non-Windows NTP server in Windows Server 2003
View products that this article applies to.
Article ID : 875424
Last Review : October 30, 2006
Revision : 3.2
SYMPTOMS
When you try to synchronize your Microsoft Windows Server 2003-based computer to a Network Time Protocol (NTP) server that is not running Microsoft Windows, the synchronization may not succeed. When this problem occurs, the following events may be recorded in the System log:
Event Type: Information Event
Source: W32Time
Event Category: None
Event ID: 38
Date: Date
Time: Time
User: N/A
Computer: ComputerName
Description: The time provider NtpClient cannot reach or is currently receiving invalid time data from NTP_server_IP_Address. For more information, see Help and Support Center at http://support.microsoft.com.

Event Type: Warning
Event Source: W32Time
Event Category: None
Event ID: 47
Date: Date
Time: Time
User: N/A
Computer: ComputerName
Description: Time Provider NtpClient: No valid response has been received from manually configured peer NTP_server_IP_Address after 8 attempts to contact it. This peer will be discarded as a time source and NtpClient will attempt to discover a new peer with this DNS name. For more information, see Help and Support Center at http://support.microsoft.com.

Event Type: Error
Event Source: W32Time
Event Category: None
Event ID: 29
Date: Date
Time: Time
User: N/A
Computer: ComputerName
Description: The time provider NtpClient is configured to acquire time from one or more time sources, however none of the sources are currently accessible. No attempt to contact a source will be made for 15 minutes. NtpClient has no source of accurate time. For more information, see Help and Support Center at http://support.microsoft.com.

Back to the top

CAUSE
This problem may occur when your computer sends synchronization requests by using symmetric active mode. By default, Windows Server 2003 domain controllers are configured as time servers and use symmetric active mode to send synchronization requests. Some NTP servers that do not run Windows respond only to requests that use client mode.
Back to the top

RESOLUTION
To resolve this problem, configure Windows Time to use client mode when it synchronizes with the time server. To do this, follow these steps:1. Click Start, click Run, type cmd, and then press ENTER.
2. At the command prompt, type the following commands in the order that they are given. After you type each command, press ENTER. * w32tm /config /manualpeerlist:NTP_server_IP_Address,0×8 /syncfromflags:MANUAL
* net stop w32time
* net start w32time
* w32tm /resync

Back to the top

MORE INFORMATION
The mode that Windows Time uses to send requests is set by the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer
If the value of the Enabled entry in this subkey is 1, Windows Time uses symmetric active mode. Otherwise, Windows Time uses client mode.

The 0×8 setting that is referenced in the command in the “Resolution” section sets Windows Time to use client mode.

The valid settings for the mode used with the /manualpeerlist switch include the following: * 0×01 - use special poll interval SpecialInterval
* 0×02 - UseAsFallbackOnly
* 0×04 - send request as SymmetricActive mode
* 0×08 - send request as Client mode

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

Andros!!

Mira te comento que necesito levanta un server NTP independiente del dominio en mi red lan. quisiera saber si eso es posible dentro de plataformas windows.

desde ya mcuhas gracias

Cristian, esto es solo para sincronizar la hora por NTP de un servidor Windows 2003 Server contra un NTP en Linux. De ahi los parametros 0×1 y 0×8 del setsntp
Por lo que entiendo tu necesitas levantar un servidor NTP en un Windows 2003. Eso viene ‘de serie’ como uno de los servicios que se instalan como servidor. Ahora bien, la configuracion de la sincronizacion no sera la misma si estas dentro de un dominio, si es PDC o BDC, etc etc etc.

Andros!! Muchas gracias por responder… para explicarme mejor te comento la prueba que estoy haciendo…

Tengo mi servidor NTP (Teoricamente funcionando)
Un cable cruzado conectado desde el server a mi notebock
y pretendo que mi notebock tome la configuración de la hora de mi server…

el objetivo seria hacerlo con windows 2003, pero si no se puede intentar levantar algun linux…

desde ya muchas gracias por tus sugerencias

Cuando tengas el portatil con red, revisa el comando “net time” del MS-DOS ;)
Es todo lo que necesitaras para sincronizarle la hora al portatil contra tu servidor.

Andros,

Mira yo tengo un servidor con Red Hat de Linux y le quiero sincronizar la hora con un servidor con Windows XP, como le puedo hacer???

Buenas Adrián, deberás fijarte en el comando ntpdate (man ntpdate para mas detalles) para realizar esa sincronización una sola vez. “ntpdate -u nombre_o_ip_del_servidor” debería sincronizarte la hora de manera manual.
Si lo que quieres es tener constantemente sincronizada la maquina con el servidor, deberás revisar la configuración de ntpd (servicio de hora) de tu maquina e indicarle el servidor contra el que quieres sincronizar. El nombre DNS o la IP debería ser suficiente dato para indicarselo.

Muchas gracias Andros,

Mira, yo le tecle en el servidor en donde tiene Linux, le puse:

#/bin/bash
#/usr/sbin/ntpdate nombre.del.servidor

Y la respuesta que me da este servidor es que, al servidor que quiero sincronizar no es el adecuado.

Por lo que no se si me falte hacer algo en el servidor que corre bajo windows.

y como me lo comentas lo que quiero es que el servidor de linux, este constantemente sincronizado con el servidor de windows

por lo que se el -u es nada mas por si tienes algun firewall, el cual no le tengo. si no es así por favor corrigeme.

Leave a comment

(required)

(required)