`
yvfish
  • 浏览: 262207 次
  • 性别: Icon_minigender_1
  • 来自: 合肥
社区版块
存档分类
最新评论

CentOS/Linux 查看硬件配置CPU内存磁盘

阅读更多
【查看系统内存空间】

引用
free -m


             total       used       free     shared    buffers     cached
Mem:          3500        637       2863          0         51        290
-/+ buffers/cache:        294       3205
Swap:         7999          0       7999


以MB为单位显示内存空间,“Mem”后的total列就是内存大小。3500实际就是4GB。

【查看内存插槽和内存条】

引用
dmidecode --type memory


# dmidecode 2.11
SMBIOS 2.7 present.

Handle 0x0040, DMI type 16, 23 bytes
Physical Memory Array
	Location: System Board Or Motherboard
	Use: System Memory
	Error Correction Type: None
	Maximum Capacity: 32 GB  ##硬件能够支持的最大量
	Error Information Handle: Not Provided
	Number Of Devices: 4     ##内存插槽数量

Handle 0x0042, DMI type 17, 34 bytes
Memory Device
	Array Handle: 0x0040
	Error Information Handle: Not Provided
	Total Width: 64 bits
	Data Width: 64 bits
	Size: 4096 MB            ##内存条空间
	Form Factor: DIMM
	Set: None
	Locator: ChannelA-DIMM0
	Bank Locator: BANK 0     ##插槽位置编号
	Type: DDR3               ##内存条类型
	Type Detail: Synchronous
	Speed: 1333 MHz          ##内存条主频
	Manufacturer: Kingston   ##内存条厂商
	Serial Number: 9B369A8C
	Asset Tag: 9876543210
	Part Number: 99P5474-055.A00LF 
	Rank: 1
	Configured Clock Speed: 1333 MHz

Handle 0x0044, DMI type 17, 34 bytes
Memory Device
	Array Handle: 0x0040
	Error Information Handle: Not Provided
	Total Width: Unknown
	Data Width: Unknown
	Size: No Module Installed ##插槽没安装内存条
	Form Factor: DIMM
	Set: None
	Locator: ChannelA-DIMM1
	Bank Locator: BANK 1
	Type: Unknown
	Type Detail: None
	Speed: Unknown
	Manufacturer: [Empty]
	Serial Number: [Empty]
	Asset Tag: 9876543210
	Part Number: [Empty]
	Rank: Unknown
	Configured Clock Speed: Unknown






【查看磁盘及分区情况】

引用
fdisk -l


Disk /dev/sda: 1000.2 GB, 1000204886016 bytes   ##磁盘sda空间1TB,分三个区
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0002cb39

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          26      204800   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              26        1046     8192000   82  Linux swap / Solaris
/dev/sda3            1046      121602   968364032   83  Linux





【查看磁盘分区挂载情况】
对照fdisk -l可以看到各分区空间分别挂载到了哪个目录下、是否有磁盘分区未挂载使用。
引用
df -h


Filesystem      Size  Used Avail Use% Mounted on
/dev/sda3       910G  5.1G  858G   1% /   ##磁盘sda最大分区sda3挂载在根目录下910GB
tmpfs           1.8G   72K  1.8G   1% /dev/shm
/dev/sda1       194M   32M  152M  18% /boot




【查看硬盘硬件信息】

引用
smartctl --all /dev/sda

如果此工具命令不支持可以使用hdparm -i /dev/sda查看型号,建议安装此工具
smartctl 5.43 2012-06-30 r3573 [i686-linux-2.6.32-431.el6.i686] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda (SATA 3Gb/s, 4K Sectors) ##厂商
Device Model:     ST1000DM003-1ER162                         ##型号
Serial Number:    W4Y4PK8N                                   ##序列号
LU WWN Device Id: 5 000c50 08a8951c8
Firmware Version: CC46
User Capacity:    1,000,204,886,016 bytes [1.00 TB]          ##空间
Sector Sizes:     512 bytes logical, 4096 bytes physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   8
ATA Standard is:  ACS-2 (unknown minor revision code: 0x001f)
Local Time is:    Fri Jan 12 14:19:32 2018 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled



如果有RAID卡,参考http://blog.csdn.net/msdnchina/article/details/52475383


【查看CPU硬件信息】

引用
dmidecode --type processor

# dmidecode 2.11
SMBIOS 2.7 present.

Handle 0x0041, DMI type 4, 42 bytes
Processor Information
	Socket Designation: SOCKET 0                          ##插槽0
	Type: Central Processor
	Family: Pentium                                       ##家族系列
	Manufacturer: Intel(R) Corporation                    ##制造商
	ID: A7 06 02 00 FF FB EB BF
	Signature: Type 0, Family 6, Model 42, Stepping 7
	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)
		DS (Debug store)
		ACPI (ACPI supported)
		MMX (MMX technology supported)
		FXSR (FXSAVE and FXSTOR instructions supported)
		SSE (Streaming SIMD extensions)
		SSE2 (Streaming SIMD extensions 2)
		SS (Self-snoop)
		HTT (Multi-threading)
		TM (Thermal monitor supported)
		PBE (Pending break enabled)
	Version: Intel(R) Pentium(R) CPU G860 @ 3.00GHz         ##CPU型号
	Voltage: 5.0 V 3.3 V 2.9 V
	External Clock: 100 MHz
	Max Speed: 3800 MHz
	Current Speed: 3000 MHz
	Status: Populated, Enabled
	Upgrade: Socket BGA1155
	L1 Cache Handle: 0x003E
	L2 Cache Handle: 0x003D
	L3 Cache Handle: 0x003F
	Serial Number: Not Specified
	Asset Tag: Fill By OEM
	Part Number: Fill By OEM
	Core Count: 2                                          ##核心总数
	Core Enabled: 2                                        ##线程总数
	Thread Count: 2
	Characteristics:
		64-bit capable                                 ##是否支持64位



下面是另外一台服务器的CPU信息。
# dmidecode 2.11
SMBIOS 2.8 present.
# SMBIOS implementations newer than version 2.7 are not
# fully supported by this version of dmidecode.

Handle 0x0016, DMI type 4, 42 bytes
Processor Information
	Socket Designation: CPU01   ##CPU1
	Type: Central Processor
	Family: Xeon                ##至强
	Manufacturer: Intel(R) Corporation
	ID: F2 06 03 00 FF FB EB BF
	Signature: Type 0, Family 6, Model 63, 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)
		DS (Debug store)
		ACPI (ACPI supported)
		MMX (MMX technology supported)
		FXSR (FXSAVE and FXSTOR instructions supported)
		SSE (Streaming SIMD extensions)
		SSE2 (Streaming SIMD extensions 2)
		SS (Self-snoop)
		HTT (Multi-threading)
		TM (Thermal monitor supported)
		PBE (Pending break enabled)
	Version: Intel(R) Xeon(R) CPU E5-2609 v3 @ 1.90GHz   ##型号Xeon E5-2609 v3
	Voltage: 1.8 V
	External Clock: 100 MHz
	Max Speed: 3500 MHz
	Current Speed: 1900 MHz
	Status: Populated, Enabled
	Upgrade: <OUT OF SPEC>
	L1 Cache Handle: 0x0013
	L2 Cache Handle: 0x0014
	L3 Cache Handle: 0x0015
	Serial Number: Not Specified
	Asset Tag: UNKNOWN
	Part Number: Not Specified
	Core Count: 6                                        ##六核
	Core Enabled: 6
	Thread Count: 6                                      ##六线程
	Characteristics:
		64-bit capable
		Multi-Core
		Hardware Thread
		Execute Protection
		Enhanced Virtualization
		Power/Performance Control

Handle 0x001B, DMI type 4, 42 bytes
Processor Information
	Socket Designation: CPU02                           ##第二个CPU
	Type: Central Processor
	Family: Xeon
	Manufacturer: Intel(R) Corporation
	ID: F2 06 03 00 FF FB EB BF
	Signature: Type 0, Family 6, Model 63, 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)
		DS (Debug store)
		ACPI (ACPI supported)
		MMX (MMX technology supported)
		FXSR (FXSAVE and FXSTOR instructions supported)
		SSE (Streaming SIMD extensions)
		SSE2 (Streaming SIMD extensions 2)
		SS (Self-snoop)
		HTT (Multi-threading)
		TM (Thermal monitor supported)
		PBE (Pending break enabled)
	Version: Intel(R) Xeon(R) CPU E5-2609 v3 @ 1.90GHz
	Voltage: 1.8 V
	External Clock: 100 MHz
	Max Speed: 3500 MHz
	Current Speed: 1900 MHz
	Status: Populated, Enabled
	Upgrade: <OUT OF SPEC>
	L1 Cache Handle: 0x0018
	L2 Cache Handle: 0x0019
	L3 Cache Handle: 0x001A
	Serial Number: Not Specified
	Asset Tag: UNKNOWN
	Part Number: Not Specified
	Core Count: 6
	Core Enabled: 6
	Thread Count: 6
	Characteristics:
		64-bit capable
		Multi-Core
		Hardware Thread
		Execute Protection
		Enhanced Virtualization
		Power/Performance Control
分享到:
评论

相关推荐

    批量获取linux服务器厂商/cpu/内存/磁盘/网卡等信息(适用于centos7系x86和arm架构)

    无需做免密,通过expect利用ssh批量获取linux服务器厂商/cpu/内存/磁盘/网卡等信息 1、设置数组变量,并指定服务器ip列表 #需要检查的服务器列表 IP@@ssh端口@@用户名@@密码 serverInfo=( 192.168.195.129@@22@@...

    Linux运维监控工具,支持系统硬件信息,内存,cpu,温度,磁盘空间及IO,硬盘smart,系统负载,网络流量等监控,服务接口

    wgcloud支持显示CPU利用率、CPU温度、内存利用率、磁盘容量、磁盘IO、硬盘智能健康状态、系统负载、连接数、网卡流量、硬件系统信息等。 支持进程应用、文件、端口、服务器上的日志、docker容器、数据库、数据表等...

    sysinfo:通过golang获取linux系统信息(cpu,内存,磁盘等)

    系统信息通过golang获取linux系统信息(cpu,内存,磁盘等)

    SNMP查看CPU及内存使用率

    描述如何通过SNMP协议通过网络读取远端电脑的实时性能参数

    vmware安装centos8

    1M 1G 1核cpu 40GB磁盘。看了腾讯的ECS后,发现价格都差不多。 于是决定使用暂时vmware。看了一下vmware已经发展到了15。系统选用centos8。 下载centos8镜像 在浏览器输入地址: https://www.centos.org/ 或用...

    Centos5.6安装、java环境配置、驱动安装

    Centos5.6安装详细步骤、java开发环境搭建与配置、驱动安装[802.11无线网卡驱动、显卡驱动等] 环境: (联想G460[原系统win7 ,分了150用以装Centos]) 目标操作系统:Centos 5.6 [64位的哟] CPU:Intel(R) Core(TM) i3...

    windows 用VMware创建linux虚拟机安装CentOS7.2操作系统

    【9】最后查看虚拟机配置 2、安装操作系统(以CentOS7.2为例) 【1】准备好ISO镜像文件 下载网站:http://isoredirect.centos.org/centos/7/isos/x86_64 【2】配置ISO镜像路径 【3】开始安装操

    java通过ssh调用centos7指令

    java通过ssh调用centos7指令,获取磁盘空间使用率、磁盘空间使用情况、网络使用情况,CPU使用率,内存使用率

    Centos 7.6 镜像安装

    一、准备 Centos 7.6 镜像 二、安装VMware虚拟机 ...三、安装Linux系统 步骤1:打开VMshare -&gt; 文件 -&gt; 新建虚拟机 -&gt;默认下一步 ...步骤7:设置内存、cpu、网络适配器(注意有的公司局域网仅持桥接模式,其他配置根据硬

    Linux命令笔记

    4:查看CPU信息 /proc/cpuinfo 5:uptime启动时间和平均负载 语法: uptime 6:uname查看系统与内核相关信息 语法: uname [选项] 7:判断当前系统的位数(32位或64位..) 8:查看当前Linux系统的发行版本 语法: lsb_...

    linux资源监控工具

    linux下的资源监控工具,可以监控CPU,内存、磁盘、网卡的使用情况,对Redhat,centos,suse,Ubuntu,Debian等linux版本都支持

    linux_inspection_v2.32

    适用于CentOS与RedHat,自动计算内存占用率、CPU占用率、磁盘使用率,并将cpu和内存使用率输出成csv文件,方便后期统计分析。新版本在CSV文件中增加日期与时间。 使用方法:在linux下chmod 777 付权后使用./执行即可...

    学习Linux运维的个人笔记:安装Centos7(二)

    下面就来介绍如何用VMware Workstion上组装一台自定义电脑(CPU、内存、磁盘、网络)并且成功的安装上Linux操作系统 二、创建虚拟机并且安装Linux系统 要求: 1.安装版本:CentOS7 2.IP地址:10.0.0.100 3.设备名称...

    KVM虚拟化管理平台VManagePlatform.zip

    CPU、MEM、磁盘、网络)实例控制(如:生存周期管理、快照技术,Web Console等等)设备资源控制(如:在线调整内存、CPU资源、热添加、删除硬盘)存储池管理增减卷,支持主流类型存储类型资源利用率网络管理支持SDN...

    kvm virtual 克隆脚本踩坑

    KVM 从rhel6开始 centos都是采用kvm 之前都是采用xen ...1.纯软件模拟的 qemu/ linux 特点: 开源,对于硬件的要求低 速度慢 模拟磁盘网卡等… KVM不模拟网卡磁盘等依赖 qemu来进行模拟 qemu/kvm 3.完全虚拟

    Xen虚拟机在CentOS系统中的安装和使用方法

     虚拟化的概念:将服务器物理资源抽象成逻辑资源,让一台服务器变成几台甚至上百台相互隔离的虚拟服务器,我们不再受限于物理上的界限,而是让CPU、内存、磁盘、I/O等硬件变成可以动态管理的“资源池”,从而提高...

    大数据运维方向面试题.pdf

    看内存 :free 看cpu:more /proc/cpuinfo 看IO:iostat -x 10 看磁盘:fdisk -l 6.请⽤多种⽅式在linux系统中设置环境变量,并指出各种⽅式的区别。 1、控制台中设置,不赞成这种⽅式,因为他只对当前的shell 起作...

    大数据运维方向面试题(1).pdf

    看内存 :free 看cpu:more /proc/cpuinfo 看IO:iostat -x 10 看磁盘:fdisk -l 6.请⽤多种⽅式在linux系统中设置环境变量,并指出各种⽅式的区别。 1、控制台中设置,不赞成这种⽅式,因为他只对当前的shell 起作...

    VMware Workstation 11.1.0 官方简体中文正式版.zip

    VMware Player是一个免费软件,可以让PC用户在Windows或LinuxPC上很容易的运行虚拟机。vm虚拟机支持的格式有:VMwareWorkstation、GSXServer/ESXServer、Microsoftvirtualmachines、SymantecLiveStateRecovery。  ...

    悬镜管家 v3.0 免费版

    资源监控功能实现了客户端远程对代理端的CPU使用率、内存使用率、磁盘使用率、流量等的监视,并且可以对监控参数进行设置,通过对CPU使用率、内存使用率、磁盘使用率、流量的上限和超过上限以及定时时间等参数的设置...

Global site tag (gtag.js) - Google Analytics