Linux - How to check fiber channel wwn of server, Find the WWN's of LINUX server

How to check fiber channel wwn of server

What is the command to find the WWN in linux?
How to find fibre channel is present in Linux machine or not?
How to find and external storage device is added to linux server?

In storage normally a user need to find the WWN or world wide number of a fibre channel, before adding the storage to a Linux box. The bellow cammands will help you to find the hardware details and WWN nuber for adding the storage to the server.

To check the fibre channel is present or not
 # lspci | grep -i fibre
OUTPUT:
0x:00.0 Fibre Channel: Emulex Corporation Xxxxx Fibre Channel Host Adapter (rev 02)
0x:00.0 Fibre Channel: Emulex Corporation Xxxxx-X Fibre Channel Host Adapter (rev 02)
0x:00.1 Fibre Channel: Emulex Corporation xxxxx-X Fibre Channel Host Adapter (rev 02)

Command to find the WWN's of fibre channel
 # find /sys/class/fc_host/ -name port_name -exec cat {} \;
OUTPUT:
0x10000xxxxxxxxxxx
0x10000xxxxxxxxxxx
0x10000xxxxxxxxxxx
The above command wil help you to find the WWN's of fibre channel. This command will list all the WWN's of your Server.

To find any EMC or Storage added to server
 # cat /proc/scsi/scsi
OUTPUT:
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: xxxx     Model: DV-28S-W         Rev: C.2D
  Type:   CD-ROM                           ANSI SCSI revision: 05

The topic on Linux - How to check fiber channel wwn of server is posted by - Math

Hope you have enjoyed, Linux - How to check fiber channel wwn of serverThanks for your time

Tech Bluff