Centos hardware information acquisition

Use the YUM command to install pip.

$ sudo yum install python-pip python-devel

Execute the following pip command to install python-hwinfo.

$ sudo pip install python-hwinfo

Execute the following command to check the existing hardware of the local machine. The output is very clear and neat, which I have not seen in other commands.

hwinfo

Its output is divided into five categories:

  1. Bios Info (BIOS information): BIOS vendor name, system product name, system serial number, system unique identifier, system manufacturer, BIOS release date, and BIOS version.
  2. CPU Info: CPU number, supplier ID, CPU series code, model, step number, model name, CPU frequency.
  3. Ethernet Controller Info (network card information): vendor name, vendor ID, device name, device ID, sub-vendor name, sub-vendor ID, sub-device name, sub-device ID.
  4. Storage Controller Info (storage device information): vendor name, vendor ID, device name, device ID, sub-vendor name, sub-vendor ID, sub-device name, sub-device ID.
  5. GPU Info (GPU information): vendor name, vendor ID, device name, device ID, sub-vendor name, sub-vendor ID, sub-device name, sub-device ID.

Guess you like

Origin www.cnblogs.com/wkk2020/p/12709992.html