4

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 ....
ChrisF
  • 1,881
klod
  • 195

6 Answers6

13

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.)
alvosu
  • 8,517
3

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)
  • ...
mkudlacek
  • 1,677
  • 1
  • 11
  • 15
1

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).

Alex
  • 7,979
0

find /{proc,sys} -exec cat {} \; >> ~/capture.txt

JeffG
  • 1,192
0

The guys here did a good job, but I can add:

dmesg | less to view the kernel messages. It can tell you a lot about your hardware.

Khaled
  • 36,903
0

There is a Linux-Hardware.org's hw-probe utility: https://github.com/linuxhw/hw-probe

Use this Docker image in order to probe your hardware without the need to install anything on your host except Docker.

The probe includes outputs of popular Linux diagnostics tools (like smartctl, memtester, etc.), hardware listers (hwinfo, dmidecode, biosdecode, etc.), and system logs (Xorg.log, dmesg, etc.).

Probe example: https://linux-hardware.org/?probe=0b29192f95

enter image description here

enter image description here

I'm the author of this project, feel free to ask any questions in the comments.