Déclarer un nouveau serveur NTP
dans le fichier /etc/ntp.conf
broadcastclient
driftfile /etc/ntp.drift
tracefile /etc/ntp.trace
server 158.156.35.20 # serveur ntp
Configuration du TimeZone
dans le fichier /etc/environment
TZ=NFT-1DFT,M3.5.0/02:00,M10.5.0/03:00
LANG=fr_FR
dlpar (TechnicalUser)
25 May 04 11:28
I try to transform an AIX 5.1 64bits as my xntp server for all my AIXs but it's not working if i try to connect it on the Internet.
/etc/ntp.conf:
server 134.214.100.6 version 3 prefer
server 193.51.24.1 version 3
driftfile /etc/ntp.drift
tracefile /etc/ntp.trace
firewall:
PORT 123 is open for my server
lssrc -ls xntpd
Program name: /usr/sbin/xntpd
Version: 3
Leap indicator: 11 (Leap indicator is insane.)
Sys peer: no peer, system is insane
Sys stratum: 16
Sys precision: -18
Debug/Tracing: DISABLED
Root distance: 0.000000
Root dispersion: 0.000000
Reference ID: no refid, system is insane
Reference time: no reftime, system is insane
Broadcast delay: 0.003906 (sec)
Auth delay: 0.000122 (sec)
System flags: pll monitor filegen
System uptime: 1178 (sec)
Clock stability: 0.000000 (sec)
Clock frequency: 0.000000 (sec)
Peer: 134.214.100.6
flags: (configured)(preferred)
stratum: 16, version: 3
our mode: client, his mode: unspecified
Peer: 193.54.82.20
flags: (configured)
stratum: 16, version: 3
our mode: client, his mode: unspecified
Peer: 193.51.24.1
flags: (configured)
stratum: 16, version: 3
our mode: client, his mode: unspecified
Subsystem Group PID Status
xntpd tcpip 1441892 active
ntpq -p
remote refid st t when poll reach delay offset disp
==============================================================================
134.214.100.6 0.0.0.0 16 - - 64 0 0.00 0.000 16000.0
193.51.24.1 0.0.0.0 16 - - 64 0 0.00 0.000 16000.0
193.54.82.20 0.0.0.0 16 - - 64 0 0.00 0.000 16000.0
ntpdate -d 193.51.24.1
25 May 17:18:44 ntpdate[745486]: 3.4y
transmit(193.51.24.1)
receive(193.51.24.1)
transmit(193.51.24.1)
receive(193.51.24.1)
transmit(193.51.24.1)
receive(193.51.24.1)
transmit(193.51.24.1)
receive(193.51.24.1)
transmit(193.51.24.1)
server 193.51.24.1, port 123
stratum 2, precision -20, leap 00, trust 000
refid [195.83.222.27], delay 0.03731, dispersion 0.00056
transmitted 4, in filter 4
reference time: c45de27f.b1cf4623 Tue, May 25 2004 17:19:27.694
originate timestamp: c45de281.a13a604e Tue, May 25 2004 17:19:29.629
transmit timestamp: c45de254.c96a2000 Tue, May 25 2004 17:18:44.786
filter delay: 0.03888 0.03731 0.03775 0.03894
0.00000 0.00000 0.00000 0.00000
filter offset: 44.83734 44.83692 44.83611 44.83633
0.000000 0.000000 0.000000 0.000000
delay 0.03731, dispersion 0.00056
offset 44.836925
25 May 17:18:44 ntpdate[745486]: step time server 193.51.24.1 offset 44.836925 sec
ntpdate 193.51.24.1
25 May 17:19:11 ntpdate[745488]: the NTP socket is in use, exiting
stopsrc -s xntpd + ntpdate 193.51.24.1
ntpdate 193.51.24.1
25 May 17:20:59 ntpdate[1073200]: no server suitable for synchronization found
Aucun commentaire:
Enregistrer un commentaire