Astazi vom discuta despre python-hwinfo, ce este unul din instrumentele care afiseaza rezumatul informatiilor hardware. Python-hwinfo este o biblioteca python pentru inspectie hardware prin analizarea iesirilor utilitatilor de sistem, cum ar fi lspci si dmidecode. In plus,al puteti executa pe server de la distanta prin furnizarea unui nume de server IP sau gazda, nume de utilizator si parola. De asemenea, aveti posibilitatea sa utilizati acest instrument pentru a vizualiza cum ar fi demidecode ca 'dmidecode.out', / proc / cpuinfo ca 'cpuinfo', lspci -nnm ca 'lspci-nnm.out', etc.
Pentru Debian/Ubuntu - APT-GET / APT Command to install pip.
$ sudo apt install python-pipPentru RHEL/CentOS - YUM Command to install pip.
$ sudo yum install python-pip python-develPentru Fedora - DNF Command to install pip.
$ sudo dnf install python-pipPentru Arch Linux - Pacman Command to install pip.
$ sudo pacman -S python-pipPentru openSUSE - Zypper Command to install pip.
$ sudo zypper python-pipRuleaza comanda pip pentru instalarea python-hwinfo.
$ sudo pip install python-hwinfoSi in final..
$ hwinfo Bios Info:Pentru informatii server remote:+----------------------+--------------------------------------+ | Key | Value | +----------------------+--------------------------------------+ | bios_vendor_name | Dell Inc. | | system_product_name | Precision T3610 | | system_serial_number | 2Q2R212 | | system_uuid | 4C4C4544-0051-3210-8052-B2C04F323132 | | system_manufacturer | Dell Inc. | | bios_release_date | 02/28/2014 | | bios_version | A06 | +----------------------+--------------------------------------+
CPU Info:
+-----------+--------------+------------+-------+----------+-------------------------------------------+----------+ | processor | vendor_id | cpu_family | model | stepping | model_name | cpu_mhz | +-----------+--------------+------------+-------+----------+-------------------------------------------+----------+ | 0 | GenuineIntel | 6 | 62 | 4 | Intel(R) Xeon(R) CPU E5-1607 v2 @ 3.00GHz | 1200.000 | | 1 | GenuineIntel | 6 | 62 | 4 | Intel(R) Xeon(R) CPU E5-1607 v2 @ 3.00GHz | 2200.000 | | 2 | GenuineIntel | 6 | 62 | 4 | Intel(R) Xeon(R) CPU E5-1607 v2 @ 3.00GHz | 1200.000 | | 3 | GenuineIntel | 6 | 62 | 4 | Intel(R) Xeon(R) CPU E5-1607 v2 @ 3.00GHz | 2800.000 | +-----------+--------------+------------+-------+----------+-------------------------------------------+----------+
Ethernet Controller Info:
+---------------+-------------------+-----------+------------------------------------+-----------+----------------+--------------+----------------+--------------+ | device_bus_id | vendor_name | vendor_id | device_name | device_id | subvendor_name | subvendor_id | subdevice_name | subdevice_id | +---------------+-------------------+-----------+------------------------------------+-----------+----------------+--------------+----------------+--------------+ | 02:00.0 | Intel Corporation | 8086 | 82579LM Gigabit Network Connection | 1502 | Dell | 1028 | [Device 05d2] | 05d2 | +---------------+-------------------+-----------+------------------------------------+-----------+----------------+--------------+----------------+--------------+
Storage Controller Info:
+-------------------+-----------+----------------------------------------------+-----------+----------------+--------------+----------------+--------------+ | vendor_name | vendor_id | device_name | device_id | subvendor_name | subvendor_id | subdevice_name | subdevice_id | +-------------------+-----------+----------------------------------------------+-----------+----------------+--------------+----------------+--------------+ | Intel Corporation | 8086 | C600/X79 series chipset IDE-r Controller | 1d3c | Dell | 1028 | [Device 05d2] | 05d2 | | Intel Corporation | 8086 | C600/X79 series chipset SATA RAID Controller | 2826 | Dell | 1028 | [Device 05d2] | 05d2 | +-------------------+-----------+----------------------------------------------+-----------+----------------+--------------+----------------+--------------+
GPU Info:
+--------------------+-----------+-----------------------+-----------+--------------------+--------------+----------------+--------------+ | vendor_name | vendor_id | device_name | device_id | subvendor_name | subvendor_id | subdevice_name | subdevice_id | +--------------------+-----------+-----------------------+-----------+--------------------+--------------+----------------+--------------+ | NVIDIA Corporation | 10de | GK107GL [Quadro K600] | 0ffa | NVIDIA Corporation | 10de | [Device 094b] | 094b | +--------------------+-----------+-----------------------+-----------+--------------------+--------------+----------------+--------------+
$> hwinfo -m 10.180.110.152 -u root -p passwordAfiseaza rezultatele impartite in cinci clase. - Bios Info: contine bios_vendor_name, nume_profil_produs, numar_serial_serial, system_uuid, system_manufacturer, bios_release_date si bios_version - Informatii despre CPU: este afisat nr. De procesor, vendor_id, cpu_family, model, stepping, model_name si cpu_mhz - Informatii Ethernet: se afiseaza device_bus_id, vendor_name, vendor_id, device_name, device_id, subvendor_name, subvendor_id, subdevice_name si subdevice_id - Informatii stocare: se afiseaza vendor_name, vendor_id, device_name, device_id, subvendor_name, subvendor_id, subdevice_name si subdevice_id - Info GPU: se afiseaza vendor_name, vendor_id, device_name, device_id, subvendor_name, subvendor_id, subdevice_name si subdevice_id