yum -y install dmidecode服務器
查看cpu的型號: 查看cpu的顆數:
dmidecode -t processor |grep "Version"
dmidecode -t processor |grep "Socket"ide
查看內存最大容量: 查看內存插槽數量: 查看內存大小:
dmidecode -t memory | grep "Maximum Capacity"
dmidecode -t memory | grep "Number Of Devices"
dmidecode -t memory | grep "Size"code
查看服務器的型號: 查看序列號:
dmidecode | grep 'Product Name'
dmidecode -s system-serial-number內存
rpm -ivh Lib_Utils-1.00-09.noarch.rpm
rpm -ivh MegaCli-8.00.48-1.i386.rpmci
ln -s /opt/MegaRAID/MegaCli/MegaCli64 /bin/MegaCli64
ln -s /opt/MegaRAID/MegaCli/MegaCli64 /sbin/MegaCli64it
查看硬盤的塊數:查看硬盤容量:
/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL | grep 'Slot Number'
/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL | grep 'Raw Size'io
查看raid級別:raid卡的型號:
/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -aALL | grep 'RAID Level'
/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aALL | grep 'Product Name'List