DOKK / manpages / debian 12 / ptpd / ptpd.conf.5.en
ptpd2.conf(5) PTPd config file ptpd2.conf(5)

ptpd2.conf - Precision Time Protocol daemon config file

Settings in the PTPd configuration file are grouped into sections and take the form of section:key="value" variables. The configuration file can either be formatted that way (preferred) or in .ini file style where a series of key="value" variables is grouped into sections using [section] headers. Every setting listed here can also be specified as a command line parameter (--section:key=value). Quotation marks are optional. NOTE: the configuration file must end with a newline.

Only a small number of configuration file settings (SNMP, lock file configuration) requires a restart of the PTPd process to take effect. All other settings can be changed while ptpd is running - configuration file is reloaded and checked for changes when PTPd receives the SIGHUP signal. When reloading configuration, PTPd will always attempt to test settings before applying them and once running, will never exit as a result of configuration errors. If it does exit during config refresh, this is most likely a bug.

Any setting passed as a command line parameter will always take priority over the configuration file, so once ptpd is running, those settings cannot be changed - a warning will be logged on every attempt to change those settings using the configuration file.

PTP protocol specific configuration
Clock related settings
Clock control PI servo configuration
Global configuration - logging, etc.
NTP control configuration

Network interface to use - eth0, igb0 etc. (required).
[none]

Backup network interface to use - eth0, igb0 etc. When no GM available, slave will keep alternating between primary and secondary until a GM is found.
[none]

none slaveonly masteronly masterslave
PTP engine preset:
Defaults, no clock class restrictions
Slave only (clock class 255 only)
Master, passive when not best master (clock class 0..127)
Full IEEE 1588 implementation: Master, slave when not best master (clock class 128..254)
slaveonly
Presets affect the following settings: ptpengine:slave_only, clock_no_adjust and ptpengine:clock_class (range and default value). To see all preset settings, run ptpd2 -H (--long-help)

ipv4 ethernet
Transport type for PTP packets. NOTE: Ethernet transport requires building with libpcap and is not supported on Solaris as of 2.3.1, and cannot be enabled on those systems unless ptpd is compiled with --enable-experimental-options.
ipv4

Enable IEEE 802.1AS / AVB compatibility (transportSpecific field in PTP message headers). Requires Ethernet transport as this is the only mapping used by 802.1AS that PTP supports
N

multicast unicast hybrid
IP transmission mode (requires IP transport):
uses multicast for all messages
uses multicast for sync and announce, and unicast for delay request and response
uses unicast for all transmission. When unicast mode is selected, destination IP(s) (ptpengine:unicast_destinations) must be configured depending on unicast negotiation setting (ptpengine:unicast_negotiation) and master or slave role (see: ptpengine:unicast_destinations)
multicast

Enable unicast negotiation support using signaling messages - as used by the Telecom profile (ITU-T G.8265.1).
N

Duration (seconds) for which the transmission of unicast messages is granted by a master, or requested by a slave when unicast negotiation is used (ptpengine:unicast_negotiation). When using PTPd with other PTP implementations, PTPd will never refuse to grant a message based on the requested duration: it will grant for 30 seconds if requested for any less than 30 seconds, and will grant for 7 days (604800) if requested for any longer.
300

Disable Best Master Clock Algorithm for unicast masters. Only effective for masteronly preset - all Announce messages will be ignored and the cock will transition directly into MASTER state and remain an active master. This behaviour is required for Telecom profile operation.
N

Use libpcap for sending and receiving traffic (automatically enabled in Ethernet mode). Requires building with libpcap - builds made with --disable-pcap cannot use this feature, and as of 2.3.1, Solaris systems will not attempt to use libpcap unless compiled with --enable-experimental-options
N

E2E P2P DELAY_DISABLED
Delay detection mode used - use DELAY_DISABLED for syntonisation only (no synchronisation).
E2E

Usability extension: if enabled, a slave-only clock will accept masters from any domain, while preferring the configured domain, and preferring lower domain number. This option should be used for slave-only clocks and should not be used with unicast negotiation. NOTE: this behaviour is not part of the standard.
N

PTP port number (part of PTP Port Identity - not UDP port). For ordinary clocks (single port), the default should be used, but when running multiple instances to simulate a boundary clock, The port number can be changed.
1

Slave only mode (sets clock class to 255, overriding value from preset).
Y

