Use ptp on GigaVUE‑TA200 Devices
Use the ptp command to configure the PTP domain, clock mode, and priority on the GigaVUE‑TA200 devices. Based on these PTP parameters, the primary source will be selected from the clocks in a network.
Refer to the “Timestamps” chapter in the GigaVUE Fabric Management Guide for more information about how to use PTP to timestamp packets.
Use the following syntax to configure PTP globally for a device:
ptp
alias <string>
domain <value>// Range is 0, 24–43
mode <ordinary | boundary>
local-priority <value> // Range is 1—255
priority2 <value> // Range is 0—255
Use the following syntax to configure PTP globally for a cluster:
ptp
box-id <box-id/all> alias <string>
domain <value>// Range is 0, 24–43
mode <ordinary | boundary>
local-priority <value> // Range is 1—255
priority2 <value> // Range is 0—255
The following table describes the arguments for the ptp command:
Argument |
Description |
|||||||||
alias <string> |
Specifies the name of the PTP for a device. For example: (config) # ptp alias <string> |
|||||||||
box-id <box-id/all> alias <string> |
Specifies the name of the PTP for all devices in a cluster. Ensure that you provide a unique name for each device in the cluster. For example: (config) # ptp box-id <box-id/all> alias <string> |
|||||||||
domain <value> |
Specifies a PTP domain number that will be used for the clock. The valid range includes 0 and the numbers between 24 and 43.
For example: (config ptp alias <string>) # domain 24 You can also choose to configure two attributes in a single line. For example, you can configure the PTP alias and domain in a single line as follows: (config) # ptp alias <string> domain 24 |
|||||||||
mode <ordinary | boundary> |
Configures the mode for PTP, ordinary or boundary. For example: (config ptp alias <string>) # mode ordinary |
|||||||||
local-priority <value> |
Specifies a priority value that will be used to determine the PTP source when the BMC algorithm chooses more than one clock as the source. This value overrides the default criteria for the BMC selection. The clock with the lower priority value will be selected. For example, on a specific device, the local priority of a port is compared with the local priority of the clock. Based on the following criteria, the source is determined:
The valid range is between 1 and 255. The default is 128. For example: (config ptp alias <string>) # local-priority 128 |
|||||||||
priority2 <value> |
Specifies a priority value that will be used to determine the primary source in a network. For example, if there are two clocks in a network that match the default criteria, the clock that has the lower priority value will be selected as the primary source. The valid range is between 0 and 255. The default is 128. For example: (config ptp alias <string>) # priority2 128 |
Related Commands
The following table summarizes other commands related to the ptp command:
Task |
Command |
Displays PTP runtime state. |
(config) # show ptp alias <string> |
Displays PTP runtime state for a cluster. |
(config) # show ptp box-id <box-id/all> alias <string> |
Displays PTP configuration. |
(config) # show ptp alias <string> configured |
Displays PTP configurations in table format. |
(config) # show ptp alias <string> brief |
Displays the PTP clock details. |
(config) # show ptp alias <string> clock |
Displays the PTP’s foreign source record for a standalone node and a cluster. |
(config) # show ptp port-list <x/y/z> foreign-source |
Displays the PTP’s parent clock information. |
(config) # show ptp alias <string> parent |
Displays the PTP statistical counters. |
(config) # show ptp alias <string> counters |
Displays PTP configurations for a cluster. |
(config) # show ptp box-id <box-id/all> alias <string> configured |
Displays PTP configurations for a cluster in table format. |
(config) # show ptp box-id <box-id/all> alias <string> brief |
Displays the PTP clock details for a cluster. |
(config) # show ptp box-id <box-id/all> alias <string> clock |
Displays the PTP’s parent clock information for a cluster. |
(config) # show ptp box-id <box-id/all> alias <string> parent |
Displays the PTP statistical counters for a cluster. |
(config) # show ptp box-id <box-id/all> alias <string> counters |
Displays the list of ports on which PTP is enabled. |
(config) # show ptp port-list <port-list> |
Displays the PTP statistical counters for a list of PTP-enabled ports. |
(config) # show ptp port-list <port-list> counter |
Clears the statistical counters for the specified PTP. |
(config) # clear ptp alias <string> counters |
Clears the PTP statistical counters for the specified cluster. |
(config) # clear ptp box-id <box-id/all> alias <string> counters |
Clears the PTP statistical counters for a list of PTP-enabled ports. |
(config) # clear ptp port-list <port-list> counter |