La commande 'ntpdate' permet de vérifier l'accès au serveur de temps défini dans le fichiet "/etc/ntp.conf".
On peut ainsi envoyer la commande suivante :
# ntpdate -d 10.116.63.241
4 Jun 13:19:17 ntpdate[35586274]: 3.4y
transmit(10.116.63.241)
receive(10.116.63.241)
transmit(10.116.63.241)
receive(10.116.63.241)
transmit(10.116.63.241)
receive(10.116.63.241)
transmit(10.116.63.241)
receive(10.116.63.241)
transmit(10.116.63.241)
server 10.116.63.241, port 123
stratum 3, precision -32, leap 00, trust 000
refid [10.255.9.30], delay 0.03755, dispersion 0.00008
transmitted 4, in filter 4
reference time: d7397cb8.5834d6c1 Wed, Jun 4 2014 13:08:40.344
originate timestamp: d7397f35.53a4f940 Wed, Jun 4 2014 13:19:17.326
transmit timestamp: d7397f35.5202c000 Wed, Jun 4 2014 13:19:17.320
filter delay: 0.03804 0.03792 0.03757 0.03755
0.00000 0.00000 0.00000 0.00000
filter offset: 0.000526 0.000614 0.000421 0.000396
0.000000 0.000000 0.000000 0.000000
delay 0.03755, dispersion 0.00008
offset 0.000396
4 Jun 13:19:17 ntpdate[35586274]: 3.4y
transmit(10.116.63.241)
receive(10.116.63.241)
transmit(10.116.63.241)
receive(10.116.63.241)
transmit(10.116.63.241)
receive(10.116.63.241)
transmit(10.116.63.241)
receive(10.116.63.241)
transmit(10.116.63.241)
server 10.116.63.241, port 123
stratum 3, precision -32, leap 00, trust 000
refid [10.255.9.30], delay 0.03755, dispersion 0.00008
transmitted 4, in filter 4
reference time: d7397cb8.5834d6c1 Wed, Jun 4 2014 13:08:40.344
originate timestamp: d7397f35.53a4f940 Wed, Jun 4 2014 13:19:17.326
transmit timestamp: d7397f35.5202c000 Wed, Jun 4 2014 13:19:17.320
filter delay: 0.03804 0.03792 0.03757 0.03755
0.00000 0.00000 0.00000 0.00000
filter offset: 0.000526 0.000614 0.000421 0.000396
0.000000 0.000000 0.000000 0.000000
delay 0.03755, dispersion 0.00008
offset 0.000396
Si le serveur répond, la connexion au service est validée.