I would like to see how many PCI slots I have in a server and how many of them are in use. Is this possible with just some Linux commands? (lspci doesn't seem to provide the exact information I need.)
Asked
Active
Viewed 1.6k times
2 Answers
2
EDIT - What might be better for you is sudo lspci | grep PCI
I would recommend sudo lspci
as this will tell you every port as well as when is plugged into them. Otherwise it will just list the port and something generic.
lspci man page excerpt:
lspci is a utility for displaying information about PCI buses in the system and devices connected to them.
Keep in mind that this will list every interface on the bus not just what most would think of as traditional pci slots...

Dylan
- 1,038
dmidecode
time to go read about it! – Dylan Mar 19 '15 at 23:00-t slot
instead of numeric identifier to make it easier to understand but otherwise, great answer! – Mikko Rantalainen May 05 '20 at 07:45