如何查看linux/unix查看wwn号

发布网友 发布时间:2022-04-22 20:37

我来回答

1个回答

热心网友 时间:2022-05-16 16:15

AIX:
1,获得AIX主机连接的光纤设备:
# lsdev -Cc adapter -S a | grep fcs
fcs0 Available 09-08 FC Adapter
fcs1 Available 09-09 FC Adapter
其中,显示有两块光纤卡.fcs0和fcs1
2,查看光纤卡的WWN号
# lscfg -vpl fcs0
fcs0 U787B.001.DNWG6-P1-C1-T1 FC Adapter

Part Number.................10N8620
SerialNumber...............1B74404468
Manufacturer................001B
EC Level....................A
Customer Card ID Number.....5759
FRU Number.................. 10N8620
Device Specific.(ZM)........3
NetworkAddress.............10000000C96E28
ROS Level and ID............02C82138
Device Specific.(Z0)........10306D
Device Specific.(Z1)........00000000
Device Specific.(Z2)........00000000

其中标红的部分就是光纤卡的WWN号

HP-Unix:
1,列出HP机上连接的光纤卡设备:
# ioscan -fnC fc
Class I H/W Path Driver S/W State H/WType Description
============
fc 0 0/3/1/0 fcd CLAIMED INTERFACE HP A6826-600012Gb Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)
/dev/fcd0
fc 1 0/3/1/1 fcdCLAIMED INTERFACE HP A6826-60001 2GbDual Port PCI/PCI-X Fibre Channel Adapter (FC Port 2)
/dev/fcd1
由此图可以看到,/dev/fcd0和/dev/fcd1是两个光纤卡
2, 查看光纤卡的WWN号
# fcmsutil /dev/fcd0

Vendor ID is = 0x001077
Device ID is = 0x002312
PCISub-system Vendor ID is = 0x00103c
PCI Sub-system ID is = 0x0012ba
PCI Mode = PCI-X 133 MHz
ISP Code version = 3.3.18
ISP Chip version = 3
Topology = PTTOPT_FABRIC
Link Speed = 2Gb
Local N_Port_id is = 0xa10500
Previous N_Port_id is = None
N_Port Node World Wide Name =0x50060b00001db241
N_Port PortWorld Wide Name = 0x50060b00001db240
Switch PortWorld Wide Name = 0x205e000dec0e2e00
Switch NodeWorld Wide Name = 0x2001000dec0e2e01
Driver state = ONLINE
Hardware Path is = 0/3/1/0
Maximum Frame Size = 2048
Driver-Firmware Dump Available= NO
Driver-Firmware Dump Timestamp= N/A
Driver Version = @(#) libfcd.a HP Fibre Channel ISP 23xx & 24xx DriverB.11.23.04 /ux/core/isu/FCD/kern/src/common/wsio/fcd_init.c:Oct 18 2005,08:21:11
其中红色部分显示了HBA卡的WWNN和WWPN号,另外还能看到该HBA卡连接的光纤交换机端口的WWN号

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com