Configuring PTP Monitoring

PTP Monitoring records PTP information, including the offset from the master, mean path delay, and skew values, which you view using a show command. PTP Syslog messages generate the metrics with threshold values configured on the switch when enabled. EOS enables PTP Monitoring by default.

Enabling and Disabling PTP Monitoring

Use the ptp monitor command to enable PTP monitoring on the device. The no form of the command disables PTP monitoring and clears all of the recorded PTP data.

Example

This command disables PTP monitoring and clears all recorded PTP data from the switch.
switch(config)# no ptp monitor

Configuring the Offset-from-master Threshold

The offset is the difference in nanoseconds between master and slave time. Use the ptp monitor threshold offset-from-master command to specify the offset-from-master threshold in nanoseconds. EOS generates a Syslog message if the most recently calculated time offset from the PTP master occurs outside the configured range. The maximum offset threshold is one second. The no form of the command clears the threshold value and prevents further Syslog messages from generating for this parameter.

Example

This command sets an offset-from-master threshold value of 500 nanoseconds.
switch(config)# ptp monitor threshold offset-from-master 500 

Configuring the Mean-path-delay Threshold

Mean path delay is the mean time in nanoseconds PTP packets take to travel between master and slave. Use the ptp monitor threshold mean-path-delay command to specify the mean-path-delay threshold in nanoseconds. EOS generates a Syslog message if the value of the most recently calculated mean path delay becomes greater than or equal to this threshold. The maximum mean-path-delay threshold is one second. The no form of the command clears the threshold value and prevents further Syslog messages from generating for this parameter.
Note: Mean path delay is always non-negative.

Example

This command sets a mean-path-delay threshold value of 2000 nanoseconds.
switch(config)# ptp monitor threshold mean-path-delay 2000

Configuring the Skew Threshold

PTP skew is the clock frequency difference between master and slave. Use the ptp monitor threshold skew command to configure the value of the skew-threshold percentage. A Syslog message generates if the value of the most recently calculated skew does not fall within the range (1/(1+<threshold>), 1*(1+<threshold>)). Skew threshold percentage represents a double precision (16 digit) real number ranging from 0 (0%) to 10 (1000%). The no form of the command clears the threshold value and prevents further Syslog messages from generating for this parameter.

Example

This command sets a skew threshold value of 5 (500%).
switch(config)# ptp monitor threshold skew 5