Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Wed Aug 23, 2017 8:57 am


System administration, processes administration, jobs, cron, resources, limits, shells, ssh, telnet.

Author Message
mandrei99
Post  Post subject: How to list PCI devices in Linux - lspci  |  Posted: Mon Jul 22, 2013 10:03 am

Joined: Tue Aug 04, 2009 9:16 am
Posts: 245

Offline
 

How to list PCI devices in Linux - lspci

As FreeBSD, Linux also has an utility to list the pci devices. This is lspci.

Man lspci:
Quote:
lspci(8) The PCI Utilities lspci(8)

NAME
lspci - list all PCI devices

SYNOPSIS
lspci [options]

DESCRIPTION
lspci is a utility for displaying information about PCI buses in the system and devices connected to them.

By default, it shows a brief list of devices. Use the options described below to request either a more verbose output or output intended for parsing by other pro‐
grams.

If you are going to report bugs in PCI device drivers or in lspci itself, please include output of "lspci -vvx" or even better "lspci -vvxxx" (however, see below for
possible caveats).

Some parts of the output, especially in the highly verbose modes, are probably intelligible only to experienced PCI hackers. For exact definitions of the fields,
please consult either the PCI specifications or the header.h and /usr/include/linux/pci.h include files.

Access to some parts of the PCI configuration space is restricted to root on many operating systems, so the features of lspci available to normal users are limited.
However, lspci tries its best to display as much as available and mark all other information with <access denied> text.
...
-t Show a tree-like diagram containing all buses, bridges, devices and connections between them.
...
-v Be verbose and display detailed information about all devices.


Code:
# lspci -tvv
-[0000:00]-+-00.0  Intel Corporation 5400 Chipset Memory Controller Hub
           +-01.0-[0000:01]--+-00.0  Intel Corporation 82598EB 10 Gigabit AF Dual Port Network Connection
           |                 \-00.1  Intel Corporation 82598EB 10 Gigabit AF Dual Port Network Connection
           +-03.0-[0000:11]--+-00.0  Intel Corporation 82598EB 10 Gigabit AF Dual Port Network Connection
           |                 \-00.1  Intel Corporation 82598EB 10 Gigabit AF Dual Port Network Connection
           +-05.0-[0000:21]--+-00.0  Intel Corporation 82598EB 10 Gigabit AF Dual Port Network Connection
           |                 \-00.1  Intel Corporation 82598EB 10 Gigabit AF Dual Port Network Connection
           +-07.0-[0000:31-34]----00.0-[0000:32-34]--+-01.0-[0000:33]--+-00.0  Intel Corporation 82575EB Gigabit Network Connection
           |                                         |                 \-00.1  Intel Corporation 82575EB Gigabit Network Connection
           |                                         \-02.0-[0000:34]--+-00.0  Intel Corporation 82575EB Gigabit Network Connection
           |                                                           \-00.1  Intel Corporation 82575EB Gigabit Network Connection
           +-09.0-[0000:41-52]--+-00.0-[0000:42-51]--+-00.0-[0000:43]--
           |                    |                    \-02.0-[0000:51]--+-00.0  Intel Corporation 80003ES2LAN Gigabit Ethernet Controller (Copper)
           |                    |                                      \-00.1  Intel Corporation 80003ES2LAN Gigabit Ethernet Controller (Copper)
           |                    \-00.3-[0000:52]--
           +-0f.0  Intel Corporation 5400 Chipset QuickData Technology Device
           +-10.0  Intel Corporation 5400 Chipset FSB Registers
           +-10.1  Intel Corporation 5400 Chipset FSB Registers
           +-10.2  Intel Corporation 5400 Chipset FSB Registers
           +-10.3  Intel Corporation 5400 Chipset FSB Registers
           +-10.4  Intel Corporation 5400 Chipset FSB Registers
           +-11.0  Intel Corporation 5400 Chipset CE/SF Registers
           +-15.0  Intel Corporation 5400 Chipset FBD Registers
           +-15.1  Intel Corporation 5400 Chipset FBD Registers
           +-16.0  Intel Corporation 5400 Chipset FBD Registers
           +-16.1  Intel Corporation 5400 Chipset FBD Registers
           +-1d.0  Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #1
           +-1d.1  Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #2
           +-1d.2  Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #3
           +-1d.7  Intel Corporation 631xESB/632xESB/3100 Chipset EHCI USB2 Controller
           +-1e.0-[0000:53]----01.0  ATI Technologies Inc ES1000
           +-1f.0  Intel Corporation 631xESB/632xESB/3100 Chipset LPC Interface Controller
           +-1f.1  Intel Corporation 631xESB/632xESB IDE Controller
           +-1f.2  Intel Corporation 631xESB/632xESB SATA AHCI Controller
           \-1f.3  Intel Corporation 631xESB/632xESB/3100 Chipset SMBus Controller


the "lspci -tv" command lists a linux system's PCI devices in such a way that you can see if, for example, if there are any Network Cards with multple ports and the chipsets they have (as above)





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "How to list PCI devices in Linux - lspci"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. Linux: list block devices UUID

debuser

0

789

Tue Mar 10, 2015 5:46 pm

debuser View the latest post

There are no new unread posts for this topic. How to list PCI devices in FreeBSD - pciconf

mandrei99

0

7293

Mon Jul 22, 2013 9:58 am

mandrei99 View the latest post

There are no new unread posts for this topic. Linux network interface pci slot information - lspci / Intel or Broadcom

mandrei99

0

4147

Fri Jan 16, 2015 7:58 pm

mandrei99 View the latest post

There are no new unread posts for this topic. Linux: List kernel supported filesystems

debuser

0

435

Tue Mar 10, 2015 5:45 pm

debuser View the latest post

There are no new unread posts for this topic. How to list the largest files in a directory in Linux/FreeBSD

mandrei99

0

540

Thu Jan 22, 2015 5:14 pm

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD - list disks drive in the system with atacontrol and camcontrol

mandrei99

0

6987

Tue Jan 20, 2015 3:08 am

mandrei99 View the latest post

There are no new unread posts for this topic. Linux clear screen / terminal

mandrei99

2

4584

Wed Mar 04, 2015 8:52 am

Guest View the latest post

There are no new unread posts for this topic. How to prevent Linux SSH client from disconnecting using ServerAliveInterval

mandrei99

0

14545

Fri Jan 09, 2015 8:26 pm

mandrei99 View the latest post

There are no new unread posts for this topic. Change default editor to VI in Debian Linux

mandrei99

0

637

Fri Jan 16, 2015 6:59 pm

mandrei99 View the latest post

There are no new unread posts for this topic. How to print filesystem super block information in Linux

mandrei99

0

6934

Mon Jul 08, 2013 6:56 am

mandrei99 View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO