Does macOS have equivalent command line tools like `lshw` or `lspci` for enumerating PCI hardware devices?
The closest thing I know of is system_profiler
but it spits out way too much unnecessary information and I don't have a good way to filter / transform that output.
What's the closest alternative to something like lshw
or lspci
on Mac OS X?
Try parsing the output of the ioreg
command.
I tried ioreg -l | grep PCI
and got a bunch of info.
For those familiar with Docker, a simple workaround is to run a simple ubuntu container, and install lshw in there. I have found it to work great.