IT门户, 中国互联网人工智能物联网行业资讯平台--公众IT
新闻来源:互联网资料整理       发布时间:2023/4/9 2:47:25       共计:4620 浏览

怎么查看linux光口网卡数?

1.使用setup命令,看网卡具体型号。一般光口网卡都是10Gb的。

2.使用lspci|grepNetwork查看网卡具体型号确定。

3.使用ethtooleth*?命令查看网卡详细信息,port类型为:FIBRE的即时光口网卡。

红旗Linux SP3如何用命令查看光纤卡的信息,谢谢?

系统的/proc/scsi/qla2xxx目录下一般存在两个文件:1、2或者3、4,这些文件包含FC HBA卡的配置信息。

# cat 3

QLogic PCI to FibreChannel Host Adapter for QLA2342:

Firmware version 3.03.18IPX, Driver version 8.01.02-d4

ISP:ISP2312, Serial# P21735

RequestQueue = 0x11f580000,Response Queue = 0x11f4d0000

Request Queue count =4096, Response Queue count = 512

Total number of activecommands = 0

Total number ofinterrupts = 3354

Device queue depth = 0x10

Number of freerequest entries = 4094

Number of mailboxtimeouts = 0

Number of ISP aborts= 0

Number of loopresyncs = 0

Number of retries forempty slots = 0

Number of reqs inpending_q= 0, retry_q= 0, done_q= 0, scsi_retry_q= 0

Host adapter:loopstate = <READY>, flags = 0x1a03

Dpc flags = 0x4000000

MBX flags = 0x0

Link down Timeout =000

Port down retry = 035

Login retry count =035

Commands retried withdropped frame(s) = 0

Product ID = 49535020 2020 0002

SCSI DeviceInformation:

scsi-qla0-adapter-node=2000001882374738;

scsi-qla0-adapter-port=2100001882374738;

FC Port Information:

scsi-qla0-port-0=200000188237b206:210000188237b206:010a00:81;

SCSI LUN Information:

(Id:Lun) * - indicates lun is not registered with theOS.

其中,SCSI Device Information下面的scsi-qla0-adapter-port=2100001882374738便是主机光纤卡的WWN号。

RedHat AS5系统的/sys/class/fc_host/host*/port_name 这个文件包含了所有已被系统发现的FC HBA卡的信息,使用查看命令查看该文件的内容即可看到FC HBA卡的信息。

查看WWPN:cat/sys/class/fc_host/host*/port_name

查看WWNN:cat/sys/class/fc_host/host*/node_name

版权说明:
本网站凡注明“公众IT 原创”的皆为本站原创文章,如需转载请注明出处!
本网转载皆注明出处,遵循行业规范,如发现作品内容版权或其它问题的,请与我们联系处理!
您可以扫描右侧微信二维码联系我们。
网站首页 关于我们 联系我们 合作联系 会员说明 新闻投稿 隐私协议 网站地图