Specify latency correction (nanoseconds) for incoming packets.
0

Specify latency correction (nanoseconds) for outgoing packets.
0

Apply an arbitrary shift (nanoseconds) to offset from master when in slave state. Value can be positive or negative - useful for correcting for of antenna latencies, delay assymetry and IP stack latencies. This will not be visible in the offset from master value - only in the resulting clock correction.
0

Compatibility option: In slave state, always respect UTC offset announced by best master, even if the the
currrentUtcOffsetValid flag is announced FALSE. NOTE: this behaviour is not part of the standard.
N

Compatibility extension to BMC algorithm: when enabled, BMC for both master and save clocks will prefer masters announcing currrentUtcOffsetValid as TRUE.
NOTE: this behaviour is not part of the standard.
N

Compatibility option: when enabled, ptpd2 will ignore Announce messages from masters announcing currentUtcOffsetValid as FALSE. NOTE: this behaviour is not part of the standard.
N

PTP announce message interval in master state. When using unicast negotiation (ptpengine:unicast_negotiation), for slaves this is the initial (minimum) interval requested and for masters this is the minimum interval granted. (expressed as log 2 i.e. -1=0.5s, 0=1s, 1=2s etc.)
1

When using unicast negtiation (ptpengine:unicast_negotiation), this is the maximum announce interval granted by a master, and the maximum interval a slave will attempt to request. (expressed as log 2 i.e. -1=0.5s, 0=1s, 1=2s etc.)
5

PTP announce receipt timeout announced in master state.
6

PTP announce receipt timeout grace period in slave state: when announce receipt timeout occurs, disqualify current best GM,
then wait n times announce receipt timeout before resetting. Allows for a seamless GM failover when standby GMs are slow
to react. When set to 0, this option is not used.
0

PTP sync message interval in master state. When using unicast negotiation (ptpengine:unicast_negotiation), for slaves this is the initial (minimum) interval requested and for masters this is the minimum interval granted. (expressed as log 2 i.e. -1=0.5s, 0=1s, 1=2s etc.)
0

When using unicast negtiation (ptpengine:unicast_negotiation), this is the maximum sync interval granted by a master, and the maximum interval a slave will attempt to request. (expressed as log 2 i.e. -1=0.5s, 0=1s, 1=2s etc.)
5

Override the Delay Request interval provided by best master.
N

Automatically override the Delay Request interval (with ptpengine:log_delayreq_interval) if the received value is 127 (0X7F), such as in unicast messages, unless using unicast negotiation (ptpengine:unicast_negotiation)
Y

Delay request interval used before receiving first delay response (expressed as log 2 i.e. -1=0.5s, 0=1s, 1=2s etc.)
0

Minimum delay request interval announced when in master state, in slave state overrides the master interval.
(expressed as log 2 i.e. -1=0.5s, 0=1s, 1=2s etc.). When using unicast negotiation (ptpengine:unicast_negotiation), for slaves this is the initial (minimum) interval requested and for masters this is the minimum interval granted.
0

When using unicast negtiation (ptpengine:unicast_negotiation), this is the maximum delay request interval granted by a master, and the maximum interval a slave will attempt to request.
(expressed as log 2 i.e. -1=0.5s, 0=1s, 1=2s etc.).
5

Minimum peer delay request message interval in peer to peer delay mode (expressed as log 2 i.e. -1=0.5s, 0=1s, 1=2s etc.). When using unicast negotiation (ptpengine:unicast_negotiation), this is the initial (minimum) interval requested by a node from its peer and this is the minimum interval granted for a peer.
1

When using unicast negtiation (ptpengine:unicast_negotiation), this is the maximum peer delay request interval granted by a node, and the maximum interval a node will attempt to request from its peer.
(expressed as log 2 i.e. -1=0.5s, 0=1s, 1=2s etc.).
5

Foreign master record size (Maximum number of foreign masters).
5

Specify Allan variance announced in master state.
28768

ACC_25NS ACC_100NS ACC_250NS ACC_1US ACC_2.5US ACC_10US ACC_25US ACC_100US ACC_250US ACC_1MS ACC_2.5MS ACC_10MS ACC_25MS ACC_100MS ACC_250MS ACC_1S ACC_10S ACC_10SPLUS ACC_UNKNOWN
Clock accuracy range announced in master state.
ACC_UNKNOWN

Underlying time source UTC offset announced in master state.
0

