ptp_port_config

Reference Documentation

product_line_custom
IntelĀ® PAC
Napatech SmartNIC
category
Reference Information
Napatech Software Suite: ptp_port_config
ptp_port_config

ptp_port_config

The ptp_port_config tool is used to get and set select PTP port settings. The changes made with this tool are not persistent across restarts of the ntservice daemon. The user should store the persistent PTP configuration in the ntservice.ini file.

Syntax

ptp_port_config --cmd <get | set> --adapter <adapter number>
       [--enable <yes | no>]
       [--speed <10M | 100M>]
       [--duplex <half | full>]
       [--autoneg <on | off>]
       [--advfull <10M | 100M >]
       [--advhalf <10M | 100M >]
       [--help]

Mandatory Commands
Command Description
-c, --cmd <set | get> Specifies the operation of the tool
  • get
    Specifies that ptp_port_config retrieves and displays the parameter
  • set
    Specifies that ptp_port_config sets up a parameter
-a, --adapter <adapter number> Specifies the adapter that the tool is to operate on. <adapter number> can have the values 0, 1, 2, etc.
Optional Commands
Command Description
-h, --help Displays a help text that describes the tool and its syntax and parameters
-e, --enable <yes | no> Enables and disables the PTP port.
  • yes
    Enables the PTP port
  • no
    Disables the PTP port
-s, --speed <10M | 100M> Sets the link speed for the PTP port. This setting only takes effect when auto negotiation is disabled.
  • 10M
    10 Mbit/s
  • 100M
    100 Mbit/s
-d, --duplex <half | full> Sets the duplex mode. This setting only takes effect when auto negotiation is disabled.
  • half
    Uses half duplex mode
  • full
    Uses full duplex mode
-n, --autoneg <on | off> Sets the autonegotiation mode.
  • on
    Turns on autonegotiation.
  • off
    Turns off autonegotiation.
-f, --advfull < 10M | 100M > Sets the full duplex link speed capabilities advertised during auto negotiation.
  • 10M
    Link speed 10Mbit/s is supported.
  • 100M
    Link speed 100Mbit/s is supported.
-l, --advhalf <10M | 100M> Sets the half duplex link speed capabilities advertised during auto negotiation.
  • 10M
    Link speed 10 Mbit/s is supported.
  • 100M
    Link speed 100 Mbit/s is supported.

Examples

  • Get PTP port settings for adapter 0 (zero)
    ptp_port_config --cmd get --adapter 0
  • Set PTP link speed to 100MBit/s on adapter 1
    ptp_port_config --cmd set --adapter 1 --speed 100M --autoneg off
  • Set advertised speeds and enable auto negotiation on adapter 3
    ptp_port_config --cmd set --adapter 3 --advfull 10M,100M --advhalf 10M,100M --autoneg on
  • Disable the PTP port on adapter 0 (zero)
    ptp_port_config --cmd set --adapter 0 --enable no