Blame pmc.8

Packit 9c3e7e
.TH PMC 8 "October 2013" "linuxptp"
Packit 9c3e7e
.SH NAME
Packit 9c3e7e
pmc \- PTP management client
Packit 9c3e7e
Packit 9c3e7e
.SH SYNOPSIS
Packit 9c3e7e
.B pmc
Packit 9c3e7e
[
Packit 9c3e7e
.BI \-f " config-file"
Packit 9c3e7e
] [
Packit 9c3e7e
.B \-2
Packit 9c3e7e
|
Packit 9c3e7e
.B \-4
Packit 9c3e7e
|
Packit 9c3e7e
.B \-6
Packit 9c3e7e
|
Packit 9c3e7e
.B \-u
Packit 9c3e7e
] [
Packit 9c3e7e
.BI \-b " boundary-hops"
Packit 9c3e7e
] [
Packit 9c3e7e
.BI \-d " domain-number"
Packit 9c3e7e
] [
Packit 9c3e7e
.BI \-i " interface"
Packit 9c3e7e
] [
Packit 9c3e7e
.BI \-s " uds-address"
Packit 9c3e7e
] [
Packit 9c3e7e
.BI \-t " transport-specific-field"
Packit 9c3e7e
] [
Packit 9c3e7e
.I long-options
Packit 9c3e7e
] [
Packit 9c3e7e
.B \-v
Packit 9c3e7e
] [
Packit 9c3e7e
.B \-z
Packit 9c3e7e
] [ command ] ...
Packit 9c3e7e
Packit 9c3e7e
.SH DESCRIPTION
Packit 9c3e7e
.B pmc
Packit 9c3e7e
is a program which implements a PTP management client according to IEEE
Packit 9c3e7e
standard 1588. The program reads from the standard input or from the command
Packit 9c3e7e
line actions specified by name and management ID, sends them over the selected
Packit 9c3e7e
transport and prints any received replies. There are three actions supported:
Packit 9c3e7e
.B GET
Packit 9c3e7e
retrieves the specified information,
Packit 9c3e7e
.B SET
Packit 9c3e7e
updates the specified information and
Packit 9c3e7e
.B CMD
Packit 9c3e7e
(or
Packit 9c3e7e
.BR COMMAND )
Packit 9c3e7e
initiates the specified event.
Packit 9c3e7e
Packit 9c3e7e
By default the management commands are addressed to all ports. The
Packit 9c3e7e
.B TARGET
Packit 9c3e7e
command can be used to select a particular clock and port for the
Packit 9c3e7e
subsequent messages.
Packit 9c3e7e
Packit 9c3e7e
Command
Packit 9c3e7e
.B help
Packit 9c3e7e
can be used to get a list of supported actions and management IDs.
Packit 9c3e7e
Packit 9c3e7e
.SH OPTIONS
Packit 9c3e7e
.TP
Packit 9c3e7e
.B \-2
Packit 9c3e7e
Select the IEEE 802.3 network transport.
Packit 9c3e7e
.TP
Packit 9c3e7e
.B \-4
Packit 9c3e7e
Select the UDP IPv4 network transport. This is the default transport.
Packit 9c3e7e
.TP
Packit 9c3e7e
.B \-6
Packit 9c3e7e
Select the UDP IPv6 network transport.
Packit 9c3e7e
.TP
Packit 9c3e7e
.B \-u
Packit 9c3e7e
Select the Unix Domain Socket transport.
Packit 9c3e7e
.TP
Packit 9c3e7e
.BI \-b " boundary-hops"
Packit 9c3e7e
Specify the boundary hops value in sent messages. The default is 1.
Packit 9c3e7e
.TP
Packit 9c3e7e
.BI \-d " domain-number"
Packit 9c3e7e
Specify the domain number in sent messages. The default is 0.
Packit 9c3e7e
.TP
Packit 9c3e7e
.BI \-i " interface"
Packit 9c3e7e
Specify the network interface. The default is /var/run/pmc.$pid for the Unix Domain
Packit 9c3e7e
Socket transport and eth0 for the other transports.
Packit 9c3e7e
.TP
Packit 9c3e7e
.BI \-s " uds-address"
Packit 9c3e7e
Specifies the address of the server's UNIX domain socket.
Packit 9c3e7e
The default is /var/run/ptp4l.
Packit 9c3e7e
.TP
Packit 9c3e7e
.BI \-t " transport-specific-field"
Packit 9c3e7e
Specify the transport specific field in sent messages as a hexadecimal number.
Packit 9c3e7e
The default is 0x0.
Packit 9c3e7e
.TP
Packit 9c3e7e
.B \-h
Packit 9c3e7e
Display a help message.
Packit 9c3e7e
.TP
Packit 9c3e7e
.B \-v
Packit 9c3e7e
Prints the software version and exits.
Packit 9c3e7e
.TP
Packit 9c3e7e
.B \-z
Packit 9c3e7e
The official interpretation of the 1588 standard mandates sending
Packit 9c3e7e
GET actions with valid (but meaningless) TLV values. Therefore the
Packit 9c3e7e
pmc program normally sends GET requests with properly formed TLV
Packit 9c3e7e
values. This option enables the legacy option of sending zero
Packit 9c3e7e
length TLV values instead.
Packit 9c3e7e
Packit 9c3e7e
.SH LONG OPTIONS
Packit 9c3e7e
Packit 9c3e7e
Each and every configuration file option (see below in sections
Packit 9c3e7e
.BR PROGRAM\ OPTIONS
Packit 9c3e7e
and
Packit 9c3e7e
.BR PORT\ OPTIONS )
Packit 9c3e7e
may also appear
Packit 9c3e7e
as a "long" style command line argument. For example, the transportSpecific
Packit 9c3e7e
option may be set using either of these two forms:
Packit 9c3e7e
Packit 9c3e7e
.RS
Packit 9c3e7e
\f(CW\-\-transportSpecific 1   \-\-transportSpecific=1\fP
Packit 9c3e7e
.RE
Packit 9c3e7e
Packit 9c3e7e
Option values given on the command line override values in the global
Packit 9c3e7e
section of the configuration file (which, in turn, overrides default
Packit 9c3e7e
values).
Packit 9c3e7e
Packit 9c3e7e
.SH CONFIGURATION FILE
Packit 9c3e7e
Packit 9c3e7e
The configuration file is divided into sections. Each section starts with a
Packit 9c3e7e
line containing its name enclosed in brackets and it follows with settings.
Packit 9c3e7e
Each setting is placed on a separate line, it contains the name of the
Packit 9c3e7e
option and the value separated by whitespace characters. Empty lines and lines
Packit 9c3e7e
starting with # are ignored.
Packit 9c3e7e
Packit 9c3e7e
The global section (indicated as
Packit 9c3e7e
.BR [global] )
Packit 9c3e7e
sets the global program options as well as the default port specific options.
Packit 9c3e7e
Other sections are port specific sections and they override the default port
Packit 9c3e7e
options. The name of the section is the name of the configured port (e.g.
Packit 9c3e7e
.BR [eth0]
Packit 9c3e7e
).
Packit 9c3e7e
Packit 9c3e7e
.SH PROGRAM OPTIONS
Packit 9c3e7e
.TP
Packit 9c3e7e
.B domainNumber
Packit 9c3e7e
The domain attribute of the local clock. The default is 0.
Packit 9c3e7e
Packit 9c3e7e
.SH PORT OPTIONS
Packit 9c3e7e
.TP
Packit 9c3e7e
.B transportSpecific
Packit 9c3e7e
The transport specific field. Must be in the range 0 to 255.
Packit 9c3e7e
The default is 0.
Packit 9c3e7e
Packit 9c3e7e
.TP
Packit 9c3e7e
.B network_transport
Packit 9c3e7e
Select the network transport. Possible values are UDPv4, UDPv6 and L2. The default
Packit 9c3e7e
is UDPv4.
Packit 9c3e7e
Packit 9c3e7e
.TP
Packit 9c3e7e
.B ptp_dst_mac
Packit 9c3e7e
The MAC address to which PTP management messages should be sent. Relevant only with L2 transport. The default is 01:1B:19:00:00:00.
Packit 9c3e7e
Packit 9c3e7e
Packit 9c3e7e
.SH MANAGEMENT IDS
Packit 9c3e7e
Packit 9c3e7e
.TP
Packit 9c3e7e
.B ANNOUNCE_RECEIPT_TIMEOUT
Packit 9c3e7e
.TP
Packit 9c3e7e
.B CLOCK_ACCURACY
Packit 9c3e7e
.TP
Packit 9c3e7e
.B CLOCK_DESCRIPTION
Packit 9c3e7e
.TP
Packit 9c3e7e
.B CURRENT_DATA_SET
Packit 9c3e7e
.TP
Packit 9c3e7e
.B DEFAULT_DATA_SET
Packit 9c3e7e
.TP
Packit 9c3e7e
.B DELAY_MECHANISM
Packit 9c3e7e
.TP
Packit 9c3e7e
.B DOMAIN
Packit 9c3e7e
.TP
Packit 9c3e7e
.B GRANDMASTER_SETTINGS_NP
Packit 9c3e7e
.TP
Packit 9c3e7e
.B LOG_ANNOUNCE_INTERVAL
Packit 9c3e7e
.TP
Packit 9c3e7e
.B LOG_MIN_PDELAY_REQ_INTERVAL
Packit 9c3e7e
.TP
Packit 9c3e7e
.B LOG_SYNC_INTERVAL
Packit 9c3e7e
.TP
Packit 9c3e7e
.B NULL_MANAGEMENT
Packit 9c3e7e
.TP
Packit 9c3e7e
.B PARENT_DATA_SET
Packit 9c3e7e
.TP
Packit 9c3e7e
.B PORT_DATA_SET
Packit 9c3e7e
.TP
Packit 9c3e7e
.B PORT_DATA_SET_NP
Packit 9c3e7e
.TP
Packit 9c3e7e
.B PRIORITY1
Packit 9c3e7e
.TP
Packit 9c3e7e
.B PRIORITY2
Packit 9c3e7e
.TP
Packit 9c3e7e
.B SLAVE_ONLY
Packit 9c3e7e
.TP
Packit 9c3e7e
.B TIMESCALE_PROPERTIES
Packit 9c3e7e
.TP
Packit 9c3e7e
.B TIME_PROPERTIES_DATA_SET
Packit 9c3e7e
.TP
Packit 9c3e7e
.B TIME_STATUS_NP
Packit 9c3e7e
.TP
Packit 9c3e7e
.B TRACEABILITY_PROPERTIES
Packit 9c3e7e
.TP
Packit 9c3e7e
.B USER_DESCRIPTION
Packit 9c3e7e
.TP
Packit 9c3e7e
.B VERSION_NUMBER
Packit 9c3e7e
Packit 9c3e7e
.SH WARNING
Packit 9c3e7e
Packit 9c3e7e
Be cautious when the same configuration file is used for both ptp4l
Packit 9c3e7e
and pmc.  Keep in mind that values specified in the configuration file
Packit 9c3e7e
take precedence over their default values. If a certain option which
Packit 9c3e7e
is common to ptp4l and pmc is specified to a non-default value in the
Packit 9c3e7e
configuration file (e.g. for ptp4l), then this non-default value
Packit 9c3e7e
applies also for pmc. This might be not what is expected.
Packit 9c3e7e
Packit 9c3e7e
To avoid securely these unexpected behaviour, different configuration files
Packit 9c3e7e
for ptp4l and pmc are recommended.
Packit 9c3e7e
Packit 9c3e7e
.SH SEE ALSO
Packit 9c3e7e
.BR ptp4l (8)