Underlying time source UTC offset validity announced in master state.
N

Underlying time source time traceability announced in master state.
N

Underlying time source frequency traceability announced in master state.
N

PTP ARB
Time scale announced in master state (with ARB, UTC properties are ignored by slaves). When clock class is set to 13 (application specific), this value is ignored and ARB is used.
ARB

ATOMIC_CLOCK GPS TERRESTRIAL_RADIO PTP NTP HAND_SET OTHER INTERNAL_OSCILLATOR
Time source announced in master state.
INTERNAL_OSCILLATOR

Clock class - announced in master state. Always 255 for slave-only. Minimum, maximum and default values are controlled by presets. If set to 13 (application specific time source), announced time scale is always set to ARB. This setting controls the states a PTP port can be in. If below 128, port will only be in MASTER or PASSIVE states (master only). If above 127, port will be in MASTER or SLAVE states.
255

Priority 1 announced in master state,used for Best Master Clock selection.
128

Priority 2 announced in master state, used for Best Master Clock selection.
128

Number of consecutive protocol resets to LISTENING before full network reset.
5

An IPv4 address or list of IPv4 addresses to be used as unicast destinations. When unicast negotiation (ptpengine:unicast_negotiation) is enabled, setting this is mandatory for slaves as they must be aware of which GMs to request messages from. When unicast negotiation is disabled, setting this is mandatory for GMs, as they must deliver messages to a pre-configured group of slaves.
[none]

Specify PTP domain number for each configured unicast destination (ptpengine:unicast_destinations). This is only used by slave-only clocks using unicast destinations to allow for each master to be in a separate domain, such as with Telecom Profile. The number of entries should match the number of unicast destinations, otherwise unconfigured domains or domains set to 0 are set to domain configured in ptpengine:domain. The format is a comma, tab or space-separated list of 8-bit unsigned integers (0 .. 255).
[none]

Specify a local preference for each configured unicast destination (ptpengine:unicast_destinations). This is only used by slave-only clocks using unicast destinations to allow for each master's BMC selection to be influenced locally by the slave, such as with Telecom Profile. The number of entries should match the number of unicast destinations, otherwise unconfigured preference is set to 0 (highest). The format is a comma, tab or space-separated list of 8-bit unsigned integers (0 .. 255).
[none]

When using IP unicast mode (ptpengine:ip_mode=unicast) and Peer to Peer delay mechanism (ptpengine:delay_mechanism=P2P), a peer unicast destination must be configured to request the peer delay from. Format is a single unicast IPv4 address.
[none]

Enable handling of PTP management messages. Only GET messages are processed by default. See ptpengine:management_set_enable.
Y

Accept SET and COMMAND management messages.
N

Send explicit IGMP joins between engine resets and periodically in master state.
Y

Periodic IGMP join interval (seconds) in master state when running IPv4 multicast: when set below 10 or when ptpengine:igmp_refresh is disabled, this setting has no effect.
60

Multicast time to live for multicast PTP packets (ignored and set to 1 for peer to peer messages).
64

DiffServ CodepPoint for packet prioritisation (decimal). When set to zero, this option is not used. Use 46 for Expedited Forwarding (0x2e).
0

Enable statistical filter for Sync messages
N

none mean min max absmin absmax median
Type of filter used for Sync message filtering:
no filtering - pass-through
mean (average) - smooth results but influenced by outliers
minimal value - useful for high packet delay variation ("lucky packets")
maximal value - useful for testing worst case scenarios
absolute minimum - value closest to zero. Also useful for test purposes.
absolute maximun value farthest away from zero
median (middle value) - more robust than mean, not influenced by outliers
min

Number of samples used for the Sync statistical filter
4

sliding interval
Sampling window behaviour for the Sync statistical filter:
sliding window - a value is output every time the filter runs, which can result in duplicates
only output a value every n-th sample (full window) - independent sampling periods
sliding

Enable statistical filter for Delay messages
N

none mean min max absmin absmax median
Type of filter used for Delay message filtering:
no filtering - pass-through
mean (average) - smooth results but influenced by outliers
minimal value - useful for high packet delay variation ("lucky packets")
maximal value - useful for testing worst case scenarios
absolute minimum - value closest to zero. Also useful for test purposes.
absolute maximun value farthest away from zero
median (middle value) - more robust than mean, not influenced by outliers
min

Number of samples used for the Delay statistical filter
4

