Linux--查看主机配置

1、查看主机的型号
dmidecode | grep "Product Name"

例如:

gzcrm:~ # dmidecode | grep "Product Name"
        Product Name: System x3650 M3 -[7945ILQ]-
        Product Name: 69Y4438    

2、查看主机CPU
(1)、dmidecode -t 4例如:

[root@crm2group ~]# dmidecode -t 4
# dmidecode 2.9
SMBIOS 2.5 present.

Handle 0x0001, DMI type 4, 40 bytes
Processor Information
        Socket Designation: Node 1 Socket 1
        Type: Central Processor
        Family: Xeon MP
        Manufacturer: Intel(R) Corporation
        ID: C2 06 02 00 FF FB EB BF
        Signature: Type 0, Family 6, Model 44, 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 (Fast floating-point save and restore)
                SSE (Streaming SIMD extensions)
                SSE2 (Streaming SIMD extensions 2)
                SS (Self-snoop)
                HTT (Hyper-threading technology)
                TM (Thermal monitor supported)
                PBE (Pending break enabled)
... ...        

        Version: Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz
        Voltage: 1.2 V
        External Clock: 5866 MHz
        Max Speed: 4400 MHz
        Current Speed: 2400 MHz
        Status: Populated, Enabled
        Upgrade: ZIF Socket
        L1 Cache Handle: 0x0006
        L2 Cache Handle: 0x0007
        L3 Cache Handle: 0x0008
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: Not Specified
        Core Count: 4
        Core Enabled: 4
        Thread Count: 8
        Characteristics:
                64-bit capable

(2)、cat /proc/cpuinfo
--

3、查看主机内存
(1)、free -g

例如:

[root@crm2group ~]# free -g
             total       used       free     shared    buffers     cached
Mem:            62         60          2          0          0         57
-/+ buffers/cache:          3         59
Swap:           64          0         64

(2)、cat /proc/meminfo

gzcrm:~ # cat /proc/meminfo
MemTotal:      8150472 kB
MemFree:         38680 kB
Buffers:         45144 kB
Cached:        2341296 kB
SwapCached:     219540 kB
Active:        6831464 kB
Inactive:      1109580 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:      8150472 kB
LowFree:         38680 kB
SwapTotal:     8393952 kB
SwapFree:      7487068 kB
Dirty:           12580 kB
Writeback:          52 kB
AnonPages:     5454792 kB
Mapped:        1152724 kB
Slab:            69168 kB
CommitLimit:  12469188 kB
Committed_AS:  9505596 kB
PageTables:      48924 kB
VmallocTotal: 34359738367 kB
VmallocUsed:    285600 kB
VmallocChunk: 34359441895 kB
HugePages_Total:     0
HugePages_Free:      0
HugePages_Rsvd:      0
Hugepagesize:     2048 kB

4、查看主机硬盘

5、查看主机网络


6、查看操作系统版本
(1)、cat /proc/version
例如:

gzcrm:/proc # cat /proc/version
Linux version 2.6.16.60-0.54.5-smp (geeko@buildhost) (gcc version 4.1.2 20070115 (SUSE Linux)) #1 SMP Fri Sep 4 01:28:03 UTC 2009

(2)、 uname -a
例如:

gzcrm:/proc # uname -a
Linux gzcrm 2.6.16.60-0.54.5-smp #1 SMP Fri Sep 4 01:28:03 UTC 2009 x86_64 x86_64 x86_64 GNU/Linux

(3)、lsb_release -a
例如:

gzcrm:/proc # lsb_release -a
LSB Version:    core-2.0-noarch:core-3.0-noarch:core-2.0-x86_64:core-3.0-x86_64:desktop-3.1-amd64:desktop-3.1-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.1-amd64:graphics-3.1-noarch
Distributor ID: SUSE LINUX
Description:    SUSE Linux Enterprise Server 10 (x86_64)
Release:        10
Codename:       n/a

或者:

gzcrm:/proc # cat /etc/*release*
SUSE Linux Enterprise Server 10 (x86_64)
VERSION = 10
PATCHLEVEL = 3
LSB_VERSION="core-2.0-noarch:core-3.0-noarch:core-2.0-x86_64:core-3.0-x86_64"
cat: /etc/lsb-release.d: Is a directory
gzcrm:/proc #


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值