Is there any hardware information collection software such as hwinfo in Linux? Try discover.
Discover is a set of tool libraries used to collect and report system hardware information. It uses system-specific modules to detect the current system hardware and provides a system-independent interface for XML data query.
You can use it directly by calling the Discover C library or its built-in tool set. There may be otherProgramThe interface appears, such as Perl or Python.
Discover's XML data format is very open. When a hardware is found, it can be redefined into almost any data structure you can imagine-from the Linux kernel to the xfree86 service driver. Discover also knows how to obtain XML data resources, including local file systems and networks. For example, this feature allows the operating system to install a bunch of antique-level hardware and then obtain the latest hardware database from the Internet.
The latest discover version is 2.0.2, which can be found hereSource code:
Http://archive.progeny.com/progeny/discover/