beautypg.com

Specifying the system time source as ptp, Enabling ptp on a port, Displaying and maintaining ptp – H3C Technologies H3C S6300 Series Switches User Manual

Page 79: Required.)

background image

66

Specifying the system time source as PTP

Before the configuration, make sure you use the clock protocol command to specify the time protocol as

PTP. For more information about the clock protocol command, see Fundamentals Command Reference.
To specify the system time source as PTP:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Specify the system time source
as PTP.

clock protocol ptp

By default, the system time source
is NTP.

Enabling PTP on a port

A port enabled with PTP becomes a PTP port.
An OC can have only one PTP port.
To enable PTP on a port:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter Layer 2 Ethernet
interface view.

interface interface-type
interface-number

N/A

3.

Enabling PTP on the port.

ptp enable

By default, PPP is disabled on a
port.

Displaying and maintaining PTP

Execute display commands in any view and the reset command in user view.

Task Command

Display PTP clock information.

display ptp clock

Display the delay correction history.

display ptp corrections

Display information about foreign master nodes.

display ptp foreign-masters-record [ interface
interface-type
interface-number ]

Display PTP information on an interface.

display ptp interface [ interface-type interface-number
| brief ]

Display PTP statistics.

display ptp [ brief | interface interface-type
interface-number ] [ | { begin | exclude | include }

regular-expression ]

Display PTP clock time properties.

display ptp time-property

Clear PTP statistics.

reset ptp statistics [ interface interface-type
interface-number
]