Viewing PTP Settings and Status
- Displaying General PTP Information
- Displaying PTP Local Clock and Offset
- Displaying PTP Masters Information
- Displaying PTP Clock Properties
- Displaying PTP Information for all Interfaces
- Displaying PTP Interface Counters
- Displaying PTP Foreign Master
- Displaying PTP Monitoring Information
- Displaying PTP Source IP
Displaying General PTP Information
To display general Precision Time Protocol (PTP) information, use the show ptp command.
switch# show ptp
PTP Mode: gptp - Generalized PTP Clock
Clock Identity: 2001:0DB8:73:ff:ff:26:fd:90
Grandmaster Clock Identity: 2001:0DB8:96:ff:fe:6c:ed:02
Number of slave ports: 1
Number of master ports: 6
Slave port: Ethernet33
Mean Path Delay (nanoseconds): 718
Steps Removed: 1
Neighbor Rate Ratio: 1.00000007883
Rate Ratio: 1.00000007883
Interface State ASTime Since LastNeighbor Mean Path Residence
Capable Changed Rate Ratio Delay (ns) Time (ms)
--------- -------- ------- ------------------ ----------- ----------- ---------
Et1 Disabled No Never 1.0 00
Et2 Disabled No Never 1.0 00
Et3 Disabled No Never 1.0 00
Et4 Disabled No Never 1.0 00
Et5 Disabled No Never 1.0 00
Et6 Disabled No Never 1.0 00
Et7 Master Yes 0:21:08 1.000000094200
Displaying PTP Clock Properties
To display PTP clock properties, use the Displaying PTP Clock Properties command.
switch# show local-clock time-properties
Current UTC offset valid: False
Current UTC offset: 0
Leap 59: False
Leap 61: False
Time Traceable: False
Frequency Traceable: False
PTP Timescale: False
Time Source: 0x0
switch#
Displaying PTP Foreign Master
To display information about foreign masters (PTP sources not designated as the switchs master from which the switch has received sync packets), use the show ptp foreign-master-record command.
switch# show ptp foreign-master-record
No Foreign Master Records
switch#
Displaying PTP Information for all Interfaces
To display PTP information for specified interfaces, use the show ptp interface command.
switch# show ptp interface
Interface Ethernet1
PTP: Disabled
Port state: Disabled
Sync interval: 1.0 seconds
Announce interval: 2.0 seconds
Announce interval timeout multiplier: 3
Delay mechanism: end to end
Delay request message interval: 32.0 seconds
Transport mode: ipv4
Interface Ethernet5
PTP: Disabled
Port state: Disabled
Sync interval: 8.0 seconds
Announce interval: 2.0 seconds
Announce interval timeout multiplier: 5
Delay mechanism: peer to peer
Peer delay request message interval: 8.0 seconds
Peer Mean Path Delay: 0
Transport mode: ipv4
switch#
Displaying PTP Interface Counters
To display PTP interface counters for specified interfaces, use the show ptp interface counters command.
switch# show ptp interface ethernet 5 counters
Interface Ethernet5
Announce messages sent: 0
Announce messages received: 0
Sync messages sent: 0
Sync messages received: 0
Follow up messages sent: 0
Follow up messages received: 0
Delay request messages sent: 0
Delay request messages received: 0
Delay response messages sent: 0
Delay response messages received: 0
Peer delay request messages sent: 0
Peer delay request messages received: 0
Peer delay response messages sent: 0
Peer delay response messages received: 0
Peer delay response follow up messages sent: 0
Peer delay response follow up messages received: 0
switch#
Displaying PTP Local Clock and Offset
To display the local PTP clock and offset, use the show ptp local-clock command.
switch# show ptp local-clock
PTP Mode: Boundary Clock
Clock Identity: 0x00:1c:73:ff:ff:1e:83:24
Clock Domain: 1
Number of PTP ports: 24
Priority1: 128
Priority2: 128
Clock Quality:
Class: 248
Accuracy: 0x30
OffsetScaledLogVariance: 0xffff
Offset From Master: 0
Mean Path Delay: 0
Steps Removed: 0
switch#
Displaying PTP Masters Information
To display the PTP clocks master and grandmaster identity and configuration, use the show ptp masters command.
switch# show ptp masters
Parent Clock:
Parent Clock Identity: 0x00:1c:73:ff:ff:00:72:40
Parent Port Number: 0
Parent IP Address: N/A
Observed Parent Offset (log variance): N/A
Observed Parent Clock Phase Change Rate: N/A
Grandmaster Clock:
Grandmaster Clock Identity: 0x00:1c:73:ff:ff:00:72:40
Grandmaster Clock Quality:
Class: 248
Accuracy: 0x30
OffsetScaledLogVariance: 0xffff
Priority1: 128
Priority2: 128
switch#
Displaying PTP Monitoring Information
To display the list of up to 100 recorded entries of offset from master, mean path delay and skew values, the current PTP mode, whether or not the feature is enabled, the number of entries displayed, and the configured thresholds for each metric, use the show ptp monitor command. Entries are sorted by the system time at which the value was calculated, starting with the most recent data at the top.
switch# show ptp monitor
PTP Mode: Boundary Clock
Ptp monitoring: enabled
Number of entries: 5
Offset from master threshold: 1500
Mean path delay threshold: not configured
Skew threshold: 0.5
Interface Time Offset from Mean Path Skew
Master (ns) Delay (ns)
---------- ----------------------------- ------------ ------------- -----------
Et8 21:23:12.901 UTC Feb 22 2018 71 5849 1.003159918
Et1 21:23:12.901 UTC Feb 22 2018 113 3672 1.004990621
Et2 21:23:12.901 UTC Feb 22 2018 706 7799 1.002744199
Et1 21:23:12.901 UTC Feb 22 2018 803 5861 1.003432049
Et1 21:23:12.901 UTC Feb 22 2018 610 3415 0.998974658
Displaying PTP Source IP
To display PTP IP source information, use the show ptp source ip command.
switch# show ptp source ip
PTP source IP: 10.0.2.1
switch#