redhat linux系統下檢視Emulex HBA卡基本命令

sxitsxit發表於2017-05-31
如果沒有載入正確的驅動,則有些資訊,比如HBA的Link Speed可能無法獲得,比如
[root@rac2 ~]# lspci
00:00.0 Host bridge: Intel Corporation 5520/5500/X58 I/O Hub to ESI Port (rev 22)
00:01.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 1 (rev 22)
00:03.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 3 (rev 22)
00:05.0 PCI bridge: Intel Corporation 5520/X58 I/O Hub PCI Express Root Port 5 (rev 22)
00:07.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 7 (rev 22)
00:09.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 9 (rev 22)
00:10.0 PIC: Intel Corporation 5520/5500/X58 Physical and Link Layer Registers Port 0 (rev 22)
00:10.1 PIC: Intel Corporation 5520/5500/X58 Routing and Protocol Layer Registers Port 0 (rev 22)
00:11.0 PIC: Intel Corporation 5520/5500 Physical and Link Layer Registers Port 1 (rev 22)
00:11.1 PIC: Intel Corporation 5520/5500 Routing & Protocol Layer Register Port 1 (rev 22)
00:14.0 PIC: Intel Corporation 5520/5500/X58 I/O Hub System Management Registers (rev 22)
00:14.1 PIC: Intel Corporation 5520/5500/X58 I/O Hub GPIO and Scratch Pad Registers (rev 22)
00:14.2 PIC: Intel Corporation 5520/5500/X58 I/O Hub Control Status and RAS Registers (rev 22)
00:16.0 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
00:16.1 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
00:16.2 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
00:16.3 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
00:16.4 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
00:16.5 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
00:16.6 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
00:16.7 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
00:1a.0 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #4
00:1a.1 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #5
00:1a.2 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #6
00:1a.7 USB controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #2
00:1c.0 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 1
00:1c.4 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 5
00:1d.0 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #1
00:1d.1 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #2
00:1d.2 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #3
00:1d.7 USB controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #1
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 90)
00:1f.0 ISA bridge: Intel Corporation 82801JIB (ICH10) LPC Interface Controller
00:1f.2 IDE interface: Intel Corporation 82801JI (ICH10 Family) 4 port SATA IDE Controller #1
00:1f.3 SMBus: Intel Corporation 82801JI (ICH10 Family) SMBus Controller
02:00.0 PCI bridge: Vitesse Semiconductor VSC452 [SuperBMC] (rev 01)
03:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G200EV
04:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
04:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
09:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 2108 [Liberator] (rev 05)
13:00.0 Fibre Channel: Emulex Corporation Saturn-X: LightPulse Fibre Channel Host Adapter (rev 03)
40:00.0 PCI bridge: Intel Corporation 5500 Non-Legacy I/O Hub PCI Express Root Port 0 (rev 22)
40:01.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 1 (rev 22)
40:03.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 3 (rev 22)
40:07.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 7 (rev 22)
40:09.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 9 (rev 22)
40:10.0 PIC: Intel Corporation 5520/5500/X58 Physical and Link Layer Registers Port 0 (rev 22)
40:10.1 PIC: Intel Corporation 5520/5500/X58 Routing and Protocol Layer Registers Port 0 (rev 22)
40:11.0 PIC: Intel Corporation 5520/5500 Physical and Link Layer Registers Port 1 (rev 22)
40:11.1 PIC: Intel Corporation 5520/5500 Routing & Protocol Layer Register Port 1 (rev 22)
40:14.0 PIC: Intel Corporation 5520/5500/X58 I/O Hub System Management Registers (rev 22)
40:14.1 PIC: Intel Corporation 5520/5500/X58 I/O Hub GPIO and Scratch Pad Registers (rev 22)
40:14.2 PIC: Intel Corporation 5520/5500/X58 I/O Hub Control Status and RAS Registers (rev 22)
40:16.0 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
40:16.1 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
40:16.2 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
40:16.3 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
40:16.4 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
40:16.5 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
40:16.6 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
40:16.7 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
46:00.0 Fibre Channel: Emulex Corporation Saturn-X: LightPulse Fibre Channel Host Adapter (rev 03)
80:00.0 Host bridge: Intel Corporation 5520/5500/X58 I/O Hub to ESI Port (rev 22)
80:01.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 1 (rev 22)
80:03.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 3 (rev 22)
80:05.0 PCI bridge: Intel Corporation 5520/X58 I/O Hub PCI Express Root Port 5 (rev 22)
80:07.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 7 (rev 22)
80:09.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 9 (rev 22)
80:10.0 PIC: Intel Corporation 5520/5500/X58 Physical and Link Layer Registers Port 0 (rev 22)
80:10.1 PIC: Intel Corporation 5520/5500/X58 Routing and Protocol Layer Registers Port 0 (rev 22)
80:11.0 PIC: Intel Corporation 5520/5500 Physical and Link Layer Registers Port 1 (rev 22)
80:11.1 PIC: Intel Corporation 5520/5500 Routing & Protocol Layer Register Port 1 (rev 22)
80:14.0 PIC: Intel Corporation 5520/5500/X58 I/O Hub System Management Registers (rev 22)
80:14.1 PIC: Intel Corporation 5520/5500/X58 I/O Hub GPIO and Scratch Pad Registers (rev 22)
80:14.2 PIC: Intel Corporation 5520/5500/X58 I/O Hub Control Status and RAS Registers (rev 22)
80:16.0 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
80:16.1 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
80:16.2 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
80:16.3 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
80:16.4 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
80:16.5 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
80:16.6 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
80:16.7 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
80:1a.0 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #4
80:1a.1 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #5
80:1a.2 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #6
80:1a.7 USB controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #2
80:1d.0 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #1
80:1d.1 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #2
80:1d.2 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #3
80:1d.7 USB controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #1
80:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 90)
80:1f.0 ISA bridge: Intel Corporation 82801JIB (ICH10) LPC Interface Controller
81:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
81:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
c0:00.0 PCI bridge: Intel Corporation 5500 Non-Legacy I/O Hub PCI Express Root Port 0 (rev 22)
c0:01.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 1 (rev 22)
c0:03.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 3 (rev 22)
c0:07.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 7 (rev 22)
c0:09.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 9 (rev 22)
c0:10.0 PIC: Intel Corporation 5520/5500/X58 Physical and Link Layer Registers Port 0 (rev 22)
c0:10.1 PIC: Intel Corporation 5520/5500/X58 Routing and Protocol Layer Registers Port 0 (rev 22)
c0:11.0 PIC: Intel Corporation 5520/5500 Physical and Link Layer Registers Port 1 (rev 22)
c0:11.1 PIC: Intel Corporation 5520/5500 Routing & Protocol Layer Register Port 1 (rev 22)
c0:14.0 PIC: Intel Corporation 5520/5500/X58 I/O Hub System Management Registers (rev 22)
c0:14.1 PIC: Intel Corporation 5520/5500/X58 I/O Hub GPIO and Scratch Pad Registers (rev 22)
c0:14.2 PIC: Intel Corporation 5520/5500/X58 I/O Hub Control Status and RAS Registers (rev 22)
c0:16.0 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
c0:16.1 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
c0:16.2 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
c0:16.3 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
c0:16.4 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
c0:16.5 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
c0:16.6 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
c0:16.7 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
[root@racin2 ~]#

