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).
1 |
systool -c fc_host -v |
which, on my test system (unconnected to a SAN fabric at the time of running this) gives.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
$ 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…
1 |
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;
1 |
ssystool -m qla2xxx -v |
which gives.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
$ 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 |
Leave a Reply