how to find WWN in FC Fabric

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

ITMAN

New Member
May 1, 2022
9
0
1
Hi All,
I have many server with FC HBAs that connect to SAN Switch,
I have a Linux server, do exist solution for find and show WWNs of other servers in fabric in my server?

Thanks for your Helps,
 

acquacow

Well-Known Member
Feb 15, 2017
786
439
63
42
can you help me,Please?
Install ansible on a single host, make an inventory file of all of your linux hosts.

Use ansible to run an ad-hoc command on all hosts in parallel to list the WWNs using the article I linked you above as a reference on where to find said WWNs.

eg: ansible all -i linux.inventory -m shell -a " cat /sys/class/fc_host/host*/port_name"
 

cesmith9999

Well-Known Member
Mar 26, 2013
1,420
470
83
The fabric switch will also list any storage devices on the fabric.

I used to do the same thing with my windows hosts in powershell.

I ran a separate script to list all of the wwn to compare the lists with. It was not hard to do over ssh.

Chris