List HBAs: Difference between revisions

From UNIX Systems Administration
Jump to navigation Jump to search
 
Line 13: Line 13:
==== Location of defined HBAs ====
==== Location of defined HBAs ====
# Information regarding the HBAs is located in the following directory
# Information regarding the HBAs is located in the following directory
#: <tt>'''/sys/class/fc_host/host#/*'''</tt>
#:: <tt>'''/sys/class/fc_host/host#/*'''</tt>
*:: View the Port State
#: View the Port State
#::: <tt>'''cat /sys/class/fc_host/host#/port_state'''</tt>
#:: <tt>'''cat /sys/class/fc_host/host#/port_state'''</tt>
##: View the WWPN
#: View the WWPN
#::: <tt>'''cat /sys/class/fc_host/host#/port_name'''</tt>
#:: <tt>'''cat /sys/class/fc_host/host#/port_name'''</tt>
##: View the Port Speed
#: View the Port Speed
#::: <tt>'''cat /sys/class/fc_host/host#/speed'''</tt>
#:: <tt>'''cat /sys/class/fc_host/host#/speed'''</tt>

Latest revision as of 19:19, 2 April 2026

Using systool

  1. To install systool
    # yum install sysfsutils
  2. Use systool to display all WWPNs
    # systool -c fc_host -v | grep port_name
  3. Use systool to display attributes of a specific fc_host
    # systool -ac fc_host <host#> -v

Using lspci

  1. Use lspci to display available HBAs
    # lspci -nn | grep -i hba

Location of defined HBAs

  1. Information regarding the HBAs is located in the following directory
    /sys/class/fc_host/host#/*
    View the Port State
    cat /sys/class/fc_host/host#/port_state
    View the WWPN
    cat /sys/class/fc_host/host#/port_name
    View the Port Speed
    cat /sys/class/fc_host/host#/speed