1. 程式人生 > >檢視linux伺服器資訊

檢視linux伺服器資訊

1 檢視的是redhat的版本

cat /etc/redhat-release

[[email protected] creds]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.5 (Santiago)

uname -a

[[email protected] creds]# uname -a
Linux controller 2.6.32-431.el6.x86_64 #1 SMP Sun Nov 10 22:19:54 EST 2013 x86_64 x86_64 x86_64 GNU/Linux
[

[email protected] creds]# uname -r
2.6.32-431.el6.x86_64

lsb_release -a

[[email protected] creds]# lsb_release -a
LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description:    Red Hat Enterprise Linux Server release 6.5 (Santiago)
Release:        6.5
Codename:       Santiago

more /etc/issue

[[email protected] creds]# more /etc/issue
Red Hat Enterprise Linux Server release 6.5 (Santiago)
Kernel \r on an \m

more /proc/version

[[email protected] creds]# more /proc/version
Linux version 2.6.32-431.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GC
C) ) #1 SMP Sun Nov 10 22:19:54 EST 2013


2 Bios:
dmidecode |more          --其中能看到伺服器的製造商等資訊
[email protected]:~/devstack$ sudo dmidecode | more
# dmidecode 2.12
SMBIOS entry point at 0x7f6be000
SMBIOS 2.5 present.
87 structures occupying 3157 bytes.
Table at 0x7F6BD000.