sliding interval
Sampling window behaviour for the Delay statistical filter:
sliding window - a value is output every time the filter runs, which can result in duplicates
only output a value every n-th sample (full window) - independent sampling periods
sliding

Enable outlier filter for the Delay Response component in slave state
N

discard filter
Delay Response outlier filter action. If set to 'filter', outliers are replaced with moving average.
discard

Number of samples in the Delay Response outlier filter buffer
20

Delay Response outlier filter threshold: multiplier for Peirce's maximum standard deviation. When set below 1.0, filter is tighter, when set above 1.0, filter is looser than standard Peirce's test.
1.000000

Always run the Delay Response outlier filter, even if clock is being slewed at maximum rate
N

Enable automatic threshold control for Delay Response outlier filter.
Y

Delay Response outlier filter autotune low watermark - minimum percentage of discarded samples in the update period before filter is tightened by the autotune step value
20

Delay Response outlier filter autotune high watermark - maximum percentage of discarded samples in the update period before filter is loosened by the autotune step value
95

The value the Delay Response outlier filter threshold is increased or decreased by when auto-tuning
0.100000

Minimum Delay Response filter threshold value used when auto-tuning
0.100000

Maximum Delay Response filter threshold value used when auto-tuning
5.000000

Delay Response outlier weight: if an outlier is detected, determines the amount of its deviation from mean that is used to build the standard deviation statistics and influence further outlier detection. When set to 1.0, the outlier is used as is.
1.000000

Enable Delay Response filter step detection (delaySM) to block when certain level exceeded
N

Delay step detection threshold. Step detection is performed only when delaySM is below this threshold (nanoseconds)
1000000

Delay step level. When step detection enabled and operational, delaySM above this level (nanoseconds) is considered a clock step and updates are paused
500000

Initial credit (number of samples) the Delay step detection filter can block for. When credit is exhausted, filter stops blocking. Credit is gradually restored (see ptpengine:delay_outlier_filter_stepdetect_credit_increment)
200

Amount of credit for the Delay step detection filter restored every full sample window
10

Enable outlier filter for the Sync component in slave state.
N

discard filter
Sync outlier filter action. If set to 'filter', outliers are replaced with moving average.
discard

Number of samples in the Sync outlier filter buffer.
20

Sync outlier filter threshold: multiplier for the Peirce's maximum standard deviation. When set below 1.0, filter is tighter, when set above 1.0, filter is looser than standard Peirce's test.
1.000000

Always run the Sync outlier filter, even if clock is being slewed at maximum rate
N

Enable automatic threshold control for Sync outlier filter.
Y

Sync outlier filter autotune low watermark - minimum percentage of discarded samples in the update period before filter is tightened by the autotune step value
20

Sync outlier filter autotune high watermark - maximum percentage of discarded samples in the update period before filter is loosened by the autotune step value
95

The value the Sync outlier filter threshold is increased or decreased by when auto-tuning
0.100000

Minimum Sync filter threshold value used when auto-tuning
0.100000

Maximum Sync filter threshold value used when auto-tuning
5.000000

Sync outlier weight: if an outlier is detected, this value determines the
amount of its deviation from mean that is used to build the standard
deviation statistics and influence further outlier detection.
When set to 1.0, the outlier is used as is
1.000000

Enable Sync filter step detection (delayMS) to block when certain level exceeded
N

Sync step detection threshold. Step detection is performed only when delayMS is below this threshold (nanoseconds)
1000000

Sync step level. When step detection enabled and operational, delayMS above this level (nanoseconds) is considered a clock step and updates are paused
500000

Initial credit (number of samples) the Sync step detection filter can block for. When credit is exhausted, filter stops blocking. Credit is gradually restored (see ptpengine:sync_outlier_filter_stepdetect_credit_increment)
200

Amount of credit for the Sync step detection filter restored every full sample window
10

When enabled, Sync messages will only be accepted if sequence ID is increasing. note: This can cause the slave to temporarily lock up if GM restarts before announce timeout, so this is limited to 50 consecutive sequence errors. Alternatively, ptpengine:clock_update_timeout can be used to reset the slave beforehand.
N

If set to non-zero, time (seconds) before slave is reset back into PTP_LISTENING, if thetre were no clock updates. This is useful for situations where slave is in SLAVE state (receiving Announce) but is not receiving or not accepting Sync messages.
0

