NTP Operational Commands
OSPF Show Commands
NTP Status
Displays the NTP status information.
Syntax:
show ntp status
Example: NTP Status
supervisor@rtbrick.net: op> show ntp status Associd: 0 Status: 0615 leap_none, sync_ntp, 1 event, clock_sync, Version: "ntpd 4.2.8p12@1.3728-o (1)", Processor: "x86_64", System: "Linux/5.4.40-OpenNetworkLinux", Leap: 00, Stratum: 2, Precision: -23, Rootdelay: 9.791, Rootdisp: 28.874, Refid: 193.203.3.171, Reftime: eae063f2.d94d557e Thu, Nov 14 2024 11:56:34.848, Clock: eae06777.af9fc4c5 Thu, Nov 14 2024 12:11:35.686, Peer: 64212, Tc: 10, Mintc: 3, Offset: 0.039552, Frequency: -12.332, Sys_jitter: 0.195478, Clk_jitter: 0.175, Clk_wander: 0.012, Tai: 37, Leapsec: 201701010000, Expire: 202412280000
NTP Associations
Displays the information about the various NTP servers configured.
Syntax:
show ntp association <options>
Option | Description |
---|---|
no-resolve |
Details without DNS resolution. |
supervisor@rtbrick.net: op> show ntp association Flags: * Synchronized, # Almost synchronized, + Selected for possible synchronization," – Candidate for selection, ~ Statically configured" Remote Refid St T When Poll Reach Delay Offset Jitter +194.50.19.117 131.188.3.222 2 u 522 1024 377 4.939 0.162 0.069 *193.203.3.171 .GPS. 1 u 897 1024 377 9.791 0.008 0.066 -51.75.67.47 157.13.205.54 3 u 770 1024 377 4.929 -0.110 0.149 +85.215.189.120 192.53.103.103 2 u 868 1024 377 13.483 0.043 0.181 -167.235.70.245 195.176.26.205 2 u 757 1024 377 0.883 0.158 0.332 -162.159.200.123 10.163.8.4 3 u 642 1024 377 4.160 0.439 0.484
Verifying NTP Service on Linux
To get more information about NTP’s status, use the ntpq
command:
The command displays the NTP servers that the system is synchronized with.
supervisor@rtbrick>LEAF01:~ $ sudo ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== 198.51.100.5 .XFAC. 16 u - 64 0 0.000 0.000 0.000