"lshw is a small tool to extract detailed information on the hardware configuration of the machine. It can report exact memory configuration, firmware version, mainboard configuration, CPU version and speed, cache configuration, bus speed, etc. on DMI-capable x86 or IA-64 systems and on some PowerPC machines (PowerMac G4 is known to work).
It currently supports DMI (x86 and IA-64 only), OpenFirmware device tree (PowerPC only), PCI/AGP, CPUID (x86), IDE/ATA/ATAPI, PCMCIA (only tested on x86), SCSI and USB."
Some sample usages:
For a summary of devices on your system:
sudo lshw -short
For information on a specific class of device (the classes can be retrieved by the above command) such memory:
H/W path Device Class Description
=========================================================
system Desktop Computer
/0 bus K8M800-8237
/0/0 memory 128KB BIOS
/0/4 processor AMD Sempron(tm) Processor 2800+
/0/4/8 memory 128KB L1 cache
/0/4/9 memory 256KB L2 cache
/0/18 memory 1536MB System Memory
/0/18/0 memory 1GB DIMM 400 MHz (2.5 ns)
/0/18/1 memory 512MB DIMM 400 MHz (2.5 ns)
/0/e4000000 bridge K8M800 Host Bridge
/0/e4000000/1 bridge VT8237 PCI bridge [K8T800/K8T890 South]
/0/e4000000/1/0 display S3 Unichrome Pro VGA Adapter
/0/e4000000/9 scsi0 storage VT6421 IDE RAID Controller
/0/e4000000/a eth0 network DGE-530T Gigabit Ethernet Adapter (rev 11)
/0/e4000000/f scsi3 storage VIA VT6420 SATA RAID Controller
/0/e4000000/f/0 /dev/sda disk 186GB WDC WD2000JS-60M
/0/e4000000/f/0/1 /dev/sda1 disk Linux filesystem partition
/0/e4000000/f/0/2 /dev/sda2 disk 166GB Extended partition
/0/e4000000/f/0/2/5 /dev/sda5 disk Linux filesystem partition
/0/e4000000/f/0/2/6 /dev/sda6 disk Linux swap / Solaris partition
/0/e4000000/f/1 /dev/sdb disk 298GB ST3320620AS
/0/e4000000/f/1/1 /dev/sdb1 disk 298GB Extended partition
/0/e4000000/f/1/1/5 /dev/sdb5 disk Linux filesystem partition
/0/e4000000/f.1 storage VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE
/0/e4000000/f.1/0 ide0 bus IDE Channel 0
/0/e4000000/f.1/0/0 /dev/hda disk PIONEER DVD-RW DVR-110
/0/e4000000/f.1/0/0/0 /dev/hda disk
/0/e4000000/10 bus VT82xxxxx UHCI USB 1.1 Controller
/0/e4000000/10/1 usb1 bus UHCI Host Controller
/0/e4000000/10.1 bus VT82xxxxx UHCI USB 1.1 Controller
/0/e4000000/10.1/1 usb2 bus UHCI Host Controller
/0/e4000000/10.2 bus VT82xxxxx UHCI USB 1.1 Controller
/0/e4000000/10.2/1 usb3 bus UHCI Host Controller
/0/e4000000/10.3 bus VT82xxxxx UHCI USB 1.1 Controller
/0/e4000000/10.3/1 usb4 bus UHCI Host Controller
/0/e4000000/10.4 bus USB 2.0
/0/e4000000/10.4/1 usb5 bus EHCI Host Controller
/0/e4000000/11 bridge VT8237 ISA bridge [KT600/K8T800/K8T890 South]
/0/e4000000/11.5 multimedia VT8233/A/8235/8237 AC97 Audio Controller
/0/100 bridge K8M800 Host Bridge
/0/101 bridge K8M800 Host Bridge
/0/102 bridge K8M800 Host Bridge
/0/103 bridge K8M800 Host Bridge
/0/104 bridge K8M800 Host Bridge
/0/105 bridge K8 [Athlon64/Opteron] HyperTransport Technology Configuration
/0/106 bridge K8 [Athlon64/Opteron] Address Map
/0/107 bridge K8 [Athlon64/Opteron] DRAM Controller
/0/108 bridge K8 [Athlon64/Opteron] Miscellaneous Control
sudo lshw -C memory
*-firmware
description: BIOS
vendor: Award Software International, Inc.
physical id: 0
version: FB (12/07/2005)
size: 128KB
capacity: 448KB
capabilities: pci pnp apm upgrade shadowing cdboot bootselect socketedrom edd int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer int10video acpi usb agp ls120boot zipboot biosbootspecification
*-cache:0
description: L1 cache
physical id: 8
slot: Internal Cache
size: 128KB
capacity: 128KB
capabilities: synchronous internal write-back
*-cache:1
description: L2 cache
physical id: 9
slot: External Cache
size: 256KB
capacity: 256KB
capabilities: synchronous internal write-back
*-memory
description: System Memory
physical id: 18
slot: System board or motherboard
size: 1536MB
*-bank:0
description: DIMM 400 MHz (2.5 ns)
physical id: 0
slot: A0
size: 1GB
width: 64 bits
clock: 400MHz (2.5ns)
*-bank:1
description: DIMM 400 MHz (2.5 ns)
physical id: 1
slot: A1
size: 512MB
width: 64 bits
clock: 400MHz (2.5ns)
Or to get CPU information:
sudo lshw -C processor
*-cpu
description: CPU
product: AMD Sempron(tm) Processor 2800+
vendor: Advanced Micro Devices [AMD]
physical id: 4
bus info: cpu@0
version: AMD Sempron(tm) Processor 2800+
slot: Socket 754
size: 1600MHz
capacity: 4GHz
width: 64 bits
clock: 200MHz
capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt x86-64 3dnowext 3dnow up pni lahf_lm
Remember to run the command with sudo or you will only get a partial list of results.
No comments:
Post a Comment