このエントリーをはてなブックマークに追加

PCIデバイスを確認するにはlspciというコマンドが利用可能です。

$ sudo yum -y install pciutils
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: www.ftp.ne.jp
* epel: ftp.iij.ad.jp
* extras: www.ftp.ne.jp
* rpmforge: mirror.fairway.ne.jp
* updates: www.ftp.ne.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package pciutils.x86_64 0:3.1.10-2.el6 will be installed
--> Processing Dependency: pciutils-libs = 3.1.10-2.el6 for package: pciutils-3.1.10-2.el6.x86_64
--> Running transaction check
---> Package pciutils-libs.x86_64 0:3.1.4-11.el6 will be updated
---> Package pciutils-libs.x86_64 0:3.1.10-2.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================
Package                       Arch       Version       Repository           Size
===================================================================================
Installing:
pciutils                      x86_64     3.1.10-2.el6  base                 85 k
Updating for dependencies:
pciutils-libs                 x86_64     3.1.10-2.el6  base                 34 k

Transaction Summary
===================================================================================
Install       1 Package(s)
Upgrade       1 Package(s)

Total download size: 119 k
Downloading Packages:
(1/2): pciutils-3.1.10-2.el6.x86_64.rpm                          |  85 kB     00:01
(2/2): pciutils-libs-3.1.10-2.el6.x86_64.rpm                     |  34 kB     00:00
-----------------------------------------------------------------------------------
Total                                                    12 kB/s | 119 kB     00:09
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating   : pciutils-libs-3.1.10-2.el6.x86_64                               1/3
Installing : pciutils-3.1.10-2.el6.x86_64                                    2/3
Cleanup    : pciutils-libs-3.1.4-11.el6.x86_64                               3/3
Verifying  : pciutils-libs-3.1.10-2.el6.x86_64                               1/3
Verifying  : pciutils-3.1.10-2.el6.x86_64                                    2/3
Verifying  : pciutils-libs-3.1.4-11.el6.x86_64                               3/3

Installed:
pciutils.x86_64 0:3.1.10-2.el6

Dependency Updated:
pciutils-libs.x86_64 0:3.1.10-2.el6

Complete!

VMWare上のCentOS 6.4でそのまま実行した結果が以下の通りです。

$ lspci
00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 01)
00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 01)
00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 08)
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
00:07.7 System peripheral: VMware Virtual Machine Communication Interface (rev 10)
00:0f.0 VGA compatible controller: VMware SVGA II Adapter
00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)
00:11.0 PCI bridge: VMware PCI bridge (rev 02)
00:15.0 PCI bridge: VMware PCI Express Root Port (rev 01)
00:15.1 PCI bridge: VMware PCI Express Root Port (rev 01)
00:15.2 PCI bridge: VMware PCI Express Root Port (rev 01)
00:15.3 PCI bridge: VMware PCI Express Root Port (rev 01)
00:15.4 PCI bridge: VMware PCI Express Root Port (rev 01)
00:15.5 PCI bridge: VMware PCI Express Root Port (rev 01)
00:15.6 PCI bridge: VMware PCI Express Root Port (rev 01)
00:15.7 PCI bridge: VMware PCI Express Root Port (rev 01)
00:16.0 PCI bridge: VMware PCI Express Root Port (rev 01)
00:16.1 PCI bridge: VMware PCI Express Root Port (rev 01)
00:16.2 PCI bridge: VMware PCI Express Root Port (rev 01)
00:16.3 PCI bridge: VMware PCI Express Root Port (rev 01)
00:16.4 PCI bridge: VMware PCI Express Root Port (rev 01)
00:16.5 PCI bridge: VMware PCI Express Root Port (rev 01)
00:16.6 PCI bridge: VMware PCI Express Root Port (rev 01)
00:16.7 PCI bridge: VMware PCI Express Root Port (rev 01)
00:17.0 PCI bridge: VMware PCI Express Root Port (rev 01)
00:17.1 PCI bridge: VMware PCI Express Root Port (rev 01)
00:17.2 PCI bridge: VMware PCI Express Root Port (rev 01)
00:17.3 PCI bridge: VMware PCI Express Root Port (rev 01)
00:17.4 PCI bridge: VMware PCI Express Root Port (rev 01)
00:17.5 PCI bridge: VMware PCI Express Root Port (rev 01)
00:17.6 PCI bridge: VMware PCI Express Root Port (rev 01)
00:17.7 PCI bridge: VMware PCI Express Root Port (rev 01)
00:18.0 PCI bridge: VMware PCI Express Root Port (rev 01)
00:18.1 PCI bridge: VMware PCI Express Root Port (rev 01)
00:18.2 PCI bridge: VMware PCI Express Root Port (rev 01)
00:18.3 PCI bridge: VMware PCI Express Root Port (rev 01)
00:18.4 PCI bridge: VMware PCI Express Root Port (rev 01)
00:18.5 PCI bridge: VMware PCI Express Root Port (rev 01)
00:18.6 PCI bridge: VMware PCI Express Root Port (rev 01)
00:18.7 PCI bridge: VMware PCI Express Root Port (rev 01)
02:00.0 USB controller: VMware USB1.1 UHCI Controller
02:01.0 Ethernet controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01)
02:02.0 Multimedia audio controller: Ensoniq ES1371 [AudioPCI-97] (rev 02)
02:03.0 USB controller: VMware USB2 EHCI Controller

