Internet disconnected!
Check your internet connection

We use cookies to ensure you get the best experience on our website. privacy policy.

script

Publish on November 19, 2025

sudo apt update && sudo apt install -y lshw smartmontools ethtool lm-sensors ipmitool pciutils usbutils dmidecode
cd /usr/local/bin/
nano hwscan.sh
#!/bin/bash
# Hardware Auto Report
mkdir -p /tmp/hw
out="/tmp/hw/report.txt"
echo "== CPU =====================" >> "$out"
lscpu >> "$out"
echo "== Memory ==================" >> "$out"
dmidecode -t memory >> "$out"
echo "== Disks ===================" >> "$out"
lsblk >> "$out"
smartctl --scan | awk '{print $1}' | xargs -I{} smartctl -H {} >> "$out"
echo "== PCI =====================" >> "$out"
lspci -vvv >> "$out"
echo "== Network =================" >> "$out"
ip link >> "$out"
for i in /sys/class/net/*; do
    intf=$(basename "$i")
    ethtool "$intf" >> "$out" 2>/dev/null
done
echo "== Sensors =================" >> "$out"
sensors >> "$out"
echo "== IPMI ====================" >> "$out"
ipmitool sdr elist >> "$out" 2>/dev/null
ipmitool sel list >> "$out" 2>/dev/null
echo "Done. Report saved in /tmp/hw/report.txt"
chmod +x /usr/local/bin/hwscan
 ./hwscan.sh

Publish 4 hours ago
3


Comments

No comments yet
You can comment using your Account to be able to manage your comments in the future. If you comment anonymously, you won't be able to edit or delete your comment. for more info visit FAQs