To display the Precision Time Protocol (PTP) foreign master clocks that are available to the router, use the
show
ptp
foreign-masters
command in EXEC mode.
show
ptp
foreign-masters
[brief]
{
interface
name
|
location
node
}
show
ptp
foreign-masters
best
|
brief
|
Lists all foreign-masters known on the router, ordered by the interface on which they were discovered.
If this option is omitted, the output also include detailed clock properties, unicast messages that are granted from the master,
length of time the master has been qualified, and information about the clock peer.
|
|
name
|
Displays foreign masters that are discovered by the specified interface. For more information, use the question mark (?) online
help function.
|
|
node
|
Displays foreign masters tdiscovered by the specified node
|
|
best
|
Displays the state of the best foreign master found in the network
|
Command Default
This command has no default values or behavior.
| Release |
Modification |
|
Release 25.4.1
|
This command was introduced.
|
Usage Guidelines
This command displays the state of foreign masters for the PTP processes. It is only relevant when running as a boundary clock;
in grandmaster mode, no relevant output gets displayed.
The show ptp foreign-masters command with the best keyword collects grandmaster information from all RPs and filters out all but the grandmaster on the active timing card.
If the active timing card does not support running as slave, no foreign masters are displayed and instead, it is indicated
that slaving is not supported (refer examples section).
Examples
The following shows output with the brief option:
Router# show ptp foreign-masters brief
M=Multicast,Q=Qualified,GM=Grandmaster
Interface Transport Address Priority1 State
Gi0/2/0/0 IPv4 192.168.172.122 13 M,Q
IPv4 192.168.172.123 17 M
Gi0/2/0/1 IPv6 fe80::2b0:4aff:fe6b:f4fc 1 Q,GM
IPv6 fe80::2b0:4aff:fe6b:1234 18 Q
Gi0/3/0/0 Ethernet 00b0.4a6b.f4fc
The example indicates if the foreign-master is multicast and the clock that is being used as the grandmaster.
Examples
The following example shows output for the location 0/2/CPU0, including the brief option:
Router#show ptp foreign-masters brief location 0/2/CPU0
M=Multicast,Q=Qualified,GM=Grandmaster
Interface Transport Address Priority1 State
Gi0/2/0/0 IPv4 192.168.172.122 13 M,Q
IPv4 192.168.172.123 17 M
Gi0/2/0/1 IPv6 fe80::2b0:4aff:fe6b:f4fc 1 Q,GM
IPv6 fe80::2b0:4aff:fe6b:1234 18 Q
Examples
The following example shows output for the interface GigabitEthernet0/2/0/0, without the brief option:
Router#show ptp foreign-masters brief interface GigabitEthernet0/2/0/0
Interface GigabitEthernet0/2/0/3 (PTP port number 27):
IPv4, Address 172.108.11.25
Configured priority: None
Announce granted: every 2 seconds, 600 seconds
Sync granted: 16 per-second, 400 seconds
Delay-Resp granted: 16 per-second, 600 seconds
Qualified for 6 days, 2 hours, 11 minutes
Clock ID: ACDE48FFFE234567
Clock properties:
Priority1: 1, Priority2: 83, Class: 6, Accuracy: 0x2B
Offset scaled log variance: 0x27FF, Steps-removed: 5
Domain: 0, Time Source: GPS, Timescale: PTP
Frequency-traceable, Time-traceable
Current UTC offset: 25 seconds
Parent properties:
Clock-ID: BADE48FFFE234367
Port number: 3, Steps Removed: 2
IPv4, Address 172.108.11.23, Multicast
Configured priority: 27
Announce granted: every 2 seconds, 600 seconds
Qualified for 5 days, 4 hours, 27 minutes
Clock ID: ACDE48FFFE234567
Clock properties:
Priority1: 7, Priority2: 83, Class: 6, Accuracy: 0x2B
Offset scaled log variance: 0x27FF, Steps-removed: 5
Domain: 0, Time Source: GPS, Timescale: PTP
Frequency-traceable, Time-traceable
Current UTC offset: 25 seconds
Parent properties:
Clock-ID: BADE48FFFE234367
Port number: 5, Steps Removed: 1
IPv4, Address 172.108.11.18, Multicast
Configured priority: 11
Not qualified
Examples
The following example shows state information for the best foreign master in the network:
Router# show ptp foreign-masters best
Used to set system frequency and time
IPv4, Address 1.2.3.4
Received on interface GigabitEthernet0/2/0/3 (port number 0x1007)
Clock ID: ACDE48FFFE234567
Best foreign-master for 5 days, 4 hours, 27 minutes
Advertised for 5 days, 4 hours, 20 minutes
Clock properties:
Priority1: 7, Priority2: 83, Class: 6, Accuracy: 0x2B
Offset scaled log variance: 0x27FF, Steps-removed: 5
Domain: 0, Time Source: GPS, Timescale: PTP
Frequency-traceable, Time-traceable
Current UTC offset: 25 seconds
Parent properties:
Clock-ID: BADE48FFFE234367
Port number: 0x0005
This example indicates the display when slaving is not supported on the active timing card:
Router #show ptp foreign-masters best
PTP slaving is not supported on the RSP.