從紅色字型只能知道該卡是emulex的FC HBA,但是不知道是什麼型號的;進一步:
這個時候可以通過lspci命令直接檢視晶片組資訊,比如:
[root@rac2 ~]# lspci |grep Emulex
13:00.0 Fibre Channel: Emulex Corporation Saturn-X: LightPulse Fibre Channel Host Adapter (rev 03)
46:00.0 Fibre Channel: Emulex Corporation Saturn-X: LightPulse Fibre Channel Host Adapter (rev 03)
 
[root@rac2 ~]# lspci -n
00:00.0 0600: 8086:3407 (rev 22)
00:01.0 0604: 8086:3408 (rev 22)
00:03.0 0604: 8086:340a (rev 22)
00:05.0 0604: 8086:340c (rev 22)
00:07.0 0604: 8086:340e (rev 22)
00:09.0 0604: 8086:3410 (rev 22)
00:10.0 0800: 8086:3425 (rev 22)
00:10.1 0800: 8086:3426 (rev 22)
00:11.0 0800: 8086:3427 (rev 22)
00:11.1 0800: 8086:3428 (rev 22)
00:14.0 0800: 8086:342e (rev 22)
00:14.1 0800: 8086:3422 (rev 22)
00:14.2 0800: 8086:3423 (rev 22)
00:16.0 0880: 8086:3430 (rev 22)
00:16.1 0880: 8086:3431 (rev 22)
00:16.2 0880: 8086:3432 (rev 22)
00:16.3 0880: 8086:3433 (rev 22)
00:16.4 0880: 8086:3429 (rev 22)
00:16.5 0880: 8086:342a (rev 22)
00:16.6 0880: 8086:342b (rev 22)
00:16.7 0880: 8086:342c (rev 22)
00:1a.0 0c03: 8086:3a37
00:1a.1 0c03: 8086:3a38
00:1a.2 0c03: 8086:3a39
00:1a.7 0c03: 8086:3a3c
00:1c.0 0604: 8086:3a40
00:1c.4 0604: 8086:3a48
00:1d.0 0c03: 8086:3a34
00:1d.1 0c03: 8086:3a35
00:1d.2 0c03: 8086:3a36
00:1d.7 0c03: 8086:3a3a
00:1e.0 0604: 8086:244e (rev 90)
00:1f.0 0601: 8086:3a18
00:1f.2 0101: 8086:3a20
00:1f.3 0c05: 8086:3a30
02:00.0 0604: 101b:0452 (rev 01)
03:00.0 0300: 102b:0530
04:00.0 0200: 14e4:1639 (rev 20)
04:00.1 0200: 14e4:1639 (rev 20)
09:00.0 0104: 1000:0079 (rev 05)
13:00.0 0c04: 10df:f100 (rev 03)
40:00.0 0604: 8086:3420 (rev 22)
40:01.0 0604: 8086:3408 (rev 22)
40:03.0 0604: 8086:340a (rev 22)
40:07.0 0604: 8086:340e (rev 22)
40:09.0 0604: 8086:3410 (rev 22)
40:10.0 0800: 8086:3425 (rev 22)
40:10.1 0800: 8086:3426 (rev 22)
40:11.0 0800: 8086:3427 (rev 22)
40:11.1 0800: 8086:3428 (rev 22)
40:14.0 0800: 8086:342e (rev 22)
40:14.1 0800: 8086:3422 (rev 22)
40:14.2 0800: 8086:3423 (rev 22)
40:16.0 0880: 8086:3430 (rev 22)
40:16.1 0880: 8086:3431 (rev 22)
40:16.2 0880: 8086:3432 (rev 22)
40:16.3 0880: 8086:3433 (rev 22)
40:16.4 0880: 8086:3429 (rev 22)
40:16.5 0880: 8086:342a (rev 22)
40:16.6 0880: 8086:342b (rev 22)
40:16.7 0880: 8086:342c (rev 22)
46:00.0 0c04: 10df:f100 (rev 03)
80:00.0 0600: 8086:3407 (rev 22)
80:01.0 0604: 8086:3408 (rev 22)
80:03.0 0604: 8086:340a (rev 22)
80:05.0 0604: 8086:340c (rev 22)
80:07.0 0604: 8086:340e (rev 22)
80:09.0 0604: 8086:3410 (rev 22)
80:10.0 0800: 8086:3425 (rev 22)
80:10.1 0800: 8086:3426 (rev 22)
80:11.0 0800: 8086:3427 (rev 22)
80:11.1 0800: 8086:3428 (rev 22)
80:14.0 0800: 8086:342e (rev 22)
80:14.1 0800: 8086:3422 (rev 22)
80:14.2 0800: 8086:3423 (rev 22)
80:16.0 0880: 8086:3430 (rev 22)
80:16.1 0880: 8086:3431 (rev 22)
80:16.2 0880: 8086:3432 (rev 22)
80:16.3 0880: 8086:3433 (rev 22)
80:16.4 0880: 8086:3429 (rev 22)
80:16.5 0880: 8086:342a (rev 22)
80:16.6 0880: 8086:342b (rev 22)
80:16.7 0880: 8086:342c (rev 22)
80:1a.0 0c03: 8086:3a37
80:1a.1 0c03: 8086:3a38
80:1a.2 0c03: 8086:3a39
80:1a.7 0c03: 8086:3a3c
80:1d.0 0c03: 8086:3a34
80:1d.1 0c03: 8086:3a35
80:1d.2 0c03: 8086:3a36
80:1d.7 0c03: 8086:3a3a
80:1e.0 0604: 8086:244e (rev 90)
80:1f.0 0601: 8086:3a18
81:00.0 0200: 14e4:1639 (rev 20)
81:00.1 0200: 14e4:1639 (rev 20)
c0:00.0 0604: 8086:3420 (rev 22)
c0:01.0 0604: 8086:3408 (rev 22)
c0:03.0 0604: 8086:340a (rev 22)
c0:07.0 0604: 8086:340e (rev 22)
c0:09.0 0604: 8086:3410 (rev 22)
c0:10.0 0800: 8086:3425 (rev 22)
c0:10.1 0800: 8086:3426 (rev 22)
c0:11.0 0800: 8086:3427 (rev 22)
c0:11.1 0800: 8086:3428 (rev 22)
c0:14.0 0800: 8086:342e (rev 22)
c0:14.1 0800: 8086:3422 (rev 22)
c0:14.2 0800: 8086:3423 (rev 22)
c0:16.0 0880: 8086:3430 (rev 22)
c0:16.1 0880: 8086:3431 (rev 22)
c0:16.2 0880: 8086:3432 (rev 22)
c0:16.3 0880: 8086:3433 (rev 22)
c0:16.4 0880: 8086:3429 (rev 22)
c0:16.5 0880: 8086:342a (rev 22)
c0:16.6 0880: 8086:342b (rev 22)
c0:16.7 0880: 8086:342c (rev 22)

通過查詢10df:f100,可以知道該卡是emulex的8Gb FC HBA LPe12000:

[root@rac2 ~]# cat /sys/class/scsi_host/host1/lpfc_drvr_version
Emulex LightPulse Fibre Channel SCSI driver 8.3.5.68.5p

[root@rac2 ~]# cat /sys/class/scsi_host/host1/lpfc_drvr_version //或者cat /sys/class/scsi_host/host2/lpfc_drvr_version;
Emulex LightPulse Fibre Channel SCSI driver 8.3.5.68.5p
Emulex LightPulse Fibre Channel SCSI driver 8.3.5.68.5p

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24862808/viewspace-2140095/,如需轉載,請註明出處,否則將追究法律責任。

相關文章