• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

find WWN Number of HBA Card in Redhat Linux and CentOS

by admin

If our Linux box is connected to one or more SAN switches via Fibre HBA cards. So it becomes very important to the Storage Team that they assign the storage to the correct Servers via WWN numbers of Fibre HBA Cards. So To find the WWN number of HBA cards in Linux use the below command:

# systool -c fc_host -v | grep "port_name"

Sample Output:

port_name   = "0x5001438001347fdc"
port_name   = "0x5001438001347fde"
port_name   = "0x50014380013471f0"
port_name   = "0x50014380013471f2"

systool command is provided by the rpm package “sysfsutils“.

Alternate Method

You can also use the below command, if you do not have the package sysfsutils installed on your system:

# cat /sys/class/scsi_host/hostN/device/fc_host/hostN/port_name

Where “N” is the number of devices for your fiber HBAs.

Filed Under: CentOS/RHEL, Linux

Some more articles you might also be interested in …

  1. imgp: command not found
  2. 5 Useful Command Examples to Monitor User Activity under Linux
  3. “az config” Command Examples (Manage Azure CLI configuration)
  4. CentOS / RHEL : How to create and host yum repository over httpd
  5. chattr: command not found
  6. How to run ssh on multiple ports
  7. chpasswd Command Examples in Linux
  8. Basic “ls” Command examples in Linux
  9. colrm : command not found
  10. archlinux-java: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • gixy Command Examples
  • gitsome Command Examples
  • gitmoji Command Examples
  • gitlint Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright