1. 程式人生 > >查看Linux服務器的配置信息

查看Linux服務器的配置信息

linux服務器查詢配置信息

一、目標

查看服務器的相關配置,例如服務器的品牌,CPU,內存,磁盤等等信息

二、環境

1.浪潮物理機

2.系統centos

三、相關查詢

1. 查看操作系統的版本

命令:cat /etc/redhat-release

CentOS Linux release 7.3.1611 (Core)

2.查看系統內核

命令:uname –a

Linux xxx 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

3.CPU信息

命令:lscpu

Architecture: x86_64

CPU op-mode(s): 32-bit, 64-bit

Byte Order: Little Endian

CPU(s): 48

On-line CPU(s) list: 0-47

Thread(s) per core: 2

Core(s) per socket: 12

座: 2

NUMA 節點: 2

廠商 ID: GenuineIntel

CPU 系列: 6

型號: 79

型號名稱: Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz

步進: 1

CPU MHz: 1213.265

BogoMIPS: 4394.95

虛擬化: VT-x

L1d 緩存: 32K

L1i 緩存: 32K

L2 緩存: 256K

L3 緩存: 30720K

NUMA 節點0 CPU: 0-11,24-35

NUMA 節點1 CPU: 12-23,36-47

4.內存信息

(1)產看內存硬件信息

命令:dmidecode -t memory

Handle 0x005C, DMI type 17, 40 bytes

Memory Device

Array Handle: 0x005A

Error Information Handle: Not Provided

Total Width: 72 bits

Data Width: 72 bits

Size: 16384 MB

Form Factor: DIMM

Set: None

Locator: CHG_0

Bank Locator: A1_Node1_Channel2_Dimm0

Type: DDR4

Type Detail: Synchronous

Speed: 2133 MHz

Manufacturer: Micron

Serial Number: 10BCEB8F

Asset Tag: CHG_0_AssetTag

Part Number: 36ASF2G72PZ-2G1A2

Rank: 2

Configured Clock Speed: 2133 MHz

Minimum Voltage: 1.2 V

Maximum Voltage: 1.2 V

Configured Voltage: 1.2 V

5:lsblk查看磁盤和分區分布

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT

sda 8:0 0 557.8G 0 disk

├─sda1 8:1 0 488M 0 part /boot

└─sda2 8:2 0 557.3G 0 part

├─cl-root 253:0 0 541.3G 0 lvm /

└─cl-swap 253:1 0 16G 0 lvm [SWAP]

sdb 8:16 0 1.8T 0 disk /space1

sdc 8:32 0 1.8T 0 disk /space2

sdd 8:48 0 1.8T 0 disk /space3

sde 8:64 0 1.8T 0 disk /space4

loop0 7:0 0 7.7G 0 loop /dac

6.網卡信息

命令:ethtool eth0

Settings for eno1:

Supported ports: [ TP ]

Supported link modes:10baseT/Half 10baseT/Full

100baseT/Half 100baseT/Full

1000baseT/Full

Supported pause frame use: Symmetric

Supports auto-negotiation: Yes

Advertised link modes: 10baseT/Half 10baseT/Full

100baseT/Half 100baseT/Full

1000baseT/Full

Advertised pause frame use: Symmetric

Advertised auto-negotiation: Yes

Speed: 1000Mb/s

Duplex: Full

Port: Twisted Pair

PHYAD: 1

Transceiver: internal

Auto-negotiation: on

MDI-X: on (auto)

Supports Wake-on: pumbg

Wake-on: g

Current message level: 0x00000007 (7)

drv probe link

Link detected: yes

7.BIOS信息

# dmidecode 3.0

Scanning /dev/mem for entry point.

SMBIOS 3.0 present.


Handle 0x0000, DMI type 0, 24 bytes

BIOS Information

Vendor: American Megatrends Inc.

Version: 4.1.12

Release Date: 10/20/2016

Address: 0xF0000

Runtime Size: 64 kB

ROM Size: 8192 kB

Characteristics:

PCI is supported

BIOS is upgradeable

BIOS shadowing is allowed

Boot from CD is supported

Selectable boot is supported

BIOS ROM is socketed

EDD is supported

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

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

3.5"/2.88 MB floppy services are supported (int 13h)

Print screen service is supported (int 5h)

Serial services are supported (int 14h)

Printer services are supported (int 17h)

ACPI is supported

USB legacy is supported

BIOS boot specification is supported

Targeted content distribution is supported

UEFI is supported

BIOS Revision: 5.6


Handle 0x007D, DMI type 13, 22 bytes

BIOS Language Information

Language Description Format: Long

Installable Languages: 1

en|US|iso8859-1

Currently Installed Language: en|US|iso8859-1


查看Linux服務器的配置信息