1、單獨查看服務器的序列號
[root@localhost ~]# dmidecode -t system | grep 'Serial Number'
Serial Number: 2102310YPY10J30*****
2、單獨查看服務器型號
[root@localhost ~]# dmidecode | grep "Product"
Product Name: PowerEdge R730
Product Name: 0WCJNT
3、統一查看服務器SN序列號和型號
[root@localhost ~]# dmidecode | grep "System Information" -A9 | egrep "Manufacturer|Product|Serial"
Manufacturer: Huawei 廠商
Product Name: RH2288 V3 型號
Serial Number: 2102310YPY10J3****** 序列號
4、查看內存條信息及使用情況(內存的插槽數,已經使用多少插槽.每條內存多大,下圖為16個內存插糟,用了12個插槽,每根內存條16G)
[root@localhost ~]# dmidecode -t memory | grep Size
Size: 16384 MB
Size: 16384 MB
Size: 16384 MB
Size: 16384 MB
Size: 16384 MB
Size: No Module Installed
Size: 16384 MB
Size: No Module Installed
Size: 16384 MB
Size: 16384 MB
Size: 16384 MB
Size: 16384 MB
Size: 16384 MB
Size: No Module Installed
Size: 16384 MB
Size: No Module Installed
轉載於:https://www.cnblogs.com/wangzy-tongq/p/11290671.html