List HBAs: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
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 | # 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> ==== | ||
Line 13: | Line 15: | ||
#: <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>'''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>'''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>'''cat /sys/class/fc_host/host#/speed'''</tt> |
Latest revision as of 01:50, 3 November 2021
Using systool
- To install systool
- # yum install sysfsutils
- Use systool to display all WWPNs
- # systool -c fc_host -v | grep port_name
- Use systool to display attributes of a specific fc_host
- # systool -ac fc_host <host#> -v
Using lspci
- Use lspci to display available HBAs
- # lspci -nn | grep -i hba
Location of defined HBAs
- 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