Find the answer to your Linux question:
Results 1 to 4 of 4
how can i extract the info of pci device manufacturer from lspci command or any other command or file ??? i am using red hat linux 9 with shrike.. i ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2005
    Posts
    24

    extracting manufacturer name of pci devices


    how can i extract the info of pci device manufacturer from lspci command or any other command or file ??? i am using red hat linux 9 with shrike..
    i am not able to extract only the manufacturer name.. cud someone pls post the script for the same....

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035

    Re: extracting manufacturer name of pci devices

    Quote Originally Posted by superghost
    how can i extract the info of pci device manufacturer from lspci command or any other command or file ??? i am using red hat linux 9 with shrike..
    lspci outputs the manufacturer...

  3. #3
    Linux Newbie
    Join Date
    Oct 2004
    Posts
    114

    Re: extracting manufacturer name of pci devices

    Are you running as root?

    Is there any file called "/usr/share/pci.ids"?

    If not download from: (in text mode)

    http://pciids.sourceforge.net/

    Put it on /usr/share/pci.ids

    lspci -v

    If you are not root/superuser:

    Put it somewhere: /mydirectory/pci.ids

    lspci -v -i /mydirectory/pci.ids

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Nov 2005
    Location
    Chicago, IL
    Posts
    46
    I find this to be a quick and easy function:
    lspci|cut -s -d : -f 3
    man cut, sed, or awk to narrow this down even further. What once looked like this:
    [root@holley mnt]# lspci
    00:00.0 Host bridge: Broadcom (formerly ServerWorks) CMIC-LE Host Bridge (GC-LE chipset) (rev 33)
    00:00.1 Host bridge: Broadcom (formerly ServerWorks) CMIC-LE Host Bridge (GC-LE chipset)
    00:00.2 Host bridge: Broadcom (formerly ServerWorks) CMIC-LE Host Bridge (GC-LE chipset)
    00:03.0 VGA compatible controller: ATI Technologies Inc Rage XL (rev 27)
    00:04.0 RAID bus controller: Compaq Computer Corporation Smart Array 5i/532 (rev 01)
    00:05.0 System peripheral: Compaq Computer Corporation Integrated Lights Out Controller (rev 01)
    00:05.2 System peripheral: Compaq Computer Corporation Integrated Lights Out Processor (rev 01)
    00:0f.0 ISA bridge: Broadcom (formerly ServerWorks) CSB5 South Bridge (rev 93)
    00:0f.1 IDE interface: Broadcom (formerly ServerWorks) CSB5 IDE Controller (rev 93)
    00:0f.2 USB Controller: Broadcom (formerly ServerWorks) OSB4/CSB5 OHCI USB Controller (rev 05)
    00:0f.3 Host bridge: Broadcom (formerly ServerWorks) CSB5 LPC bridge
    00:11.0 Host bridge: Broadcom (formerly ServerWorks) CIOB-X2 PCI-X I/O Bridge (rev 05)
    00:11.2 Host bridge: Broadcom (formerly ServerWorks) CIOB-X2 PCI-X I/O Bridge (rev 05)
    01:01.0 Fibre Channel: QLogic Corp. QLA2312 Fibre Channel Adapter (rev 02)
    01:02.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5703X Gigabit Ethernet (rev 02)
    04:01.0 Fibre Channel: QLogic Corp. QLA2312 Fibre Channel Adapter (rev 02)
    04:02.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5703X Gigabit Ethernet (rev 02)
    This is the output using the command I suggested:
    [root@holley mnt]# lspci|cut -s -d : -f 3
    Broadcom (formerly ServerWorks) CMIC-LE Host Bridge (GC-LE chipset) (rev 33)
    Broadcom (formerly ServerWorks) CMIC-LE Host Bridge (GC-LE chipset)
    Broadcom (formerly ServerWorks) CMIC-LE Host Bridge (GC-LE chipset)
    ATI Technologies Inc Rage XL (rev 27)
    Compaq Computer Corporation Smart Array 5i/532 (rev 01)
    Compaq Computer Corporation Integrated Lights Out Controller (rev 01)
    Compaq Computer Corporation Integrated Lights Out Processor (rev 01)
    Broadcom (formerly ServerWorks) CSB5 South Bridge (rev 93)
    Broadcom (formerly ServerWorks) CSB5 IDE Controller (rev 93)
    Broadcom (formerly ServerWorks) OSB4/CSB5 OHCI USB Controller (rev 05)
    Broadcom (formerly ServerWorks) CSB5 LPC bridge
    Broadcom (formerly ServerWorks) CIOB-X2 PCI-X I/O Bridge (rev 05)
    Broadcom (formerly ServerWorks) CIOB-X2 PCI-X I/O Bridge (rev 05)
    QLogic Corp. QLA2312 Fibre Channel Adapter (rev 02)
    Broadcom Corporation NetXtreme BCM5703X Gigabit Ethernet (rev 02)
    QLogic Corp. QLA2312 Fibre Channel Adapter (rev 02)
    Broadcom Corporation NetXtreme BCM5703X Gigabit Ethernet (rev 02)
    Now you can man cut, sed and or awk to figure out how to cut this down even further.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •