1、命令dmidecode -t实例
1.1命令格式
dmidecode -t [类型代码或名称 ] 指令
1.2获取系统信息
[root@lala docker]# dmidecode -t 1
1.3获取主板信息:
[root@shanghai docker]# dmidecode -t 2
1.4获取CPU ID
dmidecode -t 4 | grep ID
1.5获取系统序列号
dmidecode | grep Serial
附:dmidecode -t 指令参数参考
2、命令dmidecode -s实例
2.1命令格式
dmidecode -s [关键字] 指令
2.2查看处理器生产厂家:
[root@shanghai docker]# dmidecode -s processor-manufacturer
GenuineIntel
附可查询的关键字:
bios-vendor,bios-version,bios-release-date,system-manufacturer,system-product-name, system-version,system-serial-number,system-uuid,baseboard-manufacturer,baseboard-product-name, baseboard-version, baseboard-serial-number, baseboard-asset-tag,chassis-manufacturer, chassis-type,chassis-version,chassis-serial-number,chassis-asset-tag,processor-family,processor-manufacturer, processor-version, processor-frequency
3、Windows使用wminc获取CPU ID等硬件信息
3.1查看cpu序列号:
wmic cpu get processorid
3.2查看主板序列号:
wmic baseboard get serialnumber
3.3查看bios序列号:
wmic bios get serialnumber
3.4查看网卡信息:
wmic nicconfig get macaddress