mstlink(1)
| MSTLINK(1) | User Commands | MSTLINK(1) |
NAME
mstlink - check and debug link status and issues related to them
SYNOPSIS
mstlink [OPTIONS]
DESCRIPTION
The mlxlink tool is used to check and debug link status and issues related to them. The tool can be used on different links and cables (passive, active, transceiver and backplane).
OPTIONS
- -h |--help
- : Display help message.
- -v |--version
- : Display version info.
- -d |--device
- <device> : Perform operation for a specified mst device
- -p |--port
- <port_number_or_list> : Port Number, or a comma-separated list of ports (e.g. 1,2,3). A list is currently supported only with -a/--port_state.
- --port_type
- <port_type> : Port Type [NETWORK(Default)/PCIE]
- --depth
- <depth> : depth level of the DUT of some hierarchy (PCIE only)
- --pcie_index
- <pcie_index> : PCIe index number (Internal domain index) (PCIE only)
- --node
- <node> : the node within each depth (PCIE only)
- --json
- : Print the output in json format
- QUERIES:
- --show_links
- : Show valid PCIe links (PCIE only)
- -m |--show_module
- : Show Module Info. When combined with --cable, shows the module pre-coding info (Host/Line Tx/Rx operational status)
- -c |--show_counters
- : Show Physical Counters and BER Info
- -e |--show_eye
- : Show Eye Opening Info
- --show_fec
- : Show FEC Capabilities
- --show_serdes_tx
- : Show Transmitter Info
- --show_device
- : General Device Info
- --show_ber_monitor
- : Show BER Monitor Info (not supported for HCA)
- --show_external_phy
- : Show External PHY Info
- COMMANDS:
- -a |--port_state <port_state>
- : Configure Port State [UP(up)/DN(down)/TG(toggle)]
- -s |--speeds
- <speeds> : Configure Speeds [speed1,speed2,...]
- --link_mode_force
- : Configure Link Mode Force (Disable AN)
- -l |--loopback
- <loopback> : Configure Loopback Mode [NO(no loopback)/PH(phy loopback)/EX(external loopback)]
- -k |--fec
- <fec_override> : Configure FEC [AU(Auto)/NF(No-FEC)/FC(FireCode FEC)/RS(RS-FEC)]
- --fec_speed
- <fec_speed> : Speed to Configure FEC [100G/50G/25G/...] (Default is Active Speed)
- --serdes_tx
- <params> : Configure Transmitter Parameters [polarity,ob_tap0,...]
- --serdes_tx_lane <transmitter_lane>
- : Transmitter Lane to Set (Optional - Default All Lanes)
- --database
- : Save Transmitter Configuration for Current Speed Permanently (Optional)
- --test_mode
- <prbs_mode> : Physical Test Mode Configuration [EN(enable)/DS(disable)/TU(perform tuning)]
- --rx_prbs
- <rx_prbs_mode> : RX PRBS Mode [PRBS31(Default)/PRBS7/...] (Optional - Default PRBS31)
- --tx_prbs
- <tx_prbs_mode> : TX PRBS Mode [PRBS31(Default)/PRBS7/...] (Optional - Default PRBS31)
- --rx_rate
- <rx_lane_rate> : RX Lane Rate [EDR(Default)/25G/10G/...] (Optional - Default 25G)
- --tx_rate
- <tx_lane_rate> : TX Lane Rate [EDR(Default)/25G/10G/...] (Optional - Default 25G)
- -b |--ber_collect <csv_file>
- : Port Extended Information Collection [CSV File]
- --ber_limit
- <limit_criteria> : BER Limit Criteria [Nominal(Default)/Corner/Drift] (Optional - Default Nominal)
- --iteration
- <iteration> : Iteration Number of BER Collection
- --pc
- : Clear Counters
- --set_external_phy
- : Set External PHY (not supported for HCA)
- --twisted_pair_force_mode <twisted_pair_force_mode>
- : Twisted Pair Force Mode [MA(Master)/SL(Slave)]
EXAMPLES
- get info of <device>, <port_number>
- :
- mstlink -d <device> -p <port_number>
- get info of <device>, <port_number> and BER Counters:
- mstlink -d <device> -p <port_number> -c
- get info of <device>, <port_number> and Transmitter Parameters:
- mstlink -d <device> -p <port_number> --show_serdes_tx
- Configure Port State
- :
- mstlink -d <device> -p <port_number> --port_state UP
- mstlink -d <device> -p 1,2,3 --port_state DN
- Configure Port Speeds
- :
- mstlink -d <device> -p <port_number> --speeds 25G,50G,100G
- Configure FEC
- :
- mstlink -d <device> -p <port_number> --fec RS
- Configure Port for Physical Test Mode
- :
- mstlink -d <device> -p <port_number> --test_mode EN (--rx_prbs PRBS31 --rx_rate 25G --tx_prbs PRBS7 --tx_rate 10G)
- Perform PRBS Tuning
- :
- mstlink -d <device> -p <port_number> --test_mode TU
- Configure Transmitter Parameters (on lane, to database):
- mstlink -d <device> -p <port_number>
(--serdes_tx_lane <lane number>) (--database) \
--serdes_tx <polarity>,<ob_tap0>,<ob_tap1>,<ob_tap2>,<ob_bias>,<ob_preemp_mode>
- PCIe queries (supported on HCA, CPU and Switches that advertise PCIe management):
- :
- List valid PCIe links:
- mstlink -d <device> --port_type PCIE --show_links
- Show PCIe operational info for a specific link:
- mstlink -d <device> --port_type PCIE --depth <d> --pcie_index <i> --node <n>
- Show PCIe BER/MPCNT counters:
- mstlink -d <device> --port_type PCIE -c
- Collect amBER for PCIe links:
- mstlink -d <device> --port_type PCIE --amber_collect <file.csv>
- Note: --pcie_error_injection is supported on HCA devices only.
SEE ALSO
mstflint(1)
| March 2020 | mstflint |