Delay between moving to slave state and enabling clock updates (seconds). This allows mean path delay to stabilise before starting clock updates. Activated when going into slave state and during slave's GM failover. 0 - not used.
0

PTP idle timeout (seconds): if PTPd is in SLAVE state and there have been no clock updates for this amount of time, PTPd releases clock control.
0

Enable panic mode: when offset from master is above 1 second, stop updating the clock for a period of time and then step the clock if offset remains above 1 second.
N

Duration (minutes) of the panic mode period (no clock updates) when offset above 1 second detected.
2

When entering panic mode, release clock control while panic mode lasts. If not set, PTP will hold clock control during panic mode. If set together with ntpengine:* configured, this will fail over to NTP.
N

Do not exit panic mode until offset drops below this value (nanoseconds). 0 = not used.
0

Use PTPd's process ID as the middle part of the PTP clock ID - useful for running multiple instances.
N

Fail over to NTP when PTP time sync not available - requires ntpengine:enabled, but does not require the rest of NTP configuration: will warn instead of failing over if cannot control ntpd.
N

NTP failover timeout in seconds: time between PTP slave going into LISTENING state, and failing over to NTP. 0 = fail over immediately. This setting controls the time provider election hold time.
60

Prefer NTP time synchronisation. Only use PTP when NTP not available. Could be used when NTP runs with a local GPS receiver or another hardware reference.
N

Deprecated as of 2.3.1, but still supported: see ptppengine:panic_mode_release_clock.
N

Clear counters after dumping all counter values on SIGUSR2.
N

Permit access control list for timing and signaling messages. Format is a series of network prefixes and/or IP addresses separated by commas, spaces, tabs or semicolons. Accepted format is CIDR notation (a.b.c.d/mm), single IP address (a.b.c.d), or full network/mask (a.b.c.d/m.m.m.m). Shortcuts can be used: 172.16/12 is expanded to 172.16.0.0/12; 192.168/255.255 is expanded to 192.168.0.0/255.255.0.0, etc. The match is performed on the source IP address of the incoming messages. IP access lists are only supported when using the IP transport.
[none]

Deny access control list for timing and signaling messages. Format is a series of network prefixes and/or IP addresses separated by commas, spaces, tabs or semicolons. Accepted format is CIDR notation (a.b.c.d/mm), single IP address (a.b.c.d), or full network/mask (a.b.c.d/m.m.m.m). Shortcuts can be used: 172.16/12 is expanded to 172.16.0.0/12; 192.168/255.255 is expanded to 192.168.0.0/255.255.0.0, etc. The match is performed on the source IP address of the incoming messages. IP access lists are only supported when using the IP transport.
[none]

Permit access control list for management messages. Format is a series of network prefixes and/or IP addresses separated by commas, spaces, tabs or semicolons. Accepted format is CIDR notation (a.b.c.d/mm), single IP address (a.b.c.d), or full network/mask (a.b.c.d/m.m.m.m). Shortcuts can be used: 172.16/12 is expanded to 172.16.0.0/12; 192.168/255.255 is expanded to 192.168.0.0/255.255.0.0, etc. The match is performed on the source IP address of the incoming messages. IP access lists are only supported when using the IP transport.
[none]

Deny access control list for management messages. Format is a series of network prefixes and/or IP addresses separated by commas, spaces, tabs or semicolons. Accepted format is CIDR notation (a.b.c.d/mm), single IP address (a.b.c.d), or full network/mask (a.b.c.d/m.m.m.m). Shortcuts can be used: 172.16/12 is expanded to 172.16.0.0/12; 192.168/255.255 is expanded to 192.168.0.0/255.255.0.0, etc. The match is performed on the source IP address of the incoming messages. IP access lists are only supported when using the IP transport.
[none]

permit-deny deny-permit
Order in which permit and deny access lists are evaluated for timing and signaling messages, the evaluation process is the same as for Apache httpd. See: http://httpd.apache.org/docs/current/mod/mod_access_compat.html#order
deny-permit

permit-deny deny-permit
Order in which permit and deny access lists are evaluated for management messages, the evaluation process is the same as for Apache httpd. See: http://httpd.apache.org/docs/current/mod/mod_access_compat.html#order
deny-permit

Do not adjust the clock.
N

Do not reset the clock - only slew.
N

Force clock step on first sync after startup regardless of offset and clock:no_reset
N

Step clock on startup only if offset >= 1 second, ignoring panic mode and clock:no_reset
N

