天天看點

Linux檢視硬體資訊

1. 最簡單的的顯示全部dmi資訊:

<b> # dmidecode</b>

這樣将輸出所有的dmi資訊,你可能會被一大堆的資訊吓壞,通常可以使用下面的方法。

2.更精簡的資訊顯示:

<b># dmidecode -q</b>

-q(--quite) 隻顯示必要的資訊,這個很管用哦。

3.顯示指定類型的資訊:

通常我隻想檢視某類型,比如CPU,記憶體或者磁盤的資訊而不是全部的。這可以使用-t(--type TYPE)來指定資訊類型:

<b># dmidecode -t bios</b>

# dmidecode -t bios, processor (這種方式好像不可以用,必須用下面的數字的方式)

<b># dmidecode -t 0,4</b>  (顯示bios和processor)

伺服器到底能擴充到多大的記憶體?

[root@TJSJHL218-154 setup]# dmidecode -t 16

# dmidecode 2.9

SMBIOS 2.5 present.

Handle 0x1000, DMI type 16, 15 bytes

Physical Memory Array

 Location: System Board Or Motherboard

 Use: System Memory

 Error Correction Type: Multi-bit ECC

 Maximum Capacity: 65280 MB

 Error Information Handle: Not Provided

 Number Of Devices: 8

檢視主機型号和CPU型号:

[root@~dmidecode -s system-product-name

PowerEdge 1950

[root@~]# dmidecode -s processor-version

Intel(R) Xeon(R) CPU           E5405  @ 2.00GHz

 比如要檢視主機闆的詳細資訊:                           

[root@TJSJHL218-154 setup]# dmidecode -t baseboard

Handle 0x0200, DMI type 2, 9 bytes

Base Board Information

 Manufacturer: Dell Inc.

 Product Name: 0K649H

 Version: A00

 Serial Number: ..CN697028790626.

Handle 0x0A00, DMI type 10, 10 bytes

On Board Device 1 Information

 Type: Video

 Status: Enabled

 Description: Embedded ATI ES1000 Video

On Board Device 2 Information

 Type: Ethernet

 Description: Embedded Broadcom 5708 NIC 1

On Board Device 3 Information

 Description: Embedded Broadcom 5708 NIC 2

[root@TJSJHL218-154 setup]# dmidecode -t 2

dmidecode支援的數字參數:

Type   Information

----------------------------------------

0   BIOS

1   System

2   Base Board

3   Chassis

4   Processor

5   Memory Controller

6   Memory Module

7   Cache

8   Port Connector

9   System Slots

10   On Board Devices

11   OEM Strings

12   System Configuration Options

13   BIOS Language

14   Group Associations

15   System Event Log

16   Physical Memory Array

17   Memory Device

18   32-bit Memory Error

19   Memory Array Mapped Address

20   Memory Device Mapped Address

21   Built-in Pointing Device

22   Portable Battery

23   System Reset

24   Hardware Security

25   System Power Controls

26   Voltage Probe

27   Cooling Device

28   Temperature Probe

29   Electrical Current Probe

30   Out-of-band Remote Access

31   Boot Integrity Services

32   System Boot

33   64-bit Memory Error

34   Management Device

35   Management Device Component

36   Management Device Threshold Data

37   Memory Channel

38   IPMI Device

39   Power Supply

顯示的是

本文轉自 holy2009 51CTO部落格,原文連結:http://blog.51cto.com/holy2010/487480

繼續閱讀