使命召唤linux服务器,Linux下使用dmidecode查看服务器的详细的硬件配置

dmidecode可以查看服务器硬件的详细配置,下面是DMI的类型:

语法格式:DB01:~ # dmidecode --help

Usage: dmidecode [OPTIONS]

Options are:

-d, --dev-mem FILE     Read memory from device FILE (default: /dev/mem)

-h, --help             Display this help text and exit

-q, --quiet            Less verbose output

-s, --string KEYWORD   Only display the value of the given DMI string

-t, --type TYPE        Only display the entries of given type

-u, --dump             Do not decode the entries

-V, --version          Display the version and exit

查看DMI的类型:DMI TYPES

The SMBIOS specification defines the following DMI types:

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

查看BIOS信息:DB01:~ # dmidecode -t

dmidecode: option requires an argument -- 't'

Type number or keyword expected

Valid type keywords are:

bios

system

baseboard

chassis

processor

memory

cache

connector

slot

DB01:~ # dmidecode -t bios

# dmidecode 2.9

SMBIOS 2.5 present.

Handle 0x0000, DMI type 0, 24 bytes

BIOS Information

Vendor: HP

Version: A15

Release Date: 05/02/2011

Address: 0xF0000

Runtime Size: 64 kB

ROM Size: 4096 kB

Characteristics:

PCI is supported

PNP is supported

BIOS is upgradeable

BIOS shadowing is allowed

ESCD support is available

Boot from CD is supported

Selectable boot is supported

EDD is supported

5.25"/360 KB floppy services are supported (int 13h)

5.25"/1.2 MB floppy services are supported (int 13h)

3.5"/720 KB floppy services are supported (int 13h)

Print screen service is supported (int 5h)

8042 keyboard services are supported (int 9h)

Serial services are supported (int 14h)

Printer services are supported (int 17h)

CGA/mono video services are supported (int 10h)

ACPI is supported

USB legacy is supported

BIOS boot specification is supported

Function key-initiated network boot is supported

Targeted content distribution is supported

查看系统信息:DB01:~ # dmidecode -t system

# dmidecode 2.9

SMBIOS 2.5 present.

Handle 0x0100, DMI type 1, 27 bytes

System Information

Manufacturer: HP

Product Name: ProLiant DL785 G5

Version: Not Specified

Serial Number: SGH030XF4X

UUID: 414D3432-3341-5347-4830-333058463458

Wake-up Type: Power Switch

SKU Number: AM423A

Family: ProLiant

Handle 0x2000, DMI type 32, 11 bytes

System Boot Information

Status: No errors detected

查看CPU的信息:DYDMSDB01:~ # dmidecode -t processor

# dmidecode 2.9

SMBIOS 2.5 present.

Handle 0x0400, DMI type 4, 40 bytes

Processor Information

Socket Designation: Proc 1

Type: Central Processor

Family: Opteron

Manufacturer: AMD

ID: 42 0F 10 00 FF FB 8B 17

Signature: Family 16, Model 4, Stepping 2

Flags:

FPU (Floating-point unit on-chip)

VME (Virtual mode extension)

DE (Debugging extension)

PSE (Page size extension)

TSC (Time stamp counter)

MSR (Model specific registers)

PAE (Physical address extension)

MCE (Machine check exception)

CX8 (CMPXCHG8 instruction supported)

APIC (On-chip APIC hardware supported)

SEP (Fast system call)

MTRR (Memory type range registers)

PGE (Page global enable)

MCA (Machine check architecture)

CMOV (Conditional move instruction supported)

PAT (Page attribute table)

PSE-36 (36-bit page size extension)

CLFSH (CLFLUSH instruction supported)

MMX (MMX technology supported)

FXSR (Fast floating-point save and restore)

SSE (Streaming SIMD extensions)

SSE2 (Streaming SIMD extensions 2)

HTT (Hyper-threading technology)

Version: Not Specified

Voltage: 1.4 V

External Clock: Unknown

Max Speed: 3000 MHz

Current Speed: 2500 MHz

Status: Populated, Enabled

Upgrade: Other

L1 Cache Handle: 0x0710

L2 Cache Handle: 0x0720

L3 Cache Handle: 0x0730

Serial Number: Not Specified

Asset Tag: Not Specified

Part Number: Not Specified

Core Count: 4

Core Enabled: 4

Thread Count: 4

Characteristics:

64-bit capable

Handle 0x0401, DMI type 4, 40 bytes

Processor Information

Socket Designation: Proc 2

Type: Central Processor

Family: Opteron

Manufacturer: AMD

ID: 42 0F 10 00 FF FB 8B 17

Signature: Family 16, Model 4, Stepping 2

Flags:

FPU (Floating-point unit on-chip)

VME (Virtual mode extension)

DE (Debugging extension)

PSE (Page size extension)

TSC (Time stamp counter)

MSR (Model specific registers)

PAE (Physical address extension)

MCE (Machine check exception)

CX8 (CMPXCHG8 instruction supported)

APIC (On-chip APIC hardware supported)

SEP (Fast system call)

MTRR (Memory type range registers)

PGE (Page global enable)

MCA (Machine check architecture)

CMOV (Conditional move instruction supported)

PAT (Page attribute table)

PSE-36 (36-bit page size extension)

CLFSH (CLFLUSH instruction supported)

MMX (MMX technology supported)

FXSR (Fast floating-point save and restore)

SSE (Streaming SIMD extensions)

SSE2 (Streaming SIMD extensions 2)

HTT (Hyper-threading technology)

Version: Not Specified

Voltage: 1.4 V

External Clock: Unknown

Max Speed: 3000 MHz

Current Speed: 2500 MHz

Status: Populated, Idle

Upgrade: Other

L1 Cache Handle: 0x0711

L2 Cache Handle: 0x0721

L3 Cache Handle: 0x0731

Serial Number: Not Specified

Asset Tag: Not Specified

Part Number: Not Specified

Core Count: 4

Core Enabled: 4

Thread Count: 4

Characteristics:

64-bit capable

查看物理内存的信息:DB01:~ # dmidecode -t 16

# dmidecode 2.9

SMBIOS 2.5 present.

Handle 0x0000, DMI type 0, 24 bytes

BIOS Information

Vendor: HP

Version: A15

Release Date: 05/02/2011

Address: 0xF0000

Runtime Size: 64 kB

ROM Size: 4096 kB

Characteristics:

PCI is supported

PNP is supported

BIOS is upgradeable

BIOS shadowing is allowed

ESCD support is available

Boot from CD is supported

Selectable boot is supported

EDD is supported

5.25"/360 KB floppy services are supported (int 13h)

5.25"/1.2 MB floppy services are supported (int 13h)

3.5"/720 KB floppy services are supported (int 13h)

Print screen service is supported (int 5h)

8042 keyboard services are supported (int 9h)

Serial services are supported (int 14h)

Printer services are supported (int 17h)

CGA/mono video services are supported (int 10h)

ACPI is supported

USB legacy is supported

BIOS boot specification is supported

Function key-initiated network boot is supported

Targeted content distribution is supported

其它硬件信息,也可以类似查看。这个命令结合dmesg去查看,收集的信息会比较全

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值