Redhat Server查看HBA和WWN的方法

RedHat下查看wwn是件麻烦事,有的人说用vendor自带的工具查,有的说可以看/proc/scsi/下的某个目录文件,偏偏我遇到的,这些都看不见,虽然使用的是QLogic,但是系统没安装,未经许可也不方便随便安装这些软件,只能另想办法。

查了很多资料,终于知道有个命令systool可以实现

[ tmp]# systool -c fc_host -v
Class = "fc_host"

Class Device = "host13"
  Class Device path = "/sys/class/fc_host/host13"
    fabric_name         = "0xxxxxxxxxxxxx"
    issue_lip           = <store method only>
    node_name           = "0xxxxxxxxxxx"
    port_id             = "0x331400"
    port_name           = "0xxxxxxxxxxx"
    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              = <store method only>

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          = <store method only>
      optrom              =
      reset               = <store method only>
      sfp                 = ""
      uevent              = <store method only>
      vpd                 = "?0"


  Class Device = "host14"
  Class Device path = "/sys/class/fc_host/host14"
    fabric_name         = "0xxxxxxxxxxx"
    issue_lip           = <store method only>
    node_name           = "0xxxxxxxxxxx"
    port_id             = "0x331400"
    port_name           = "0xxxxxxxxxxx"
    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              = <store method only>

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          = <store method only>
      optrom              =
      reset               = <store method only>
      sfp                 = ""
      uevent              = <store method only>
      vpd                 = "?0"

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/e36f86e1d037961bbb5395bfc2ce14b9.html