clear;echo --Motherboard-;dmidecode -t baseboard|grep -e Manufacturer -e Product -e Version -e Serial;echo --Memory-;dmidecode -t memory|grep -e Devices -e Maximum -e Size;echo --System-;ipmitool sensor list all;echo --Drives-;printf "drive\ttemp\trpm\tserial\t\tmodel\n";for dev in $(sysctl -n kern.disks|awk '{for (i=NF; i!=0 ; i--) if(match($i, '/da/')) print $i }');do printf $dev"\t";smartctl -a /dev/$dev|awk '/Temperature_Ce/{dev_tmp=$10} /Rotation Rate:/{dev_rpm=$3} /Serial Number:/{dev_ser=$3} /Device Model:/{dev_mod=substr($0,index($0,$3))} END {printf "%s°C\t%s\t%s\t%s\n",dev_tmp,dev_rpm,dev_ser,dev_mod}';done