一般可以使用dmidecode命令。
dmidecode最常用的两个参数是-s和-t,-s后面可以接字符串关键字,即通过字符串来查询,-t后面接数字,通过类型号来进行查询。
-s参数可以使用的关键字有很多,和bios相关的主要有三个bios-vendor、bios-version、bios-release-date。
-t参数指明类型查询bios。要查询bios信息其后面的类型号为0。
[root@CENTOS ~]# dmidecode -s bios-vendor American [root@CENTOS ~]# dmidecode -s bios-ver-sion Invalid string keyword: bios-ver‐sion Valid string keywords are: -s参数后面可以接收的字符串 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
[root@CENTOS130 ~]# dmidecode -t dmidecode: option requires an argument -- 't' Type number or keyword expected Valid type keywords are:-t参数后面可以接受的字符串 bios system baseboard chassis processor memory cache connector slot
例子:
[root@CENTOS ~]# dmidecode -s bios-version xxx [root@CENTOS ~]# dmidecode -s bios-release-date xxx [root@CENTOS ~]# dmidecode -t 0 # dmidecode 3.0 Getting SMBIOS data from sysfs. SMBIOS 2.8 present. Handle 0x0000, DMI type 0, 26 bytes BIOS Information Vendor: xxxx Version: xx Release Date: xxxx Address: 0xxxx Runtime Size: 64 kB ROM Size: 16384 kB Characteristics: PCI is supported BIOS is upgradeable BIOS shadowing is allowed Boot from CD is supported BIOS Revision: 5.14
最新评论