lspciに-nをつけるとPCIベンダとデバイスコードを数字で表示する。

$ lspci -n
00:00.0 0600: 8086:7190 (rev 01)
00:01.0 0604: 8086:7191 (rev 01)
00:07.0 0601: 8086:7110 (rev 08)
00:07.1 0101: 8086:7111 (rev 01)
00:07.3 0680: 8086:7113 (rev 08)
00:07.7 0880: 15ad:0740 (rev 10)
00:0f.0 0300: 15ad:0405
00:10.0 0100: 1000:0030 (rev 01)
00:11.0 0604: 15ad:0790 (rev 02)
00:15.0 0604: 15ad:07a0 (rev 01)
00:15.1 0604: 15ad:07a0 (rev 01)
(省略)
00:18.7 0604: 15ad:07a0 (rev 01)
02:00.0 0c03: 15ad:0774
02:01.0 0200: 8086:100f (rev 01)
02:02.0 0401: 1274:1371 (rev 02)
02:03.0 0c03: 15ad:0770

正確なベンダ名などをルックアップするには-Qオプションを指定します。こうすると、最新のDBをチェックして名前解決をしてくれます。ただし、その分表示が遅くなります。 (VMWareでは面白くないですね。)

$ lspci -Q
00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 01)
00:01.0 Bridge [0604]: Intel Corporation Device 7191 (rev 01)
00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 08)
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
00:07.7 System peripheral: VMware Virtual Machine Communication Interface (rev 10)
00:0f.0 VGA compatible controller: VMware SVGA II Adapter
00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)
00:11.0 Bridge [0604]: VMware PCI bridge (rev 02)
00:15.0 Bridge [0604]: VMware PCI Express Root Port (rev 01)
00:15.1 Bridge [0604]: VMware PCI Express Root Port (rev 01)
00:15.2 Bridge [0604]: VMware PCI Express Root Port (rev 01)
00:15.3 Bridge [0604]: VMware PCI Express Root Port (rev 01)
00:15.4 Bridge [0604]: VMware PCI Express Root Port (rev 01)
(省略)
00:18.5 Bridge [0604]: VMware PCI Express Root Port (rev 01)
00:18.6 Bridge [0604]: VMware PCI Express Root Port (rev 01)
00:18.7 Bridge [0604]: VMware PCI Express Root Port (rev 01)
02:00.0 USB controller: VMware USB1.1 UHCI Controller
02:01.0 Ethernet controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01)
02:02.0 Multimedia audio controller: Ensoniq ES1371 [AudioPCI-97] (rev 02)
02:03.0 USB controller: VMware USB2 EHCI Controller



記事一覧へ