Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to check the WWN number with different systems

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

In this issue, the editor will bring you about how to use different systems to check the WWN number. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

In the process of operation and maintenance, it is sometimes necessary to quickly find the WWN number of the HBA card. Now summarize several common methods of finding the WWN number under the system.

AIX:

1. Obtain the fiber optic devices connected to the AIX host:

# lsdev-Cc adapter-S a | grep fcs

Fcs0 Available 09-08 FC Adapter

Fcs1 Available 09-09 FC Adapter

Among them, there are two fiber optic cards .fcs0 and fcs1.

2. Check the WWN number of the fiber card.

# lscfg-vpl fcs0

Fcs0 U787B.001.DNWG664-P1-C1-T1 FC Adapter

Part Number.10N8620

Serial Number.1B74404468

Manufacturer.001B

EC Level.A

Customer Card ID Number.5759

FRU Number. 10N8620

Device Specific. (ZM) .3

Network Address.10000000C96E2898

ROS Level and ID.02C82138

Device Specific. (Z0) .1036406D

Device Specific. (Z1). 00000000

Device Specific. (Z2). 00000000

Device Specific. (Z3). 03000909

Device Specific. (Z4). FFC01159

Device Specific. (Z5). 02C82138

Device Specific. (Z6). 06C12138

Device Specific. (Z7). 07C12138

Device Specific. (Z8). 20000000C96E2898

Device Specific. (Z9). BS2.10X8

Device Specific. (ZA) B1F2.10X8

Device Specific. (ZB) B2F2.10X8

Device Specific. (ZC). 00000000

Hardware Location Code.U787B.001.DNWG664-P1-C1-T1

The red part (Network Address) is the WWN number of the fiber card.

HP-Unix:

1. List the fiber card devices connected to the HP computer:

# ioscan-fnC fc

Class I H/W Path Driver S/W State H/W Type Description

=

Fc 00 / 3-1-0 fcd CLAIMED INTERFACE HP A6826-60001 2Gb Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)

/ dev/fcd0

Fc 1 0Accord 3 Compact 1 fcd CLAIMED INTERFACE HP A6826-60001 2Gb Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 2)

/ dev/fcd1

As you can see from this figure, / dev/fcd0 and / dev/fcd1 are two optical fiber cards

2. Check the WWN number of the fiber card.

# fcmsutil / dev/fcd0

Vendor ID is = 0x001077

Device ID is = 0x002312

PCI Sub-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 Port World Wide Name = 0x50060b00001db240

Switch Port World Wide Name = 0x205e000dec0e2e00

Switch Node World Wide Name = 0x2001000dec0e2e01

Driver state = ONLINE

Hardware Path is = 0Action3Compact 1Universe 0

Maximum Frame Size = 2048

Driver-Firmware Dump Available = NO

Driver-Firmware Dump Timestamp = NCMA

Driver Version = @ (#) libfcd.a HP Fibre Channel ISP 23xx & 24xx Driver B.11.23.04 / ux/core/isu/FCD/kern/src/common/wsio/fcd_init.c:Oct 18 2005

The red part shows the WWNN and WWPN numbers of the HBA card, as well as the WWN number of the fiber switch port to which the HBA card is connected.

Solaris:

Luxadm commands are used on solaris to manage storage devices and fiber optic related devices.

1. If you query existing storage devices and fiber optic devices, you can read the WWN number including disk devices.

# luxadm probe

2. Check the prot of HBA to get the port value and connection properties of HBA card:

# luxadm-e port

/ devices/pci@0,0/pci1022,7450@2/pci1077101@1/fp@0,0:devctl NOT CONNECTED

/ devices/pci@0,0/pci1022,7450@2/pci1077101@1,1/fp@0,0:devctl CONNECTED

You can see that only one optical fiber card is connected to the storage device.

3. Select the connected HBA card and check its WWN number

Format: # luxadm-e dump_map device port. The port value can be obtained from step 2. The following figure is shown:

# luxadm-e dump_map / devices/pci@0,0/pci1022,7450@2/pci1077101@1/fp@0,0:devctl

Pos Port_ID Hard_Addr Port WWN Node WWN Type

000 210000e08b19827a 200000e08b19827a 0x1f (Unknown Type,Host Bus Adapter)

Redhat:

In Redhat, device management information is stored in the kernel, the / proc directory. So we generally query CPU, memory, disk and other information, also in this directory. The HBA card-related information is stored in the / proc/scsi/qlaxxx directory, and different devices correspond to different file names, such as

# grep scsi/ proc/scsi/qla2300/1

Number of reqs in pending_q= 0, retry_q= 0, done_q= 0, scsi_retry_q= 0

Scsi-qla0-adapter-node=200000e08b9cf661

Scsi-qla0-adapter-port=210000e08b9cf661

You can find the WWNN and WWPN numbers of the first HBA card in the system.

The method of CENTOS and SuSE Linux to view FC HBA card information is basically the same. The file / sys/class/fc_host/host*/port_name contains all the FC HBA card information that has been discovered by the system. Use the view command to view the contents of this file and you can see the FC HBA card information.

View WWPN:cat / sys/class/fc_host/host*/port_name

View WWNN:cat / sys/class/fc_host/host*/node_name

The above is the editor for you to share how to use different systems to check the WWN number, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report