red hat 查看光纤卡wwn号

本文介绍如何在Red Hat Linux系统中查找和识别QLogic光纤卡的WWN(World Wide Name)。通过使用lspci命令结合grep筛选出光纤设备,并在不同版本的Red Hat Linux中展示如何读取WWN的具体路径。
怎样查看Redhat Linux的光纤卡WWN


How to identify/get QLogic WWN on Red Hat Enterprise Linux 5 (RHEL5).


First identify your installed or recognized


# lspci | grep -i fibre
04:00.0 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
04:00.1 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
05:00.0 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
05:00.1 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)


On Red Hat Enterprise Linux 5 (5.x) is on /sys/class/fc_host/hostX/port_name


(X is your device 1,2,3,…N)


For get use:


cat /sys/class/fc_host/hostX/port_name


Sample with multiple HBA (Fibre) QLogic


# ls /sys/class/fc_host/
host3 host4 host5 host6
# cat /sys/class/fc_host/host[3-6]/port_name
0x2100001b32936e24
0x2101001b32b36e24
0x2100001b32932821
0x2101001b32b32821


On Red Hat Enterprise Linux 4 (AS/ES) is on /proc/scsi/qla2xxx/1 (1,2,3,..N)


Sample:


# egrep [node|port] /proc/scsi/qlx2xxx/0
scsi-qla0-adapter-node=200000e08b1c19f2;
scsi-qla0-adapter-port=210000e08b1c19f2
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值