(hba linux)-冯金伟博客园

如何查看HP服务器HBA卡?

1、windows系统:a、安装fcinfo软件b、在运行中调出命令行界面,输入fcinfo命令可获取当前HBA卡信息2、linux:查看WWPN:cat/sys/class/fc_host/host*/port_name

linux下怎么看wwn?

/sys/class/fc_host/下有HBA卡名字的目录,每个目录里的port_name文件就是WWN,比如: cd /sys/class/fc_host/host2 cat portname 低版本的Linux可以查看文件:/proc/scsi/qla2xxx/1 (1,2,3,..N)

红旗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