如何使用MST工具查看Mellanox網(wǎng)卡端口狀態(tài)與光模塊信息
發(fā)布時間:2023-12-13
1、MFT工具介紹
MFT,即Mellanox/NVIDIA Firmware Tools,是一套固件管理工具,用于查詢固件信息、固件升級等,含mst、mlxburn、flint、Debug utilities 4個子工具,具體功能參考NVIDIA官方資料:
表1 NVIDIA MFT描述
|
NVIDIA Firmware Tools (MFT)
The MFT package is a set of firmware management tools used to:
· Generate a standard or customized NVIDIA firmware image Querying for firmware information
· Burn a firmware image
The following is a list of the available tools in MFT, together with a brief description of what each tool performs.
|
|
|
MFT Tools
|
|
|
Tool
|
Description
|
|
mst
|
This tool provides the following functions:
* Starts/stops the register access driver
* Lists the available mst devices
|
|
mlxburn
|
This tool provides the following functions:
* Generation of a standard or customized NVIDIA firmware image for burning (in binary or.mlx format)
* Burning an image to the Flash/EEPROM attached to a NVIDIA HCA or switch device
* Displaying the VPD (Vital Product Data)of an NVIDIA network adapter
|
|
flint
|
This tool burns a firmware binary image or an expansion ROM image to the Flash device of a
NVIDIA network adapter/gateway/switch device.It includes query functions to the burnt firmware
image and to the binary image file.
|
|
Debug
Utilities |
A set of debug utilities(e.g, itrace, fwtrace, mlxtrace, mlxdump, mstdump, mlxmcg, wqdump, mcra, mlxi2c, i2c,
mget_temp, and pckt_drop)
|
2、MFT工具下載與安裝
Mellanox/NVIDIA官網(wǎng)下載MFT工具安裝包,本文以linux系統(tǒng)下mft-4.22.1-307-x86_64-rpm.tgz為例。安裝包下載網(wǎng)址:https://network.nvidia.com/products/adapter-software/firmware-tools/
a.終端對壓縮文件進行解壓,執(zhí)行命令: tar -zxf mft-4.22.1-307-x86_64-rpm.tgz
b.終端進入解壓縮文件并進行安裝,依次執(zhí)行命令:
cd mft-4.22.1-307-x86_64-rpm
./install.sh
c.啟動MFT,運行MST,執(zhí)行命令: mst start
3、MST工具讀取端口狀態(tài)與光模塊信息
執(zhí)行命令“mlxlink -d device -m ” ,查看接口信息,含接口狀態(tài)、接口配置、支持的速率、故障排除、光模塊識別、光模塊DOM信息等。
說明:device 為模塊所在接口的網(wǎng)絡地址,可以執(zhí)行命令“lspci” 進行查看。
摩泰光電提供的光模塊產(chǎn)品可用于Mellanox網(wǎng)卡/交換機,歡迎大家選購。

40G/100G 光模塊
25G 光模塊
10G 光模塊
155M/2.5G 光模塊
1G 光模塊
1G BIDI 光模塊
雙速率 光模塊
FC 16G/32G光模塊
CWDM 光模塊
DWDM 光模塊
SGMII端口 光模塊
XFP 光模塊
100M/1G/10G 電口模塊
全速率AOC及分支系列
10G/40G 有源DAC系列
全速率無源DAC系列
40G/100G 無源DAC分支系列
常規(guī)/MTP-MPO 光纖跳線
MT2010
MT2011
CodingBox
QSFP轉(zhuǎn)SFP模塊






