DevTech101

DevTech101

Getting HBA detail information in Linux by using systool

Lets get into the details with a few worked examples.
First of, a command to show basic Fiber Channel info (actually quite useful when you’re getting the hang of what’s on a system).

systool -c fc_host -v

which, on my test system (unconnected to a SAN fabric at the time of running this) gives.

$ systool -c fc_host -v
Class = "fc_host"

...
Class Device = "host2"
Class Device path = "/sys/devices/pci0000:00/0000:00:02.0/0000:09:00.0/0000:0a:00.0/0000:0b:00.0/host2/fc_host/host2"
dev_loss_tmo = "16"
fabric_name = "0xffffffffffffffff"
node_name = "0x500143800133ad65"
port_name = "0x500143800133ad64"
port_state = "Online"
port_type = "Unknown"
speed = "unknown"
supported_classes = "Class 3"
supported_speeds = "1 Gbit, 2 Gbit, 4 Gbit"
symbolic_name = "HPAE312A FW:v4.04.04 DVR:v8.03.07.03-k"
system_hostname = ""
tgtid_bind_type = "wwpn (World Wide Port Name)"

..and so on. I’ve trimmed some of the output for brevity, but you get the idea. You may also want to show connected WWNN’s, which you can do with…

systool -c fc_remote_ports -v -d

Since the /sys filesystem also contains information on kernel modules currently loaded, you can also query assorted information from the FC module itself;

ssystool -m qla2xxx -v

which gives.

$ systool -m qla2xxx -v
Module = "qla2xxx"
...
Attributes:
initstate = "live"
refcnt = "0"
srcversion = "5E2862BE1CA7563239F1A1E"
version = "8.03.07.03-k"

Parameters:
ql2xallocfwdump = "1"
ql2xasynctmfenable = "0"
ql2xdbwr = "1"
ql2xdontresethba = "0"
ql2xenabledif = "1"
ql2xenablehba_err_chk= "0"
ql2xetsenable = "0"
ql2xextended_error_logging= "0"
ql2xfdmienable = "1"
ql2xfwloadbin = "0"
ql2xgffidenable = "0"
ql2xiidmaenable = "1"
ql2xloginretrycount = "0"
ql2xlogintimeout = "20"
ql2xmaxlun = "65535"
ql2xmaxqdepth = "32"
ql2xmaxqueues = "1"
ql2xmultique_tag = "0"
ql2xplogiabsentdevice= "0"
ql2xshiftctondsd = "6"
ql2xtargetreset = "1"
qlport_down_retry = "0"

.. and more
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
%d bloggers like this: