您的当前位置:首页 --> CentOS入门
Centos系统查询hba卡型号
浏览次数:2377 关键词 ( 型号  系统  Centos  hba  )

系统环境:Centos系统

服务器需要链接外接存储,通过光纤连接,在获取接口时候需要查询hba卡型号,命令如下:
 

[root@localhost ~]# lspci | grep -i fibre

84:00.0 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)

84:00.1 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)

[root@localhost ~]# cd /sys/class/fc_host/

[root@localhost fc_host]# ll

总用量 0

lrwxrwxrwx. 1 root root 0 12月 11 14:57 host6 -> ../../devices/pci0000:80/0000:80:03.0/0000:84:00.0/host6/fc_host/host6

lrwxrwxrwx. 1 root root 0 12月 11 14:57 host7 -> ../../devices/pci0000:80/0000:80:03.0/0000:84:00.1/host7/fc_host/host7

[root@localhost fc_host]# ls /sys/class/fc_host/

host6 host7

[root@localhost fc_host]# cat /sys/class/fc_host/host6/port_name

0x21000024ff8fa016

[root@localhost fc_host]# cat /sys/class/fc_host/host7/port_name

0x21000024ff8fa017


以上加粗部分即是HBA卡型号。

下载次数:8
下载地址:点击下载
本资源为程序自动采集,如有侵权请联系我们移除 admin#80vps.com 来信请将#替换为@
下一条 centos系统中网络配置相关
上一条 CentOS安装scp命令

拥有超过10年的业务管理经验。我们是IDC服务和解决方案方面的专家

有任何疑问请不要犹豫,立即点击联系我们