查看Linux服务器的配置信息
admin
2023-03-24 04:20:31
0

一、目标

查看服务器的相关配置,例如服务器的品牌,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


相关内容

热门资讯

DeepSeek塞进苹果本儿,... 文 | 字母AI 在agent时代最贵的是什么?是token。 一些重度agent使用者,一个月用...
中美将于5月12日—13日举行... 有记者问:近期有消息称,中美双方将很快举行下一轮经贸磋商,请问商务部是否有最新消息?答:经中美双方商...
华为申请语音交互方法专利,提升... 国家知识产权局信息显示,华为技术有限公司申请一项名为“一种语音交互方法和电子设备”的专利,公开号CN...
事关俄乌冲突,普京释放重要信号 据中国新闻网援引塔斯社报道,当地时间5月9日,俄罗斯总统普京在记者会上表示,他既不会主动提出、也不会...
藏语大模型亮相北京科博会 弥合... 新华社北京5月10日电 题:藏语大模型亮相北京科博会 弥合AI时代“数字鸿沟” 新华社记者郭沛然 对...
光帆带摄像头AI耳机本月开售,... 5月9日,光帆科技官方账号发布发售预热海报。海报显示,全球首款具备视觉感知能力的主动式AI耳机——光...
我国“太极计划”获关键突破 据新华社消息,记者5月9日从中国科学院力学研究所获悉,我国空间引力波探测“太极计划”传来新消息,科研...
武汉大学的声明,有点搞笑 就在刚刚,武汉大学出来发声明了。为什么发声明呢?主要的原因,就是前两天,OPPO发布的一个母亲节活动...
1.766亿独生子女的难题 他们是中国历史上最特殊的一代人。生于计划生育最严的年代,长在“一对夫妻一个孩”的时代。据中国社科院人...
女子出租屋凌晨疑遭陌生人闯入,... 极目新闻记者 郭奕据红星新闻报道,居住在杭州的女子小鱼(化名)在社交媒体上发布了一段拍摄于4月28日...