PTP
nv show bridge domain <domain-id> vlan <vid> ptp
显示指定桥域上特定 VLAN 接口的 PTP 配置和计数器。
命令语法
语法 | 描述 |
---|---|
<domain-id> | 桥接名称。 |
<vlan-id> | VLAN 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入。
示例
cumulus@switch:~$ nv show bridge domain br_default vlan 10 ptp
nv show interface <interface-id> counters ptp
显示指定接口的 PTP 统计信息。
在 Cumulus Linux 5.4 及更早版本中,此命令是 nv show interface <interface-id> ptp counters
命令语法
语法 | 描述 |
---|---|
<interface-id> | 接口名称。 |
版本历史
在 Cumulus Linux 5.5.0 中引入。
示例
cumulus@switch:~$ nv show interface swp1 counters ptp
operational applied
------ ----------- -------
enable on on
cumulus@leaf03:mgmt:~$ nv show interface swp1 counters ptp
Packet Type Received Transmitted
------------------- -------- -----------
Announce 0 663
Delay Request 0 0
Delay Response 0 0
Follow-up 0 1325
Management 0 0
Peer Delay Request 0 0
Peer Delay Response 0 0
Signaling 0 0
Sync 0 1325
nv show interface <interface-id> ptp
显示指定接口的 PTP 配置和计数器。
命令语法
语法 | 描述 |
---|---|
<interface-id> | 接口名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入。
示例
cumulus@switch:~$ nv show interface swp1 ptp
operational applied pending
------------------------ ----------- ------- ----------
enable on
acceptable-master off
delay-mechanism end-to-end
forced-master off
instance 1
mixed-multicast-unicast off
ttl 1
unicast-request-duration 300
shaper
enable off
timers
announce-interval 1
announce-timeout 3
delay-req-interval 0
sync-interval 0
nv show interface <interface-id> ptp shaper
显示指定 PTP 接口上的 PTP 整形器是开启还是关闭。
此命令仅适用于 NVIDIA Spectrum 1 交换机,用于速度低于 100G 的启用 PTP 的端口。
命令语法
语法 | 描述 |
---|---|
<interface-id> | 接口名称。 |
版本历史
在 Cumulus Linux 5.4.0 中引入。
示例
cumulus@switch:~$ nv show interface swp1 ptp shaper
operational applied pending
------ ----------- ------- -------
enable off
nv show interface <interface-id> ptp timers
显示指定 PTP 接口的 PTP 定时器设置。
命令语法
语法 | 描述 |
---|---|
<interface-id> | 接口名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入。
示例
cumulus@switch:~$ nv show interface swp1 ptp timers
operational applied pending
------------------ ----------- ------- -------
announce-interval 1
announce-timeout 3
delay-req-interval 0
sync-interval 0
nv show service ptp
显示全局 PTP 配置。
版本历史
在 Cumulus Linux 5.0.0 中引入。
示例
cumulus@switch:~$ nv show service ptp
id Clock-id Enabled Domain Priority1 Priority2
-- ----------------------- ------- ------ --------- ---------
1 48:b0:2d:ff:fe:0a:67:46 on 28 128 128
nv show service ptp <instance-id>
显示指定 PTP 实例的配置。PTP 命令需要实例编号以进行管理。
命令语法
语法 | 描述 |
---|---|
<instance-id> | PTP 实例编号。 |
版本历史
在 Cumulus Linux 5.0.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1
cumulus@switch:~$ nv show service ptp 1
operational applied
--------------------------- ----------- ------------------
enable on on
current-profile default-itu-8275-2
domain 0
ip-dscp 46
logging-level info
priority1 128
priority2 128
[acceptable-master]
monitor
max-offset-threshold 50
max-timestamp-entries 100
max-violation-log-entries 4
max-violation-log-sets 2
min-offset-threshold -50
path-delay-threshold 200
violation-log-interval 1
[profile] abc
[profile] default-1588
[profile] default-itu-8275-1
[profile] default-itu-8275-2
[unicast-master] 1
[unicast-master] 2
[unicast-master] 3
[unicast-master] 4
[unicast-master]
...
nv show service ptp <instance-id> acceptable-master
显示指定 PTP 实例的可接受主时钟。
版本历史
在 Cumulus Linux 5.0.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1 acceptable-master
nv show service ptp <instance-id> acceptable-master <clock-id>
显示指定可接受主时钟的配置设置。
命令语法
语法 | 描述 |
---|---|
<instance-id> | PTP 实例编号。 |
<clock-id> | 时钟 ID。 |
版本历史
在 Cumulus Linux 5.0.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1 acceptable-master 24:8a:07:ff:fe:f4:16:06
operational applied
------------ ----------- -------
alt-priority 255 255
nv show service ptp <instance-id> counters
显示所有 PTP 计数器,例如接收和发送的 announce、sync、followup 以及延迟请求和响应数据包的数量。
命令语法
语法 | 描述 |
---|---|
<instance-id> | PTP 实例编号。 |
版本历史
在 Cumulus Linux 5.6.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1 counters
Packet Type Received Transmitted
--------------------- ------------ ------------
Port swp4
Announce 0 10370
Sync 0 20731
Follow-up 0 20731
Delay Request 0 0
Delay Response 0 0
Peer Delay Request 0 0
Peer Delay Response 0 0
Management 0 0
Signaling 0 0
nv show service ptp <instance-id> current
显示从指定 PTP 实例的 PTP 消息交换中学习到的本地状态。
命令语法
语法 | 描述 |
---|---|
<instance-id> | PTP 实例编号。 |
版本历史
在 Cumulus Linux 5.0.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1 current
operational applied
------------------ ----------- -------
mean-path-delay 0
offset-from-master 0
steps-removed 0
nv show service ptp <instance-id> clock-quality
显示指定 PTP 实例的时钟质量状态,例如精度、等级和偏移缩放的对数方差。
命令语法
语法 | 描述 |
---|---|
<instance-id> | PTP 实例编号。 |
版本历史
在 Cumulus Linux 5.0.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1 clock-quality
operational applied
-------------------------- ----------- -------
clock-accuracy 254
clock-class 248
offset-scaled-log-variance 65535
nv show service ptp <instance-id> force-version
显示 PTP 版本。Cumulus Linux 使用符合 PTP v2.1 标准的 linuxptp
软件包,并在配置中默认将主 PTP 版本设置为 2,次要 PTP 版本设置为 1。如果您的 PTP 配置在设置次要版本时无法正常工作,您可以将次要版本更改为 0。
命令语法
语法 | 描述 |
---|---|
<instance-id> | PTP 实例编号。 |
版本历史
在 Cumulus Linux 5.8.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1 force-version
applied
------------- -------
force-version 2.0
nv show service ptp <instance-id> ipv6-scope
显示 PTP IPv6 范围配置设置。
命令语法
语法 | 描述 |
---|---|
<instance-id> | PTP 实例编号。 |
版本历史
在 Cumulus Linux 5.9.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1 ipv6-scope
operational applied
---------- ----------- -------
ipv6-scope global
nv show service ptp <instance-id> monitor
显示指定 PTP 实例的 PTP 监视器配置,例如
- 主时钟和从时钟之间允许的最小和最大差异。
- PTP 数据包在主时钟和从时钟之间传输的平均时间。
- 允许的最大时间戳条目数。
- 允许的最大违规日志集数。
- 每个集允许的最大违规日志条目数。
- 违规日志间隔。
命令语法
语法 | 描述 |
---|---|
<instance-id> | PTP 实例编号。 |
版本历史
在 Cumulus Linux 5.0.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1 monitor
operational applied
------------------------- ----------- -------
max-offset-threshold 50 50
max-timestamp-entries 100 100
max-violation-log-entries 4 4
max-violation-log-sets 2 2
min-offset-threshold -50 -50
path-delay-threshold 200 200
violation-log-interval 1 1
nv show service ptp <instance-id> monitor timestamp-log
显示指定 PTP 实例的监视器时间戳日志。
命令语法
语法 | 描述 |
---|---|
<instance-id> | PTP 实例编号。 |
版本历史
在 Cumulus Linux 5.0.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1 monitor timestamp-log
nv show service ptp <instance-id> monitor violations
显示指定 PTP 实例的 PTP 违规。
命令语法
语法 | 描述 |
---|---|
<instance-id> | PTP 实例编号。 |
版本历史
在 Cumulus Linux 5.0.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1 monitor violations
cumulus@switch:~$ nv show service ptp 1 monitor violations
operational applied
---------------- --------------------------- -------
last-max-offset
last-min-offset 2023-04-24T15:22:01.312295Z
last-path-delay
max-offset-count 0
min-offset-count 2
path-delay-count 0
nv show service ptp <instance-id> monitor violations log
显示指定 PTP 实例的所有 PTP 违规日志。
命令语法
语法 | 描述 |
---|---|
<instance-id> | PTP 实例编号。 |
版本历史
在 Cumulus Linux 5.0.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1 monitor violations log
nv show service ptp <instance-id> monitor violations log acceptable-master
显示指定 PTP 实例的可接受主时钟违规日志。
命令语法
语法 | 描述 |
---|---|
<instance-id> | PTP 实例编号。 |
版本历史
在 Cumulus Linux 5.0.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1 monitor violations log acceptable-master
nv show service ptp <instance-id> monitor violations log forced-master
显示指定 PTP 实例的强制主时钟违规日志。
命令语法
语法 | 描述 |
---|---|
<instance-id> | PTP 实例编号。 |
版本历史
在 Cumulus Linux 5.0.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1 monitor violations log forced-master
nv show service ptp <instance-id> monitor violations log max-offset
显示指定 PTP 实例的主时钟和从时钟之间允许的最大差异的违规日志。
命令语法
语法 | 描述 |
---|---|
<instance-id> | PTP 实例编号。 |
版本历史
在 Cumulus Linux 5.0.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1 monitor violations log max-offset
nv show service ptp <instance-id> monitor violations log min-offset
显示指定 PTP 实例的主时钟和从时钟之间允许的最小差异的违规日志。
命令语法
语法 | 描述 |
---|---|
<instance-id> | PTP 实例编号。 |
版本历史
在 Cumulus Linux 5.0.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1 monitor violations log min-offset
nv show service ptp <instance-id> monitor violations log path-delay
显示指定 PTP 实例的 PTP 数据包在主时钟和从时钟之间传输的平均时间的违规日志。
命令语法
语法 | 描述 |
---|---|
<instance-id> | PTP 实例编号。 |
版本历史
在 Cumulus Linux 5.0.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1 monitor violations log path-delay
nv show service ptp <instance-id> parent
显示全局 PTP 父信息。
命令语法
语法 | 描述 |
---|---|
<instance-id> | PTP 实例编号。 |
版本历史
在 Cumulus Linux 5.0.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1 parent
nv show service ptp <instance-id> parent grandmaster-clock-quality
显示 PTP 父级的特级主时钟质量。
命令语法
语法 | 描述 |
---|---|
<instance-id> | PTP 实例编号。 |
版本历史
在 Cumulus Linux 5.0.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1 parent grandmaster-clock-quality
operational applied
-------------------------- ----------- -------
clock-accuracy 254
clock-class 248
offset-scaled-log-variance 65535
nv show service ptp <instance-id> profile
显示为指定 PTP 实例配置的预定义和自定义 PTP 配置文件。预定义配置文件是一组标准化的配置和规则,旨在满足特定应用程序的需求。您可以基于预定义配置文件创建自定义配置文件。配置文件定义了必需、允许和限制的 PTP 选项、网络限制和性能要求。
命令语法
语法 | 描述 |
---|---|
<instance-id> | PTP 实例编号。 |
版本历史
在 Cumulus Linux 5.2.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1 profile
Profile Name Type Domain Transport Delay Mechanism
------------------ ------------ ------ --------- ---------------
default-1588 ieee-1588 0 ipv4 end-to-end
default-itu-8275-1 itu-g-8275-1 24 802.3 end-to-end
default-itu-8275-2 itu-g-8275-2 44 ipv4 end-to-end
nv show service ptp <instance-id> profile <profile-id>
显示特定 PTP 配置文件的配置设置。
命令语法
语法 | 描述 |
---|---|
<instance-id> | PTP 实例编号。 |
<profile-id> | PTP 配置文件名称。 |
版本历史
在 Cumulus Linux 5.2.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1 profile CUSTOM1
operational applied
------------------ ------------ ------------
announce-interval -3 -3
announce-timeout 3 3
delay-mechanism end-to-end end-to-end
delay-req-interval -4 -4
domain 28 28
local-priority 128 128
priority1 128 128
priority2 128 128
profile-type itu-g-8275-1 itu-g-8275-1
sync-interval -4 -4
transport 802.3 802.3
nv show service ptp <instance-id> status
显示 PTP 状态。
命令语法
语法 | 描述 |
---|---|
<instance-id> | PTP 实例编号。 |
版本历史
在 Cumulus Linux 5.5.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1 status
Port Mode State Ustate Server
----- ----- ------- ------------------------------- -------
swp9 Ucast SLAVE Sync and Delay Granted (H_SYDY) 9.9.9.2
swp10 Ucast PASSIVE Initial State (WAIT)
swp11 Ucast PASSIVE Initial State (WAIT)
swp12 Ucast PASSIVE Initial State (WAIT)
nv show service ptp <instance-id> time-properties
显示指定 PTP 实例的时间属性,例如当前的 UTC 偏移量和 PTP 时间刻度。
命令语法
语法 | 描述 |
---|---|
<instance-id> | PTP 实例编号。 |
版本历史
在 Cumulus Linux 5.0.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1 time-properties
operational applied
------------------------ ----------- -------
current-utc-offset 37
current-utc-offset-valid off
freq-traceable off
leap59 off
leap61 off
ptp-time-scale off
time-traceable off
nv show service ptp <instance-id> unicast-master
显示交换机上的 PTP 单播主时钟表配置。
命令语法
语法 | 描述 |
---|---|
<instance-id> | PTP 实例编号。 |
版本历史
在 Cumulus Linux 5.2.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1 unicast-master
Table-id Address Peer-address Query-interval
-------- ---------- ------------ --------------
1 10.10.10.1 4
nv show service ptp <instance-id> unicast-master <table-id>
显示有关交换机上特定 PTP 单播主时钟表的信息。
命令语法
语法 | 描述 |
---|---|
<instance-id> | PTP 实例编号。 |
<table-id> | 单播主时钟表 ID。 |
版本历史
在 Cumulus Linux 5.2.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1 unicast-master 1
operational applied
-------------- ----------- ----------
query-interval 4 4
[address] 10.10.10.1 10.10.10.1
nv show service ptp <instance-id> unicast-master <table-id> address
显示指定 PTP 单播主时钟表的 IP 地址。
命令语法
语法 | 描述 |
---|---|
<instance-id> | PTP 实例编号。 |
<table-id> | 单播主时钟表 ID。 |
版本历史
在 Cumulus Linux 5.2.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1 unicast-master 1 address
IP or MAC Address
-----------------
10.10.10.1
nv show service ptp <instance-id> unicast-master <table-id> address <ip-mac-address-id>
显示有关指定 PTP 单播主时钟表的特定 IP 或 MAC 地址的信息。
命令语法
语法 | 描述 |
---|---|
<instance-id> | PTP 实例编号。 |
<table-id> | 单播主时钟表 ID。 |
<ip-mac-address-id> | IP 或 MAC 地址。 |
版本历史
在 Cumulus Linux 5.2.0 中引入。
示例
cumulus@switch:~$ nv show service ptp 1 unicast-master 1 address 10.10.10.1
nv show vrf <vrf-id> ptp
显示指定 VRF 的 PTP 配置。
命令语法
语法 | 描述 |
---|---|
<vrf-id> | VRF 名称。 |
版本历史
在 Cumulus Linux 5.0.0 中引入。
示例
cumulus@switch:~$ nv show vrf default ptp
operational applied
------ ----------- -------
enable on on