1、单独
查看服务器的
序列号[root@localhost ~]# dmidecode -t system | grep 'Serial Number'Serial Number: 2102310YPY10J30*****2、单独查看服务器型号[root@localhost ~]# dmidecode | grep "Product"Product Name: PowerEdge R730Product Name: 0WCJNT3、统一查看服务器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)《Linux就该这么学》一起学习linux[root@localhost ~]# dmidecode -t memory | grep SizeSize: 16384 MBSize: 16384 MBSize: 16384 MBSize: 16384 MBSize: 16384 MBSize: No Module InstalledSize: 16384 MBSize: No Module InstalledSize: 16384 MBSize: 16384 MBSize: 16384 MBSize: 16384 MBSize: 16384 MBSize: No Module InstalledSize: 16384 MBSize: No Module Installed当我们需要获取机器硬件信息时,可使用linux系统自带的dmidecode工具进行查询。例:下面的Serial Number信息。
[root@az01node021 ~]# dmidecode -t 1
# dmidecode 2.11
SMBIOS 2.7 present.
Handle 0x0100, DMI type 1, 27 bytes
System Information
Manufacturer: Dell Inc.
Product Name: PowerEdge R720xd
Version: Not Specified
Serial Number: FJ2SHY1
UUID: 4C4C4544-004A-3210-8053-C6C04F485931
Wake-up Type: Power Switch
SKU Number: SKU=NotProvidedModelName=PowerEdge R720xd
Family: Not Specified
评论列表(0条)