Bienvenido! Entrar Crear un nuevo perfil
unixmexico

Avanzado

servidor 'datetime'

Enviado por nbari 

servidor 'datetime'
12-agosto-2009 22:57
Quiero instalar un servidor parecido al ntp o el mismo ntpd si es que se puede para que escuche en el puerto 13 (TCP) para así poder dar telnet al puerto 13 o usar el programa rdate y consultar el tiempo.

un ejemplo de esto esta en: time-a.nist.gov

> telnet time-a.nist.gov 13
Trying 129.6.15.28...
Connected to time-a.nist.gov.
Escape character is '^]'.

55056 09-08-13 03:55:43 50 0 0 897.7 UTC(NIST) *


Alguna idea?
thumbs upRe: servidor 'datetime'
13-agosto-2009 02:21
La solución que encontre fue activar "inetd" y habilitar la siguiente linea:

daytime stream tcp nowait root internal

para activar inetd puse la siguiente linea en /etc/rc.conf

inetd_enable="YES"
Re: servidor 'datetime'
14-agosto-2009 14:30
Tuve un problema en la maquina que no ayudaba a que se sincronizara correctamente la hora, para solucionarlo solo agregue la siguiente linea a : /etc/sysctl.conf

kern.timecounter.hardware=i8254


Why does the clock on my laptop keep incorrect time?

Your laptop has two or more clocks, and FreeBSD has chosen to use the wrong one.

Run dmesg(8), and check for lines that contain Timecounter. The last line printed is the one that FreeBSD chose, and will almost certainly be TSC.

    # dmesg | grep Timecounter
    Timecounter "i8254"  frequency 1193182 Hz
    Timecounter "TSC"  frequency 595573479 Hz
You can confirm this by checking the kern.timecounter.hardware sysctl(3).

    # sysctl kern.timecounter.hardware
    kern.timecounter.hardware: TSC
The BIOS may modify the TSC clock--perhaps to change the speed of the processor when running from batteries, or going into a power saving mode, but FreeBSD is unaware of these adjustments, and appears to gain or lose time.

In this example, the i8254 clock is also available, and can be selected by writing its name to the kern.timecounter.hardware sysctl(3).

    # sysctl -w kern.timecounter.hardware=i8254
    kern.timecounter.hardware: TSC -> i8254
Your laptop should now start keeping more accurate time.

To have this change automatically run at boot time, add the following line to /etc/sysctl.conf.

    kern.timecounter.hardware=i8254
Lo siento, sólo puedes enviar mensajes si estás registrado.

Haz click aquí para entrar