Linux 系统查看服务器SN序列号以及服务器型号和查看cpu信息

1、单独查看服务器的序列号# dmidecode -t system | grep 'Serial Number'
# dmidecode -t 1 | grep 'Serial Number' | cut -d: -f22、单独查看服务器型号# dmidecode | grep "Product"3、统一查看服务器SN序列号和型号(厂商、型号、序列号)# dmidecode | grep "System Information" -A9 | egrep "Manufacturer|Product|Serial" 4、查看内存条信息及使用情况(内存的插槽数,已经使用多少插槽.每条内存多大)# dmidecode -t memory | grep Size5、查看查看物理CPU个数# cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l6、每个物理CPU中core的个数(即核数)# cat /proc/cpuinfo| grep "cpu cores"| uniq7、查看逻辑CPU的个数# cat /proc/cpuinfo| grep "processor"| wc -l
或者
top 再 按数字1
8、查看cpu的型号# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c9、显示硬件系统部件 - (SMBIOS / DMI)# dmidecode -q10、宿主机查看序列号# esxcli hardware platform get
11、小型机查看序列号
# prtconf | head