ubuntu2204查看mellanox网卡的序列号
可以通过以下命令查看Mellanox网卡的序列号:
sudo mlxconfig -d /dev/mst/mt4117_pciconf0 q | grep "Serial number" | awk '{print $NF}'
其中,/dev/mst/mt4117_pciconf0是Mellanox网卡对应的设备文件路径,可以通过命令ls /dev/mst查看。
如果提示“mlxconfig: command not found”,需要先安装Mellanox OFED软件包,可以参考官方文档进行安装。
原文地址: https://www.cveoy.top/t/topic/drLL 著作权归作者所有。请勿转载和采集!