How to view hba and wwn on RedhatServer

Source: Internet
Author: User
Checking wwn under RedHat is troublesome. Some people say that they use tools provided by vendor, and some say they can view a directory file under/proc/scsi, these are invisible. Although QLogic is used, the system is not installed, and it is not convenient to install the software without permission. You can only find another method. Check a lot of information, finally know that there is a command ool can achieve [tmp] # systool-cfc_host-vClass = "fc_host"

Checking wwn under RedHat is troublesome. Some people say that they use tools provided by vendor, and some say they can view a directory file under/proc/scsi, these are invisible. Although QLogic is used, the system is not installed, and it is not convenient to install the software without permission. You can only find another method.

I checked a lot of information and finally learned that there is a command systool to implement

[Tmp] # ool OOl-c fc_host-v
Class = "fc_host"

Class Device = "host13"
Class Device path = "/sys/class/fc_host/host13"
Fabric_name = "0 xxxxxxxxxxxxx"
Issue_lip =
Node_name = "0 xxxxxxxxxxx"
Port_id = "0x331400"
Port_name = "0 xxxxxxxxxxx"
Port_state = "Online"
Port_type = "NPort (fabric via point-to-point )"
Speed = "4 Gbit"
Supported_classes = "Class 3"
Supported_speeds = "1 Gbit, 2 Gbit, 4 Gbit"
Symbolic_name = "QLE2460 FW: v4.04.09 DVR: v8.03.01.04.05.05-k"
System_hostname = ""
Tgtid_bind_type = "wwpn (World Wide Port Name )"
Uevent =

Device = "host13"
Device path = "/sys/devices/pci0000: 00/0000: 00: 0a. 0/0000: 02: 00.0/host13"
Ct =
Els =
Fw_dump =
Nvram = "ISP"
Optrom_ctl =
Optrom =
Reset =
Sfp = ""
Uevent =
Vpd = "? 0"


Class Device = "host14"
Class Device path = "/sys/class/fc_host/host14"
Fabric_name = "0 xxxxxxxxxxx"
Issue_lip =
Node_name = "0 xxxxxxxxxxx"
Port_id = "0x331400"
Port_name = "0 xxxxxxxxxxx"
Port_state = "Online"
Port_type = "NPort (fabric via point-to-point )"
Speed = "4 Gbit"
Supported_classes = "Class 3"
Supported_speeds = "1 Gbit, 2 Gbit, 4 Gbit"
Symbolic_name = "QLE2460 FW: v4.04.09 DVR: v8.03.01.04.05.05-k"
System_hostname = ""
Tgtid_bind_type = "wwpn (World Wide Port Name )"
Uevent =

Device = "host14"
Device path = "/sys/devices/pci0000: 80/0000: 80: 0b. 0/0000: 81: 00.0/host14"
Ct =
Els =
Fw_dump =
Nvram = "ISP"
Optrom_ctl =
Optrom =
Reset =
Sfp = ""
Uevent =
Vpd = "? 0"

We can see that the OS recognizes two hbas as host13 and host14 (HMM ~~ The style is different from that of solaris ). Generally, a card
Node_name and port_name are the wwn of the HBA, and their values are the same. Speed and other parameters in this column are listed for you.

You can also use the plug-in tool to see which devices your plug-in is connected to (or which storage devices you can see ).

[Tmp] # ool OOl-c fc_remote_ports-v | more
Class = "fc_remote_ports"

Class Device = "0-0"
Class Device path = "/sys/class/fc_remote_ports/rport-13: 0-0"
Dev_loss_tmo = "60"
Fast_io_fail_tmo = "off"
Node_name = "0 xxxxxxxxxxxx"
Port_id = "0x330400"
Port_name = "0 xxxxxxxxxxx"
Port_state = "Online"
Roles = "FCP Initiator"
Scsi_target_id = "-1"
Supported_classes = "Class 3"
Uevent =
....

For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.