第一步、要安装dmidecode这个包才能查询主板信息。Centos如下

[root@localhost ~]# yum install dmidecode
Loaded plugins: fastestmirror
Determining fastest mirrors
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
base                                                     | 3.7 kB     00:00
extras                                                   | 3.5 kB     00:00
extras/primary_db                                        |  23 kB     00:00
updates                                                  | 3.5 kB     00:00
updates/primary_db                                       | 4.6 MB     00:02
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package dmidecode.x86_64 1:2.11-2.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package            Arch            Version                 Repository     Size
================================================================================
Installing:
dmidecode          x86_64          1:2.11-2.el6            base           71 k

Transaction Summary
================================================================================
Install       1 Package(s)

Total download size: 71 k
Installed size: 188 k
Is this ok [y/N]:
Exiting on user Command
Ubuntu 默认已经安装,直接执行下面的命令即可!
[root@localhost ~]# dmidecode |more
-bash: dmidecode: command not found
[root@localhost ~]# yum install dmidecode
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package dmidecode.x86_64 1:2.11-2.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package            Arch            Version                 Repository     Size
================================================================================
Installing:
dmidecode          x86_64          1:2.11-2.el6            base           71 k

Transaction Summary
================================================================================
Install       1 Package(s)

Total download size: 71 k
Installed size: 188 k
Is this ok [y/N]: y
Downloading Packages:
dmidecode-2.11-2.el6.x86_64.rpm                          |  71 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 1:dmidecode-2.11-2.el6.x86_64                                1/1
Verifying  : 1:dmidecode-2.11-2.el6.x86_64                                1/1

Installed:
dmidecode.x86_64 1:2.11-2.el6

Complete!
第二步,dmidecode|more查询
[root@www.ctohome.com]# <strong>dmidecode|more</strong>
# dmidecode 2.10
 SMBIOS 2.4 present.
 57 structures occupying 2318 bytes.
 Table at 0x000E84B0.
Handle 0x0000, DMI type 0, 24 bytes
 BIOS Information
 Vendor: Intel Corp.
 Version: GTG4310H.86A.0019.2009.0625.1334
 Release Date: 06/25/2009
.....
System Information  服务器品牌
 Manufacturer:
 Product Name:              (没有信息表示非品牌或未识别)
 Version:
 Serial Number:
 UUID: 889BD67E-8D96-11DE-AC40-0013D4D9C9E8
 Wake-up Type: Power Switch
 SKU Number: Not Specified
 Family: Not Specified
Handle 0x0002, DMI type 2, 15 bytes
 Base Board Information  主板型号/主板信息
 Manufacturer: Intel Corporation
 Product Name: DG43GT
 Version: AAE62768-300
 Serial Number: BTGT9340022N
Processor Information  CPU信息/CPU型号/CPU主频
 Socket Designation: PROCESSOR
 Type: Central Processor
 Family: Pentium D
 Manufacturer: Intel(R) Corp.
 ID: 7A 06 01 00 FF FB EB BF
 Signature: Type 0, Family 6, Model 23, Stepping 10
 Version: Pentium(R) Dual-Core  CPU      E6500  @ 2.93GHz
 Voltage: 1.2 V
 External Clock: 266 MHz
 Max Speed: 4000 MHz
 Current Speed: 2931 MHz
 Status: Populated, Enabled
 Upgrade: Socket LGA775
Cache Information  硬件和CPU缓存情况
 Socket Designation: L1-Cache
 Configuration: Enabled, Not Socketed, Level 1
 Operational Mode: Write Back
 Location: Internal
 Installed Size: 32 kB
 Maximum Size: 32 kB
BIOS Language Information  BIOS语言
 Installable Languages: 1
 en|US|iso8859-1
 Currently Installed Language: en|US|iso8859-1
Physical Memory Array  主板最大支持内存
 Location: System Board Or Motherboard
 Use: System Memory
 Error Correction Type: None
 Maximum Capacity: 16 GB
 Error Information Handle: Not Provided
 Number Of Devices: 4
Handle 0x002C, DMI type 19, 15 bytes
 Memory Array Mapped Address  目前的内存
 Starting Address: 0x00000000000
 Ending Address: 0x000FFFFFFFF
 Range Size: 4 GB
 Physical Array Handle: 0x002B
 Partition Width: 0
On Board Device Information  显卡型号
 Type: Video
 Status: Enabled
 Description:  Intelr GMA X4500 Video Device

查看更多的Linux系统命令,如查看系统,主板,显卡,cpu,bios等信息请移步:

http://www.pooy.net/linux-system-commands-to-view-system-motherboard-graphics-card-cpubios-and-other-information.html

Leave a Reply

电子邮件地址不会被公开。 必填项已用*标注

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="">

请选择吧!