AFAIK --我想这就是我可以检查Mellanox以太网卡固件的方法:
SERVER:~ # for i in 0 1 2 3 ; do ethtool -i eth$i|grep -i firmware; done|sort -u|cut -d' ' -f 2-
14.23.1020 (LNV2420110034)这就是我检查驱动程序版本的方法:
SERVER:~ # modinfo mlx5_core|grep ^version:|sed 's/version: * //g'
4.3-1.0.1
SERVER:~ #问题是:这是真的吗?有人能确认一下吗?
SLES12。
发布于 2019-02-07 09:46:21
第一个片段获取4个网络接口的固件版本,这些接口名为eth0、eth1、eth2和eth3,无论它们是否是Mellanox卡,删除重复版本并按字母数字顺序对产生的版本号进行排序。为了获得一个已知名称的网络接口的固件版本(例如eth0),这就足够了:
ethtool -i eth0 | grep -i firmware | cut -d ' ' -f 2-假设驱动程序名总是mlx5_core的第二个片段是正确的。
https://unix.stackexchange.com/questions/499122
复制相似问题