Linux Hardware Inventory Using SSH – How to Inventory Hardware on Linux Systems

hardwarelinuxlspci

They are a mix of Red Hat and CentOS 5.x, I'd like to have something on one host that can check basics like cpu/mem/disk hardware, Model, HW RAID controllers, etc would be nice.

I have key based ssh authentication set up, but I do not want to have to install anything on these hosts. Worst case, I could scp something to /tmp, but no install please.

Near as I can see, either I need to install something, or it is something really basic that I would run on the machine, and then manually aggregate.

Am I stuck writing some Perl to run and process the output of dmidecode, lspci, etc?

If I do, I'll put it up someplace, and link to it.

Related questions that do not have the answer:
Get server hardware details for ubuntu server
How to find out details about hardware on the Linux machine? this one had a nice bit of shell script, but it errors.

Best Answer

Maybe try http://www.cfg2html.com/ it's just one bash script that outputs to html, which you can upload/download to a central directory. However it's just the output from commands so it's pretty hard to put it in a structured format like sql/xml.