MSTCONFIG(1)

πŸ“¦
version 4.37.0_1.1 Β· 3 versions
, in centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

Welcome to MSTCONFIG(1), bestie! πŸ’– It's a User Commands moment, and the star is mstconfig β€” the tool that sets or queries non-volatile configurable options for Mellanox HCAs. ✨

πŸ’– NAME πŸ’–

mstconfig β€” set or query non-volatile configurable options for Mellanox HCAs. Periodt. πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so the original page is doing a whole nested-manual thing inside DESCRIPTION, and we're keeping every crumb. It starts with:

NAME mstconfig

SYNOPSIS

mstconfig [Options] <Commands> [Parameters]

DESCRIPTION: Allows the user to change some of the device configurations without having to create and burn a new firmware. πŸ”₯

OPTIONS: ...and then the actual OPTIONS section rolls in right after, like "not me being recursive." πŸ™ˆ

So fr fr, the main character energy here is: you can change some device configurations without creating and burning a whole new firmware. No cap. πŸ’«

🌸 OPTIONS 🌸

  • -d|--dev <device> β€” perform operation for a specified MST device. πŸ–₯️
  • -b|--db <filename> β€” use a specific database file. πŸ—‚οΈ
  • -f|--file <conf_file> β€” raw configuration file. πŸ“„
  • -h|--help β€” display help message. πŸ†˜
  • -v|--version β€” display version info. 🏷️
  • -e|--enable_verbosity β€” show default and current configurations. πŸ‘€
  • -y|--yes β€” answer yes in prompt. βœ…
  • -a|--all_attrs β€” show all attributes in the XML template. 🌟
  • -p|--private_key β€” pem file for private key. πŸ”
  • -u|--key_uuid β€” keypair uuid. πŸ”‘

πŸŽ€ COMMANDS πŸŽ€

  • clear_semaphore β€” clear the tool semaphore. 🧹
  • i[show_confs] β€” display information about all configurations. πŸ“Š
  • q[uery] β€” query supported configurations. πŸ”
  • r[eset] β€” reset all configurations to their default value. ♻️
  • s[et] β€” set configurations to a specific device. 🎯
  • set_raw β€” set raw configuration file.(only Connect-IB/Connect-X4/LX.) πŸ§ͺ
  • backup β€” backup configurations to a file (only Connect-IB/Connect-X4/LX.). Use set_raw command to restore file. πŸ’Ύ
  • gen_tlvs_file β€” Generate List of all TLVs. TLVs output file name must be specified. (*) πŸ“
  • g[en_xml_template] β€” Generate XML template. TLVs input file name and XML output file name must be specified. (*) 🧬
  • xml2raw β€” Generate Raw file from XML file. XML input file name and raw output file name must be specified. (*) πŸ”„
  • raw2xml β€” Generate XML file from Raw file. raw input file name and XML output file name must be specified. (*) πŸ”
  • xml2bin β€” Generate Bin file from XML file. XML input file name and bin output file name must be specified. (*) πŸ“¦
  • create_conf β€” Generate Configuration file from XML file. XML input file name and bin output file name must be specified. (*) πŸ› οΈ
  • apply β€” Apply a Configuration file. bin input file name must be specified. (*) πŸš€
(*) These commands do not require MST device πŸ’€

To show supported configurations by device type, run show_confs command. πŸ‘‘

Examples, because we love a little demo moment:

  • To query configurations:
mstconfig -d 04:00.0 query
  • To set configuration:
mstconfig -d 04:00.0 set SRIOV_EN=1 NUM_OF_VFS=16 WOL_MAGIC_EN_P1=1
  • To set raw configuration:
mstconfig -d 05:00.0 -f conf_file set_raw
  • To reset configuration:
mstconfig -d 04:00.0 reset

Supported devices: 4th Generation devices: ConnectX3, ConnectX3-Pro (FW 2.31.5000 and above). 5th Generation devices: ConnectIB, ConnectX4, ConnectX4-LX, ConnectX5. 🌈

Note: query device to view supported configurations by Firmware. πŸ“Œ

πŸ‘‘ SEE ALSO πŸ‘‘


This page came from mstflint, dated March 2020, and it's the MSTCONFIG(1) manual. Stay configurable, bestie πŸ«ΆπŸ’–

πŸ“¦ where this page comes from