magnet December 22nd, 2008
Hello, i have come up with this little post, the thing is many a times when we would require and Hardware info of any PC in our oprganisation, like the amount of RAM, no of HDDs connected, the Processor, the motherboard, the motherboard serial no. and etc, whenever such info was required, the Hardware Guy would go to the User’s place and shut down the PC, open up the cabinet and write down all the hardware info on a piece of paper.
This sounds foolish, when you have a linux PC why you need to do all this. Yes, But this happens in most of the organisations in mumbai who are running linux on their Desktops or Servers.
So Here’s a small post on the Tools, utilities and commands to find the Hardware info without the need to shutdown the PC and open up the cabinet.

Some info that are required by the Desktop admins or the Hardware admins to keep an inventory of the system or for any other purpose :-
The Processor model, type, its frequency, max speed, cache, etc.
RAM
HDD
Motherboard model, chipset, serial no., etc
Soundcard
NetworkCard
Tools :-
1) dmidecode - standardized description of a PC hardware including characteristics such as BIOS serial number and hardware connectors
2) hardinfo - displays information about your hardware and operating system
3) hwinfo - information about the hardware installed on a system
4) sysinfo - displays computer and system information
5) sysutils :- procinfo
6) lspci
7) lshw
Tool 1:-
dmidecode :- you can find many detailed info about the hardware.
# dmidecode -t smbios (will give you all the valid keywords to find the system information)
# dmidecode -t smbios
Invalid type keyword: smbios
Valid type keywords are:
bios
system
baseboard
chassis
processor
memory
cache
connector
slot
# dmidecode -t bios (will give the complete bios information including vendor, release date, and what all things are supported by the Bios
# dmidecode -t processor (will give the info about the CPU vendor, model, capacity, speed, voltage, clock, cache)
# dmidecode -t slot (will give the info of the no. of PCI slots)
Tool 2 :-
hardinfo :- One of the Best GUI utlities to find the complete hardware information. You get each and eery detail about your PC, your CPU, RAM, HDD, OS and others. it only lacks a little in giving the exact info about the CPU.
Tool 3 :-
hwinfo :- A small utility, but may not be that useful for any linux admin as it gives very detailed info with some hexadecial info.
# hwinfo –short
will give the hardware info in very short and linux admins may find this info of some use.
Tool 4 :-
sysinfo :- Again a small GUI utility, But you may find it very useful as it gives out lot of info about your HW that will be required to the sysadmins
It can display Linux distribution release, GNOME version, Kernel version, Gcc version, Xorg version, hostname, CPU: Vendor identification, model name, frequency, level2 cache, bogomips, model numbers, flags, Memory: Total system memory RAM, free memory, swap space total & free, cached, active, inactive memory, Storage: IDE interface, all IDE devices(disks, cd/dvd roms), SCSI devices, Hardware: motherboard, graphic card, sound card, network devices.
Thats still a lot of info for a sys admin
Tool 5 :-
procinfo - provides info that it has gathered from the /proc directory, what i found useful in it was the Bootup info, it shows the Time and Date when the system was booted, rest there were many other info such as irq, swap, user, nice.
# procinfo
Tool 6 :-
lspci - utility for displaying information about all PCI buses in the system and all devices connected to them
I found the following below commands useful.
# lspci -v
# lspci -nn
Tool 7 :-
lshw :- Another small but a very useful utility, as is found, when i ran the following command :
# lshw
It gave a lot of hardware info, i liked the below command :
# lshw -short
it showed me my motherboard model no., processor, amount of RAM and it also dispalyed that i am using 2 x 1 GB RAM’s, the no. of PCI slots, the USB ports, no. of ethernet cards and ports and its vendors, The amount of HDD and the partitions i have created.
These are some of the tools that i have found and tried, would like to hear from you guys reading this stuff, if you have found some tools, commands or utilities which helped you out.
Feel free to post comments or write to us at:
sos[AT]magnet-i[DOT]com.

Thank You
Systems Team