Linux系统查看服务器硬件信息

发布时间 2023-04-06 12:25:08作者: 肖战的战

1、查看服务器型号

1 [root@localhost ~]# dmidecode | grep "Product"
2         Product Name: RH2288H V3
3         Product Name: BC11H****

2、查看服务器的序列号

1 [root@localhost ~]# dmidecode -t system | grep 'Serial Number'
2         Serial Number: 2102311QGG10********

3、统一查看服务器SN序列号和型号

1 [root@localhost ~]# dmidecode | grep "System Information" -A9 | egrep "Manufacturer|Product|Serial"
2         Manufacturer: Huawei
3         Product Name: RH2288H V3
4         Serial Number: 2102311QGG10********

 4、查看内存插槽信息及使用情况

1 [root@localhost ~]# dmidecode -t memory | grep Size
2         Size: 8192 MB
3         Size: 8192 MB
4         Size: 16384 MB
5         Size: 16384 MB
6         Size: No Module Installed
7         Size: No Module Installed