Re: Which Nic is in which PCI slot ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andrew Mather wrote:

Hi All,

Does anyone know of a single command I can use to list which nic is in
which slot in multi-nic machines ?

lspci and cat /proc/pci list the type of card (and in the /proc/pci
case, the interrupt) and ifconfig lists the nics and their other
details, incluing interrupt, so I can figure it out.

But I'm trying to do this across a cluster of 15 machines with 2 or 3
nics apiece for the purposes of documenting it, so it would be tedious
to have to do it that way.

A nice, single command that says "eth0 is in 02:02.0, eth1 is in
02:02.1" would be nice.

There are 3 different models of machine in this cluster and each one
recognises the devices in a different order !  They have 2 on-board
nics and some also have one PCI nic.

Any advice gratefully received.

Thanks,
Andrew

`lspvi` might work


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux