World Wide Name (WWN) is required to create zoning on Fiber Channel Switch and storage allocation to server. There are two ways to extract WWN number on Linux which are follows:
. Using Internal Linux command
. Using systool utility
In this guide, we’ll see both of them one by one.
. Red Hat Enterprise Linux 8.1 Installation with Screenshots
Extract WWN Using Linux Internal command
First, let us find out how many (Host Bus Adapter) HBAs are available or installed on the server.
Use following command to list the HBA on the server (Click on picture below to enlarge it).
Step 2: Now, Let us find the WWN Number.
Following command to list the WWN, If you have more than one HBA, replace ‘host11’ or ‘host12’ with HostN (Click on picture below to enlarge it).
# cat /sys/class/fc_host/host11/node_name (For Host11)
# cat /sys/class/fc_host/host12/node_name (For Host12)
Method to extract the WWN on Linux Server using systool utility
Install systool utility.
Systool package is available on default repository. Follow the link below to create ‘yum’ or ‘dnf’ repository.
. How to Create an Apache-based YUM/DNF Repository on CentOS and RedHat Linux 8
For RHEL/CentOS 7 Linux:
# yum install -y sysfsutils
For RHEL/CentOS 8 Linux:
# dnf install -y sysfsutils
Once the tool is installed run the following command to find WWN number (Click on picture below to enlarge it).
# systool -c fc_host -v | grep port_name
Run the following command to check the state of HBA ports (Click on picture below to enlarge it).
# systool -c fc_host -v | grep port_state
In the above steps, we have seen how to extract WWN number in Linux Server. Below steps describe How to retrieve World Wide Names (WWNs) on Windows Server.
. For Windows Server 2008 R2 and R2 Service Pack 1
Download and Install Fibre Channel Infomation (fcinfo) tool from Microsoft Download Center. Once done, run “fcinfo” command from PowerShell prompt.
. For Windows Server 2012, 2012 R2 and 2016
“Storage Explorer” Starts from Windows Server 2012 was removed. You can use PowerShell to find the WWN in Windows Server 2012, 2012 R2 and 2016 as shown below. Run “Get-InitiatorPort” command from PowerShell prompt (Click on picture below to enlarge it).
Note: If you are unable to retrieve WWNs with above methods, refer to your Host Bus Adapters (HBA) documentation to collect the information.
That’s it. We have seen some easy steps to find WWNs number in Linux and Winodws Server. Big thanks for reading all the way to the end. Please share it with Your Friends & Help Someone. Also Like Our tecluesdotcom Facebook Page. Let me hear your thoughts in the comment box below!