List HBAs: Difference between revisions

From UNIX Systems Administration
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
# To install systool
# To install systool
#: <tt>'''# yum install sysfsutils'''</tt>
#: <tt>'''# yum install sysfsutils'''</tt>
# Use <tt>'''systool'''</tt> to display WWPN
# Use <tt>'''systool'''</tt> to display all WWPNs
#: <tt>'''# systool -c fc_host -v | grep port_name'''</tt>
#: <tt>'''# systool -c fc_host -v | grep port_name'''</tt>
# Use <tt>'''systool'''</tt> to display attributes of a specific fc_host
#: <tt>'''# systool -ac fc_host <host#> -v'''</tt>


==== Using <tt>lspci</tt> ====
==== Using <tt>lspci</tt> ====

Revision as of 14:57, 28 March 2017

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#/*
    1. View the Port State
    cat /sys/class/fc_host/host#/port_state
    1. View the WWPN
    cat /sys/class/fc_host/host#/port_name
    1. View the Port Speed
    cat /sys/class/fc_host/host#/speed