NTP Operational Commands
OSPF Show Commands
NTP Status
Displays the NTP status information.
Syntax:
supervisor@rtbrick: op> show ntp status
associd=0 status=C016 leap_alarm, sync_unspec, 1 event, restart,
leap=3, stratum=16, precision=-21, rootdelay=0.000, rootdisp=0.225,
refid=INIT, reftime=0x00000000.00000000 1900-01-01T00:00:00+00:00,
tc=0, peer=0, offset=0.000000,
frequency=0.000000, sys_jitter=0.000000, clk_jitter=0.000477,
clock=0xedcd4762.b7eb15fc 2026-06-05T13:02:26.718430+00:00, processor="x86_64", system="Linux/6.1.170",
version="ntpd ntpsec-1.2.2", clk_wander=0.000000,
leapsec=2017-01-01T00:00Z, expire=2026-12-28T00:00Z, mintc=0
NTP Peer
Displays history of the NTP peers, showing when they went up or down and any changes in their status, identified by the peer’s IP address.
Syntax:
| Option | Description |
|---|---|
|
IP address of the NTP peer to show history for. |
|
Displays history of the NTP peers, showing when they went up or down and any changes in their status, identified by the peer’s IP address. |
|
Displays detailed information for a specific NTP peer, including its association ID, status, source address, port, hostname, destination address, leap indicator, stratum, precision, root delay, root dispersion, reference ID, reference time, receive time, reachability, host mode, peer mode, poll intervals, headway, key ID, offset, delay, dispersion, and jitter. |
|
Displays the history of a specific NTP peer. |
|
Displays detailed information for a specific NTP peer. |
The example below shows the history of a specific NTP peer, showing when it went up or down and any changes in its status.
supervisor@rtbrick: op> show ntp peer 192.0.2.105 history
srcadr timestamp associd status reason
192.0.2.105 Fri Jun 05 13:01:36 GMT +0000 2026 17767 8011 Peer Up
192.0.2.105 Fri Jun 05 13:01:56 GMT +0000 2026 17767 8011 Peer Down
192.0.2.105 Fri Jun 05 13:02:11 GMT +0000 2026 17767 8011 Peer Up
The example below shows detailed information of the NTP peers using NTP Mode 6 control message READVAR, including their association ID, status, source address, port, hostname, destination address, leap indicator, stratum, precision, root delay, root dispersion, reference ID, reference time, receive time, reachability, host mode, peer mode, poll intervals, headway, key ID, offset, delay, dispersion, and jitter.
supervisor@rtbrick>LEAF01: cfg> show ntp peer detail
associd: 60555, status: 161a
srcadr: 198.51.100.13, srcport: 123
srchost: node-2.infogral.is
dstadr: 198.51.100.101, Port: 123
leap: 0 leap_none, stratum: 2, precision: -25
rootdelay: 5.112
rootdisp: 0.290
refid: 192.0.2.4
reftime: 2025-05-27T12:34:07.000003+0000
rec: 2025-05-27T12:36:32.000003+0000
reach: 336, unreach: 2
hmode: 3 pmode: 4, hpoll: 9, ppoll: 9
headway: 0, keyid: 0
flash: 0 Ok
offset: -0.198
delay: 2.828
dispersion: 16.124001
jitter: 0.638
xleave: 0.036000
<...>
NTP Associations
Displays the information about the various NTP servers configured.
Syntax:
| Option | Description |
|---|---|
|
Details without DNS resolution. |
show ntp association
supervisor@rtbrick: op> show ntp association
Flags: space ( ) Discarded due to high stratum and/or failed sanity checks, x Designated falseticker by the intersection algorithm,
. Culled from the end of the candidate list, - Discarded by the clustering algorithm,
+ Included in the final selection set, # Selected for synchronization but distance exceeds maximum,
* Selected for synchronization, o Selected for synchronization, pps signal in use.
remote refid st t when poll reach delay offset jitter
192.0.2.105 .INIT. 16 u - 64 0 0.000 0.000 0.000
192.0.2.106 .INIT. 16 u - 64 0 0.000 0.000 0.000
System Uptime
The show system uptime command provides a timeline summary of the system, including when it booted, when forwarding started, last configuration change, and current CPU load.
Syntax:
Example for the command:
supervisor@rtbrick.net: cfg> show system uptime Time source: NTP CLOCK, Current time: 2026-04-02 04:46:30 UTC Forwarding started: 2026-04-01 11:48:23 UTC (16 hours, 58 minutes ago) Last configured: 2026-04-02 04:45:08 UTC (1 minute ago) by supervisor Container boot time: 2026-04-01 11:08:55 UTC (17 hours, 37 minutes ago) CPU load averages [1m, 5m, 15m]: 1.58, 1.56, 3.32
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