Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #176335

Re: [OT] get all devices from a vendor from pci.ids

From Floris <jkfloris@dds.nl>
Newsgroups linux.debian.user
Subject Re: [OT] get all devices from a vendor from pci.ids
Date 2017-01-05 18:10 +0100
Message-ID <sWjI5-5Ut-23@gated-at.bofh.it> (permalink)
References <sVWLw-79z-49@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Op Wed, 04 Jan 2017 17:27:55 +0100 schreef Floris <jkfloris@dds.nl>:

> (Not really a Debian question, but I know there are smart people on this  
> list.)
>
> I want to search the pci.ids file (from the pciutils package) for all  
> Compaq devices.
> Pci ID's 0e11:xxxx , 1032:xxxx and 10da:xxxx matches Compaq.  
> Unfortunately, only at a beginning of a list the id of the vendor is  
> printed in column 1. The id of the devices are printed in column 2, with  
> an empty first column.
>
> (part of pci.ids)
> ...
> 0e11  Compaq Computer Corporation
> 	0001  PCI to EISA Bridge
> 	0002  PCI to ISA Bridge
> 	0046  Smart Array 64xx
> 		0e11 4091  Smart Array 6i
> 		0e11 409a  Smart Array 641
> 		0e11 409b  Smart Array 642
> 		0e11 409c  Smart Array 6400
> 		0e11 409d  Smart Array 6400 EM
> 	0049  NC7132 Gigabit Upgrade Module
> 	004a  NC6136 Gigabit Server Adapter
> ...
> 	c000  Remote Insight Lights-Out Edition
> 	f130  NetFlex-3/P ThunderLAN 1.0
> 	f150  NetFlex-3/P ThunderLAN 2.3
> 0e55  HaSoTec GmbH
> ...
>
> Is there an awk, grep and or sed solution?
>
> Floris
>

an other solution would be something like:

# cat pci.ids | {magic-command} 0e11:004a
NC6136 Gigabit Server Adapter

what is the magic command?

Floris

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[OT] get all devices from a vendor from pci.ids Floris <jkfloris@dds.nl> - 2017-01-04 17:40 +0100
  Re: [OT] get all devices from a vendor from pci.ids Floris <jkfloris@dds.nl> - 2017-01-05 18:10 +0100
    Re: [OT] get all devices from a vendor from pci.ids Javier Barroso <javibarroso@gmail.com> - 2017-01-05 18:20 +0100
      Re: [OT] get all devices from a vendor from pci.ids Nicolas George <george@nsup.org> - 2017-01-05 21:10 +0100
        Re: [OT] get all devices from a vendor from pci.ids Floris <jkfloris@dds.nl> - 2017-01-05 21:20 +0100
          Re: [OT] get all devices from a vendor from pci.ids Javier Barroso <javibarroso@gmail.com> - 2017-01-06 22:40 +0100
            When do I use perl, awk, sed, grep, cut etc.. Was[OT] get all devices  from a vendor from pci.ids Floris <jkfloris@dds.nl> - 2017-01-06 22:50 +0100
              Re: When do I use perl, awk, sed, grep, cut etc.. Was[OT] get all  devices from a vendor from pci.ids Javier Barroso <javibarroso@gmail.com> - 2017-01-06 23:50 +0100
      Re: [OT] get all devices from a vendor from pci.ids Floris <jkfloris@dds.nl> - 2017-01-05 21:10 +0100

csiph-web