Attempt setting the RTC when stepping clock (Linux only - FreeBSD does this for us. WARNING: this will always set the RTC to OS clock time, regardless of time zones, so this assumes that RTC runs in UTC or otherwise in the same timescale as PTP. True at least on most single-boot x86 Linux systems.
N

reset preserve file
Observed drift handling method between servo restarts:
set to zero (not recommended)
use kernel value
load/save to drift file on startup/shutdown, use kernel value inbetween. To specify drift file, use the clock:drift_file setting.
preserve

Specify drift file
/etc/ptpd2_kernelclock.drift

Specify leap second file location (up to date version can be downloaded from: http://www.ietf.org/timezones/data/leap-seconds.list). When configured, PTP master will use data from this file to announce leap flags and UTC offset, overriding OS information, and PTP slave will use data from this file as well as information supplied by the GM. If configured, this file is always reloaded on configuration reload (SIGHUP), reloaded on clock step and reloaded after a leap second event to ensure the information is up to date. As of ptpd 2.3.1, the file is bundled with ptpd and is installed into (prefix)/share/ptpd/leap-seconds.list.ddMMMyyyy where ddMMMyyyy is the leap seconds file expiry date.
[none]

Time (seconds) before and after midnight that clock updates should be suspended for during a leap second event. The total duration of the pause is twice the configured duration. Clock updates are suspended when there is a leap second event pending and time to midnight is less than or equal to this value and resumed no earlier than this value after midnight. Clock updates are resumed in a controlled manner - after a control message, such as PTP announce. This ensures that the updated UTC offset is received before any further clock updates.
5

Time (seconds) before midnight that PTPd starts announcing the leap second if it's running as master. The IEEE 1588 standard suggests 12 hours notice and this is the default, but it may be changed to allow more flexibility.
43200

accept ignore step smear
Clock sync behaviour during leap second events:
Inform OS kernel about the leap second and let the kernel insert or delete the leap second
Do not inform the kernel - this ends with a +/-1-second offset which is then slewed back down
Do not inform the kernel and step the clock immediately after the leap second event
Gradually introduce an extra offset over a period of time before the leap second event, which accumulates to +/-1 second (see clock:leap_second_smear_period). Once the clock stabilises, this results in a clock frequency shift which is taken off after the event. Once the leap second event is over, the extra offset is also removed and time is back in line with master time.
accept

When clock:leap_second_handling is set to smear, this setting defines the period (in seconds) before the leap second event, over which the leap second offset is gradually added. Example: when set to 24 hours (86400), an extra +/-11.5 microseconds is added every second (11.5 ppm clock frequency offset).
86400

Maximum absolute frequency shift which can be applied to the clock servo when slewing the clock. Expressed in parts per million (1 ppm = shift of 1 us per second. Values above 512 will use the tick duration correction to allow even faster slewing. Default maximum is 512 without using tick.
500

Mean Path Delay filter stiffness.
6

Clock servo PI controller proportional component gain (kP).
0.100000

Clock servo PI controller integral component gain (kI).
0.001000

none constant measured
How servo update interval (delta t) is calculated:
servo not corrected for update interval (dt always 1),
constant value (target servo update rate) - sync interval for PTP,
servo measures how often it's updated and uses this interval.
constant

Maximum servo update interval (delta t) when using measured servo update interval (servo:dt_method = measured), specified as sync interval multiplier
5.000000

Enable clock synchronisation servo stability detection (based on standard deviation of the observed drift value) - drift will be saved to drift file / cached when considered stable, also clock stability status will be logged.
N

Specify the observed drift standard deviation threshold in parts per billion (ppb) - if stanard deviation is within the threshold, servo is considered stable.
5.000000

Specify for how many statistics update intervals the observed drift standard deviation has to stay within threshold to be considered stable.
3

Specify after how many minutes without stabilisation servo is considered unstable. Assists with logging servo stability information and allows one to preserve observed drift if servo cannot stabilise.
10

Do not accept master to slave delay (delayMS - from Sync message) or slave to master delay (delaySM - from Delay Response message) if greater than this value (nanoseconds). 0 = not used.
0

Maximum number of consecutive rejected delay measurements exceeding the maxDelay threshold (servo:max_delay), before slave is reset. 0 = not checked.
0

If servo:max_delay is set, perform the check only if clock servo has stabilised.
N

Do not reset the clock if offset from master is greater than this value (nanoseconds). 0 = not used.
0

Enable SNMP agent (if compiled with PTPD_SNMP).
N

Send log messages to syslog. Disabling this sends all messages to stdout (or specified log file).
N

Lock file location
[none]

Use mode specific and interface specific lock file (overrides global:lock_file).
N

Lock file directory: used with automatic mode-specific lock files, also used when no lock file is specified. When lock file is specified, it's expected to be an absolute path.
/var/run

Skip lock file checking and locking.
N

File used to record data about sync packets. Enables recording when set.
[none]

Maximum sync packet record file size (in kB) - file will be truncated if size exceeds the limit. 0 - no limit.
0

Enable log rotation of the sync packet record file up to n files. 0 - do not rotate.
0

Truncate the sync packet record file every time it is (re) opened: startup and SIGHUP.
N

File used to log ptpd2 status information.
/var/run/ptpd2.status

Enable / disable writing status information to file.
N

Status file update interval in seconds.
1

Specify log file path (event log). Setting this enables logging to file.
[none]

Maximum log file size (in kB) - log file will be truncated if size exceeds the limit. 0 - no limit.
0

Enable log rotation of the sync packet record file up to n files. 0 - do not rotate.

0

Truncate the log file every time it is (re) opened: startup and SIGHUP.
N

LOG_ERR LOG_WARNING LOG_NOTICE LOG_INFO LOG_ALL
Specify log level (only messages at this priority or higher will be logged). The minimal level is LOG_ERR. LOG_ALL enables debug output if compiled with RUNTIME_DEBUG.
LOG_ALL

Specify statistics log file path. Setting this enables logging of statistics, but can be overridden with global:log_statistics.
[none]

Log timing statistics every n seconds for Sync and Delay messages (0 - log all).
0

Maximum statistics log file size (in kB) - log file will be truncated if size exceeds the limit. 0 - no limit.
0

Enable log rotation of the statistics file up to n files. 0 - do not rotate.
0

Truncate the statistics file every time it is (re) opened: startup and SIGHUP.
N

Dump the contents of every PTP packet.
N

Run in foreground with statistics and all messages logged to stdout. Overrides log file and statistics file settings and disables syslog.

N

Run in foreground - ignored when global:verbose_foreground is set.
N

Log timing statistics for every PTP packet received. Output is in CSV format and field headers are always printed when starting or refreshing the statistics log.
N

datetime unix both
Timestamp format used when logging timing statistics (when global:log_statistics is enabled):
Formatted date and time: YYYY-MM-DD hh:mm:ss.uuuuuu
Unix timestamp with nanoseconds: s.ns
Formatted date and time followed by unix timestamp (adds one extra field to the log)
datetime

Log a status update every time statistics are updated (global:statistics_update_interval). This update is written to the main log target. Status updates are logged even if ptpd is configured without support for statistics.
N

Bind ptpd2 process to a selected CPU core number. 0 = first CPU core, etc. -1 = do not bind to a single core.
0

Clock synchronisation statistics update interval in seconds. Also controls how often periodic status information is logged (when using global:statistics_update_interval).
30

Delay (seconds) before releasing a time service (NTP or PTP) and electing a new one to control a clock. 0 = elect immediately
15

Enable NTPd integration
N

Enable control over local NTPd daemon
N

NTP control check interval in seconds
15

NTP key number - must be configured as a trusted control key in ntp.conf, and be non-zero for the ntpengine:control_enabled setting to take effect.
0

NTP key (plain text, max. 20 characters) - must match the key configured in ntpd's keys file, and must be non-zero for the ntpengine:control_enabled setting to take effect.
[none]

Configuration file support has only been introduced in version 2.3. There may still be some inconsistencies in the way some settings are parsed and while order should not make any difference, for some complex behaviours it may still be the case.

Please report any bugs using the bug tracker on the SourceForge page: http://sourceforge.net/projects/ptpd/

ptpd2(8)

Steven Kreuzer <skreuzer@freebsd.org>

Gael Mace <gael_mace@users.sourceforge.net>

George Neville-Neil <gnn@freebsd.org>

Wojciech Owczarek <wojciech@owczarek.co.uk>

Alexandre Van Kempen

ptpd2.conf(5) man page first written by Wojciech Owczarek for ptpd 2.3.0 in November 2013

June, 2015 version 2.3.1