包括CPU,内存,RAID卡,网卡,HBA卡,电源,硬盘(大小,转速)信息。
lshw >tmp001
cat tmp001|grep -A10 "\-disk"|egrep "size|capabilities"
cat tmp001|grep -A10 "\-cpu"|grep "product"
cat tmp001|grep -A10 "\-memory"|egrep "description|size|clock"
cat tmp001|grep -A10 "\-storage"|egrep "product|vendor"
cat tmp001|grep -A10 "\-network"|egrep "product|vendor"
cat tmp001|grep -A10 "\-fiber"|egrep "product|vendor"
cat tmp001|grep -A10 "\-power"|egrep "product|vendor|capacity"