管理网卡
ibv_devinfo
查看设备信息
这个命令可以方便的看到网卡端口的连接状态和协议
link_layer: InfiniBand 说明网卡运行在 IB 模式
ibv_devices
显示系统中目前所有设备
ibstat
查看网卡状态
> ibstat
CA 'mlx4_0'
CA type: MT4103
Number of ports: 2
Firmware version: 2.42.5700
Hardware version: 0
Node GUID: 0x480fcfffffeaa8a0
System image GUID: 0x480fcfffffeaa8a3
Port 1:
State: Initializing
Physical state: LinkUp
Rate: 40
Base lid: 0
LMC: 0
SM lid: 0
Capability mask: 0x02594868
Port GUID: 0x480fcfffffeaa8a1
Link layer: InfiniBand
Port 2:
State: Down
Physical state: Polling
Rate: 10
Base lid: 0
LMC: 0
SM lid: 0
Capability mask: 0x02594868
Port GUID: 0x480fcfffffeaa8a2
Link layer: InfiniBand
查看网络中的 ib 设备