Handle 0x0000, DMI type 38, 16 bytes
IPMI Device Information
        Interface Type: KCS (Keyboard Control Style)
        Specification Version: 2.0
        I2C Slave Address: 0x10
        NV Storage Device: Not Present
        Base Address: 0x0000000000000CA2 (I/O)


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 (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           X5650  @ 2.67GHz
        Voltage: 1.2 V
        External Clock: 6400 MHz
        Max Speed: 4400 MHz
        Current Speed: 2670 MHz
        Status: Populated, Enabled
        Upgrade: ZIF Socket
        L1 Cache Handle: 0x0002
        L2 Cache Handle: 0x0003
        L3 Cache Handle: 0x0004
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: Not Specified
        Core Count: 6
        Core Enabled: 6
        Thread Count: 12
        Characteristics:
                64-bit capable


Handle 0x0002, DMI type 7, 19 bytes
Cache Information
        Socket Designation: Internal Cache Level 1
        Configuration: Enabled, Not Socketed, Level 1
        Operational Mode: Write Back
        Location: Internal
        Installed Size: 32 kB
        Maximum Size: 32 kB
        Supported SRAM Types:
                Asynchronous
        Installed SRAM Type: Asynchronous
        Speed: Unknown
        Error Correction Type: Single-bit ECC
        System Type: Data
        Associativity: 8-way Set-associative

3 cpu : 
more /proc/cpuinfo
more /proc/cpuinfo |grep "physical "|sort -u            --cpu數量
more /proc/cpuinfo |grep "physical "|grep 0|wc -l    --單個cpu核心數量
more /proc/cpuinfo |head -10                                  --cpu的info,型別和主頻、cache等

4 mem:
free               --記憶體和swap
more /proc/meminfo
top

5 hd:
fdisk -l
parted
more /etc/scsi/scsi             --scsi介面的情況下


檢視機器配置:cpu/記憶體/硬碟檢視硬碟:
[[email protected] etc]# dmesg | grep hd
ide0: BM-DMA at 0x2060-0x2067, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0x2068-0x206f, BIOS settings: hdc:pio, hdd:pio
hdc: CD-232E, ATAPI CD/DVD-ROM drive
hdc: ATAPI 32X CD-ROM drive, 128kB Cache, UDMA(33)
SCSI device sda: 71687340 512-byte hdwr sectors (36704 MB)
SELinux: initialized (dev hdc, type iso9660), uses genfs_contexts
e1000: eth1: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex
e1000: eth1: e1000_watchdog: NIC Link is Down
e1000: eth1: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex

檢視CPU
[[email protected] etc]# dmesg|grep processor
Detected 2396.908 MHz processor.
Booting processor 1/1 eip 3000
Booting processor 2/6 eip 3000
Booting processor 3/7 eip 3000
Total of 4 processors activated (19070.97 BogoMIPS).

[[email protected] etc]# dmesg|grep CPU
Initializing CPU#0
CPU 0 irqstacks, hard=c03d8000 soft=c03b8000
CPU: After generic identify, caps: bfebfbff 00000000 00000000 00000000
CPU: After vendor identify, caps: bfebfbff 00000000 00000000 00000000
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: Physical Processor ID: 0
CPU: After all inits, caps: bfebf3ff 00000000 00000000 00000080
Intel machine check reporting enabled on CPU#0.
CPU0: Intel P4/Xeon Extended MCE MSRs (12) available
CPU0: Thermal monitoring enabled
CPU0: Intel(R) Xeon(TM) CPU 2.40GHz stepping 07



參考:
SMBIOS
SMBIOS(System Management BIOS)是主機板或系統製造者以標準格式顯示產品管理資訊所需遵循的統一規範。
DMI (Desktop Management Interface, DMI)的主要組成部分是Management InformationFormat (MIF)資料庫。這個資料庫包括了所有有關電腦系統和配件的資訊。通過DMI,使用者可以獲取序列號、電腦廠商、串列埠資訊以及其它系統配件資訊。
在介紹什麼是DMI之前,先說說SMBIOS (System Management BIOS,SMBIOS)的概念。 SMBIOS是主機板或系統製造者以標準格式顯示產品管理資訊所需遵循的統一規範。 DMI (Desktop Management Inte***ce, DMI)就是幫助收集電腦系統資訊的管理系統,DMI資訊的收集必須在嚴格遵照SMBIOS規範的前提下進行。 SMBIOS和DMI是由行業指導機構Desktop Management Task Force (DMTF)起草的開放性的技術標準,其中,DMI設計適用於任何的平臺和作業系統。 DMI充當了管理工具和系統層之間介面的角色。它建立了標準的可管理系統更加方便了電腦廠商和使用者對系統的瞭解。為了提供更為友好的使用者工作環境,AOpen開發了實用的WinDMI工具,它採用Windows介面,能夠用於多款AOpen主機板,完全相容 Windows 98SE/98/2000/XP作業系統。 WinDMI分為幾種功能,首先,預設的[Normal Mode]功能讓使用者可以獲取包括BIOS、作業系統、主機板、記憶體、擴充套件槽及擴充套件介面的所有詳細系統資訊。 第二種功能為[Dump Memory],它可以讓使用者轉儲記憶體資料,因為它顯示了當前DMI的結構資料,所以可以幫助高階使用者及軟體設計人員處理記憶體資料。此外,對DMI結構有興趣的使用者也可以使用此項功能進行初步的問題診斷。第三,WinDMI還可以讓使用者以普通或raw模式儲存DMI資料,如果使用者需要儲存DMI資訊,只需按下[Save As]即可。此項功能會在使用者指定的資料夾下建立一個 .txt檔案,使用者就可以在此文字檔案中找到所有所需的系統資訊。

相關推薦

檢視linux伺服器資訊

1 檢視的是redhat的版本 cat /etc/redhat-release [[email protected] creds]# cat /etc/redhat-release Red Hat Enterprise Linux Server release

檢視linux伺服器的記憶體和CPU資訊

記憶體資訊: 檢視記憶體資訊 # cat /proc/meminfo CPU: 註釋: 1、總核數 = 物理CPU個數 X 每顆物理CPU的核數  2、總邏輯CPU數 = 物理CPU個數 X 每顆物理CPU的核數 X 超執行緒數 # 檢視物理CPU個數 cat

檢視linux伺服器的cpu資訊

摘要:cat/proc/cpuinfo中的資訊processor邏輯處理器的id。physicalid物理封裝的處理器的id。coreid每個核心的id。cpucores位於相同物理封裝的處理器中的核

檢視Linux伺服器上的CPU資訊

1.檢視物理CPU個數(Physical CPU count ) #cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc –l 2.檢視邏

檢視Linux伺服器的使用者組資訊

cat /etc/group  檢視使用者組資訊 cat /etc/gshadow 檢視使用者組密碼資訊 cat /etc/passwd  使用者資訊 cat /etc/shadow  使用者密碼資訊 在/etc 中新增一個nologin檔案即可使系統

檢視linux伺服器網絡卡頻寬

   centos/redhat伺服器的的網路配置主要在  /etc/sysconfig/network-scripts/ifcfg-xxx  至於是  ifcfg-xxx是那個需要檢視系統安裝時的配置,如果未知,可以執行ifconfig,檢視i

檢視linux 系統資訊

Linux系統資訊檢視命令大全 版系統 uname -a # 檢視核心/作業系統/CPU資訊 head -n 1 /etc/issue # 檢視作業系統版本 cat /proc/cpuinfo # 檢視CPU資訊 hostname # 檢視計算機名 lspci

檢視linux版本資訊

1、檢視核心版本命令 [[email protected] ~]# cat /proc/version Linux檢視當前作業系統版本資訊 [[email protected] ~]# uname -r [[email pro

如何檢視linux版本資訊

在linux裝軟體的時候,由於自己的linux不是最高穩定版的linux,所以還是需要防止軟體版本不相容問題還有作業系統位數問題。所以需要檢視linux版本資訊。如下命令: 檢視linux版本 1.通過cat命令檢視安裝的版本資訊檔案 cat 命令用於連線檔案並列印到標準

檢視Linux伺服器記憶體、CPU、顯示卡使用情況

檢視記憶體使用情況 使用命令:free -m 大致結果類似下圖: 記憶體佔用情況 引數解釋: Mem行(單位均為M): * total:記憶體總數 * used:已使用記憶體數 * free:空閒記憶體數 * shared:當前廢棄不用 * buffers:快取記憶體

命令檢視Linux伺服器記憶體、CPU、顯示卡使用情況

檢視記憶體使用情況 使用命令:free -m 大致結果類似下圖: 引數解釋: Mem行(單位均為M): * total:記憶體總數 * used:已使用記憶體數 * free:空閒記憶體數 * shared:當前廢棄不用 * buf

檢視LINUX伺服器序列號

[[email protected] ~]# dmidecode -t 1 # dmidecode 2.11 SMBIOS 2.6 present. Handle 0x0100, DMI type 1, 27 bytes System Information         Manufacturer

linuxlinux命令:檢視linux伺服器的jdk、Tomcat、mysql、maven版本號

目錄 一、jdk 一、jdk 輸入命令,可以看到jdk版本是:1.8.0_181: cd ~ java -version 二、Tomcat (1)切換到Tomcat安裝目錄的bin目錄下: cd /usr/local/tomcat8-dev/b

檢視Linux伺服器上的Redis版本號

cd到redis的安裝目錄,我的是:/usr/local/redis/redis-stable 然後執行: src/redis-server --version 輸出:Redis server v

檢視linux系統資訊

一:cpu [[email protected] /]# more /proc/cpuinfo | grep "model name" model name    : Intel(R) Xeon(R) CPU          X3220 @ 2.40GHz

檢視linux伺服器硬碟IO讀寫負載

原文地址 http://www.cnblogs.com/mfryf/archive/2012/03/12/2392012.html 最近一臺linux伺服器出現異常,系統反映很慢,相應的應用程式也無法反映,而且還出現宕機的情況,經過幾天的觀察瞭解,發現伺服器壓力很大,主要

檢視linux伺服器是否被惡意攻擊

查看了連線數和當前的連線數複製程式碼程式碼如下:netstat -ant | grep $ip:80 | wc -lnetstat -ant | grep $ip:80 | grep EST | wc -l檢視IP訪問次數複製程式碼程式碼如下:netstat -nat|gr

常用檢視Linux系統資訊命令總結

系統 # uname -a # 檢視核心/作業系統/CPU資訊 # head -n 1 /etc/issue # 檢視作業系統版本 # cat /proc/cpuinfo # 檢視CPU資訊 # hostname # 檢視計算機名 # l

檢視linux伺服器應用的執行緒cpu使用率

最近新上了一個應用,由於該應用交易比較頻繁所以需要監控cpu使用率和記憶體使用率。但是最近在cpu使用率上面遇到了一些難題: 首

linux伺服器檢視mysql的安裝資訊

檢視mysql的安裝資訊: #ps -ef | grep mysql usr/bin/mysql 是指:mysql的執行路徑 var/lib/mysql 是指:mysql資料庫檔案的存放路徑 usr/lib/mysql 是指:mysql的安裝路徑  #whereis mysql #mysqladm