Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 ....
share|improve this question
    
related: unix.stackexchange.com/q/2300 –  Tshepang Feb 3 '11 at 19:15

5 Answers 5

up vote 13 down vote accepted

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.)
share|improve this answer
2  
You can add fdisk -l (disks), free -m (RAM). –  Andrea Spadaccini Feb 3 '11 at 14:06
    
what is it S.M.A.R.T? –  klod Feb 3 '11 at 14:23
1  
From Wikipedia: "S.M.A.R.T. (Self-Monitoring, Analysis, and Reporting Technology; sometimes written as SMART) is a monitoring system for computer hard disk drives to detect and report on various indicators of reliability, in the hope of anticipating failures." –  Lekensteyn Feb 3 '11 at 14:32
    
monitoring system for hard disk(en.wikipedia.org/wiki/…) –  alvosu Feb 3 '11 at 14:32

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)
  • ...
share|improve this answer

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

share|improve this answer

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

share|improve this answer

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.