How to get
Hardware Information on Linux
Simple
script to find out Linux Hardware Information.
exec
> /root/hard_info 2>&1
date
echo
"Motherboard Model Number"
dmidecode
-t baseboard | grep 'Product Name'
echo "===================================="
echo
"Processor Information"
dmidecode
-t processor | grep 'Socket Designation\|Version:'
echo "===================================="
echo
"Memory Type & Size"
dmidecode
-t memory | grep 'Type\|Size' | grep -v 'Type Detail\|Error
Correction Type'
echo "===================================="
echo
"Total Memory"
free
-t -m
echo "===================================="
echo
"Hard Drive's of Machine"
fdisk
-l | grep 'Disk /dev/s'
echo "===================================="
echo
"Serial Number of /dev/sda"
hdparm
-I /dev/sda | grep 'Model Number:\|Serial Number'
echo "===================================="
echo
"Serial Number of /dev/sdb"
hdparm
-I /dev/sdb | grep 'Model Number:\|Serial Number'
echo "===================================="