查看 linux cpu 、内存、服务器型号和序列号、磁盘、raid 的信息

时间:2024-03-11 12:16:38

yum -y install dmidecode

查看cpu的型号: 查看cpu的颗数:
dmidecode -t processor |grep "Version"
dmidecode -t processor |grep "Socket"

查看内存最大容量: 查看内存插槽数量: 查看内存大小:
dmidecode -t memory | grep "Maximum Capacity"
dmidecode -t memory | grep "Number Of Devices"
dmidecode -t memory | grep "Size"


查看服务器的型号: 查看序列号:
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.rpm


ln -s /opt/MegaRAID/MegaCli/MegaCli64 /bin/MegaCli64
ln -s /opt/MegaRAID/MegaCli/MegaCli64 /sbin/MegaCli64

查看硬盘的块数:查看硬盘容量:
/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL | grep \'Slot Number\'
/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL | grep \'Raw Size\'

查看raid级别:raid卡的型号:
/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -aALL | grep \'RAID Level\'
/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aALL | grep \'Product Name\'