Serwer czasu na PLD

Michał Panasiewicz wolvverine w tarchomin.pl
Wto, 19 Wrz 2006, 00:04:31 CEST


Dnia 17-09-2006, nie o godzinie 00:19 +0200, Marteen napisał(a):
> Witam
>  
> Jak skonfigurowac NTPD, zeby PLD robilo za serwer czasu dla sieci
> lokalnej (komputery z windowsami)
[root w kuf-serwer ~]# cat /etc/ntp/ntp.conf | grep -v ^# | grep -v ^$
statsdir /var/log/ntpstats/
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
server smtp.certum.pl prefer
server  127.127.1.0
fudge   127.127.1.0 stratum 0
driftfile /etc/ntp/drift
disable auth

tutaj szukaj ustawien:

(w sumie jedynie wartos z adresem IP jest wazna)

[root w kuf-serwer ~]# cat "/home/services/samba/netlogon/timeserver.reg"
˙ţWindows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DateTime
\Servers]
@="0"
"0"="192.168.5.678"

[root w kuf-serwer ~]# cat "/home/services/samba/netlogon/timeserver2.reg"
˙ţWindows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\W32Time\Parameters]
"ServiceMain"="SvchostEntry_W32Time"
"ServiceDll"=hex(2):43,00,3a,00,5c,00,57,00,49,00,4e,00,44,00,4f,00,57,00,53,\

00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,77,00,33,00,\
  32,00,74,00,69,00,6d,00,65,00,2e,00,64,00,6c,00,6c,00,00,00
"NtpServer"="192.168.5.678,0x1"
"Type"="NTP"

[root w kuf-serwer ~]# cat "/home/services/samba/netlogon/timeserver3.reg"
˙ţWindows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time
\Parameters]
"ServiceMain"="SvchostEntry_W32Time"
"ServiceDll"=hex(2):43,00,3a,00,5c,00,57,00,49,00,4e,00,44,00,4f,00,57,00,53,\

00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,77,00,33,00,\
  32,00,74,00,69,00,6d,00,65,00,2e,00,64,00,6c,00,6c,00,00,00
"NtpServer"="192.168.5.678,0x1"
"Type"="NTP"


a na koniec:

rem ustawienie ntp
sc config w32time start=auto
net time /setsntp:192.168.0.1
net stop w32time & net start w32time
w32tm /resync /nowait
rem end ntp
rem time synchronization
net time \\serwer /set /yes
rem end time synchronization

wiecej: http://wolvverine.jogger.pl/2006/09/

-- 
Michał Panasiewicz Linux user nr. #425323 - jabber: wolvverine [ at ] chrome [ dot ] pl  || e-mail: wolvverine [ at ] tlen [ dot ] pl , wolvverine [ at ] pld-linux [ dot ] org
http://www.linkomp.pl - Linkomp - Usługi informatyczne dla firm - biuro [ at ] linkomp [ dot ] pl



Więcej informacji o liście dyskusyjnej pld-users-pl