Centos system query metrics card model

Source: Internet
Author: User
System environment: the Centos system server needs to be connected to external storage and connected through optical fiber cables. you need to query the host card model when getting the interface. the command is as follows: [root @ localhost ~] # Lspci | grep-ifibre84: 00.0 fiber rechannel: QLogicCorp. ISP2532-based8GbFibreChanneltoPCI

System environment: Centos system

The server needs to connect to external storage and connect to it through optical fiber cables. you need to query the host card model when getting the interface. the command is as follows:
 

[Root @ localhost ~] # Lspci | grep-I fiber

84: 00.0 fiber Channel: QLogic Corp. ISP2532-based 8 Gb fiber Channel to PCI Express HBA (rev 02)

84: 00.1 fiber Channel: QLogic Corp. ISP2532-based 8 Gb fiber Channel to PCI Express HBA (rev 02)

[Root @ localhost ~] # Cd/sys/class/fc_host/

[Root @ localhost fc_host] # ll

Total usage 0

Lrwxrwxrwx. 1 root 0 December 11 14:57 host6->.../devices/pci0000: 80/0000: 80: 03.0/0000: 84: 00.0/host6/fc_host/host6

Lrwxrwxrwx. 1 root 0 December 11 14:57 host7->.../devices/pci0000: 80/0000: 80: 03.0/0000: 84: 00.1/host7/fc_host/host7

[Root @ localhost fc_host] # ls/sys/class/fc_host/

Host6 host7

[Root @ localhost fc_host] # cat/sys/class/fc_host/host6/port_name

0x2000024ff8fa016

[Root @ localhost fc_host] # cat/sys/class/fc_host/host7/port_name

0x2000024ff8fa017


The bold section above is the HBA card model.

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.