Linux + get the all information about the hardware from machine by tool or script
My Linux version Linux version 2.6.18-164.2.1.el5PAE
Maybe some one have script (ksh,perl or bash etc) that can get all info from Linux system and display it.
For example
cards in the linux machine (type , manufacture , SN etc..)
cpu
memory
disks
devices ....
Use:
-
lspci
(list all PCI devices) -
lsusb
(list USB devices) -
lshw
(list hardware) -
hwinfo
(Hardware identification system) -
dmidecode
(tool for dumping a computer's DMI (some say SMBIOS)) -
lm-sensors
(read temperature/voltage/fan sensors) -
smartmontools
(show S.M.A.R.T.)
I don't have this kind of script but:
- lspci (list of pci devices, package pciutils)
- lsusb (list of usb devices, package usbutils)
- cat /proc/cpuinfo (processor info)
- cat /proc/meminfo (memory info)
- fdisk -l, cat /proc/partitions (list of partitions)
- cat /proc/mdstat (raid status)
- hdparm -I /dev/sd* (detail information about disk)
- lm-sensors (voltage and temperature sensors on motherboard)
- hddtemp (temperature of disks)
- mpt-status (scsi monitoring)
- ...
You can use a number of command-line tools for that, namely: dmidecode
, lspci
and lsusb
.
lsusb
lists your USB devices, lspci
lists your PCI devices (including internal ones) and dmidecode
lists information from SMBIOS table (it provides info about your memory banks, mainboard, BIOS, PCI bus cotrollers, fans, CPU, etc).