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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • 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. CentOS / RHEL : How to add a null route in Linux
  2. How to Verify the Syntax of the file /etc/ssh/sshd_config
  3. faketime: command not found
  4. “Connection reset by peer” – error while ssh into a CentOS/RHEL system with a specific user only
  5. How to allow only specific non-root user(s) to use crontab
  6. Why Does “netstat” Output Show Many Connections in CLOSE_WAIT Status?
  7. Getting info with the vsish command (esxi only)
  8. How to enable IPv6 on CentOS / RHEL 6
  9. Difference between soft links and hard links in Linux
  10. How to Capture More Logs in /var/log/dmesg for CentOS/RHEL

You May Also Like

Primary Sidebar

Recent Posts

  • nixos-rebuild Command Examples in Linux
  • nixos-option: Command Examples in Linux
  • nixos-container : Command Examples in Linux
  • nitrogen Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright