2 minute read

NTP

Voir les informations du serveur NTP configuré en local:

ntpq -p

Exemple de sortie :

     remote                                   refid      st t when poll reach   delay   offset   jitter
=======================================================================================================
(tally)host.domain          xx.xx.xx.xx    3 u    -   64    1   1.3065  -0.2271   0.0661

Description :

       ┌─────────┬───────────────────────────────────┐
       │         │                                   │
       │Variable │ Description                       │
       ├─────────┼───────────────────────────────────┤
       │         │                                   │
       │tally    │ single-character code indicating  │
       │         │ current value of the select field │
       │         │ of the peer status word           │
       │         │ <decode.html#peer>                │
       ├─────────┼───────────────────────────────────┤
       │         │                                   │
       │remote   │ host name (or IP number) of peer  │
       ├─────────┼───────────────────────────────────┤
       │         │                                   │
       │refid    │ association ID or kiss code       │
       │         │ <decode.html#kiss>                │
       ├─────────┼───────────────────────────────────┤
       │         │                                   │
       │st       │ stratum                           │
       ├─────────┼───────────────────────────────────┤
       │         │                                   │
       │t        │ u: unicast or manycast client, l: │
       │         │ local (reference clock), s:       │
       │         │ symmetric (peer), server, B:      │
       │         │ broadcast server, 1-8 NTS unicast │
       │         │ with this number of cookies       │
       │         │ stored.                           │
       ├─────────┼───────────────────────────────────┤
       │         │                                   │
       │when     │ sec/min/hr since last received    │
       │         │ packet                            │
       ├─────────┼───────────────────────────────────┤
       │         │                                   │
       │poll     │ poll interval (log2 s)            │
       ├─────────┼───────────────────────────────────┤
       │         │                                   │
       │reach    │ reach shift register (octal)      │
       ├─────────┼───────────────────────────────────┤
       │         │                                   │
       │delay    │ roundtrip delay                   │
       ├─────────┼───────────────────────────────────┤
       │         │                                   │
       │offset   │ offset of server relative to this │
       │         │ host                              │
       ├─────────┼───────────────────────────────────┤
       │         │                                   │
       │jitter   │ jitter                            │
       └─────────┴───────────────────────────────────┘

The tally code is one of the following :

       ┌─────┬────────────────────────────────────┐
       │     │                                    │
       │Code │ Description                        │
       ├─────┼────────────────────────────────────┤
       │     │                                    │
       │     │ discarded as not valid             │
       ├─────┼────────────────────────────────────┤
       │     │                                    │
       │x    │ discarded by intersection          │
       │     │ algorithm                          │
       ├─────┼────────────────────────────────────┤
       │     │                                    │
       │.    │ discarded by table overflow (not   │
       │     │ used)                              │
       ├─────┼────────────────────────────────────┤
       │     │                                    │
       │-    │ discarded by the cluster algorithm │
       ├─────┼────────────────────────────────────┤
       │     │                                    │
       │+    │ included by the combine algorithm  │
       ├─────┼────────────────────────────────────┤
       │     │                                    │
       │#    │ backup (more than tos maxclock     │
       │     │ sources)                           │
       ├─────┼────────────────────────────────────┤
       │     │                                    │
       │*    │ system peer                        │
       ├─────┼────────────────────────────────────┤
       │     │                                    │
       │o    │ PPS peer (when the prefer peer is  │
       │     │ valid)                             │
       └─────┴────────────────────────────────────┘

Forcer une mise à jour de l’heure :

ntpdate [host]

Rappels sur les stratums

  • Stratum 0 : horloge de référence (antenne GPS, horloge atomqiet, horloge radio)
  • Stratum 1 : Serveurs branchés sur une source de référemce
  • Stratum 2 : Serveurs branchés sur une source de stratum 1
  • Stratum 3 : Serveurs branchés sur une source de stratum 2
  • etc.

Tags: , ,

Categories:

Updated: