Friday 21 October 2022

How to find WWN Name of a QLogic Card on CentOS 7



CentOS 7 community provides a utility systool to work with hardware adapters. The utility comes with sysfsutils package and this package by default not installed on  CentOS 7 systems. 
 
This article describes How to find WWN name of a QLogic Card on CentOS 7.
 
Step 1. Systool Installation: Follow the article How to resolve “-bash: systool: command not found” on CentOS 7.
 
Step 2. Systool command: Run the following command to get WWN name:
 
[root@linuxcnf ~]# systool -c fc_host -v
……………………..
……………………..
[root@linuxcnf ~]#
 
If systool command is not installed, the WWN name can look at the information directly within the sysfs tree:
 
[root@linuxcnf ~]# grep -v “ZzZz” /sys/class/scsi_host/host*/device/fc_host/*/*_name
……………………..
……………………..
[root@linuxcnf ~]#
 
Done!!! WWN names can be get with the above solutions on CentOS 7.

No comments:

Post a Comment