ubuntu下获取设备硬件信息
包括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"
阅读(10305) | 评论(0) | 转发(0) |