用来查看机器的型号
dmidecode |grep Name
查看机器各种硬件信息,比方说cpu,内存,网卡等等
lshw -short|egrep 'CPU|4GiB DIMM|eth'
lshw -short|grep '4GiB DIMM'|wc -l
lshw -short|egrep 'CPU|4GiB DIMM|eth'
lshw -short|grep '4GiB DIMM'|wc -l
查看磁盘是否是ssd
/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aAll|egrep 'Raw Size|SSD'
查看内存的状态,内存的总量
/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aAll|egrep 'Raw Size|SSD'
查看内存的状态,内存的总量
free -g