Summary of commands for viewing hardware information under Linux operating system

Source: Internet
Author: User



1. View the CPU model

[Email protected] ~]# Cat/proc/cpuinfo | grep name | Awk-f: ' {print $} ' |uniq Intel (R) Xeon (r) CPU e5-2620 0 @ 2.00GHz


2. View the number of physical CPUs

[Email protected] ~]# Cat/proc/cpuinfo | grep physical |sort |uniqaddress sizes:46 bits physical, bits virtualphysical id:0physical id:1=======>2 a physical CPU3


3. View the number of cores per physical CPU

[Email protected] ~]# Cat/proc/cpuinfo | grep cores |uniqcpu cores:6=======> Each physical CPU is 6 cores


4.CPU whether Hyper-Threading is supported

[Email protected] ~]# Cat/proc/cpuinfo | grep processor |wc-l24=======>24 a logical CPU
[Email protected] ~]# Cat/proc/cpuinfo | grep ' core ID ' |sort |uniq-c 4 core id:0 4 core id:1 4 core Id:2 4 Core Id:3 4 Core ID: 4 4 Core Id:5 The value of the same core ID should theoretically be only 2, and there are 4, which means that hyper-threading technology is used.

5. View the operating mode of the bonding NIC

[[Email protected] ~]# cat  /proc/net/bonding/bond0ethernet channel bonding  Driver: v3.7.1  (april 27, 2011) bonding mode: fault-tolerance  ( Active-backup)    //main Standby mode primary slave: nonecurrently active slave: em1               //is now the EM1 NIC is working mii  status: upmii polling interval  (ms): 1up delay  (MS): 100Down  delay  (MS): 100slave interface: em1mii status: upspeed: 1000  mbpsduplex: fulllink failure count: 0permanent hw addr: b8:ca:3a:f2:5c : 32slave queue id: 0slave interface: em2mii status: upspeed: 1000  mbpsduplex: fulllink failure count: 0permanent hw addr: b8:ca:3a:f2 : 5c:33slave queue id: 0


6. View Hardware RAID card information

(1) MEGACLI Tool Installation

Yum Install-y ftp://rpmfind.net/linux/Mandriva/devel/cooker/x86_64/media/non-free/release/ megacli-8.02.21-1-mdv2012.0.x86_64.rpm

(2). View RAID Status

[[email protected] ~]# megacli -ldinfo -l0 -a0osspecificinitialize: failed  to load libsysfs.so.2.0.2 please ensure that libsfs is present  in the system. the dependent library libsysfs.so.2.0.1 not available. please contact  Lsi for distribution of the packageadapter 0 -- virtual drive  Information:Virtual Drive: 0  (target id: 0) name                 :RAID Level           : Primary-1, Secondary-0, RAID Level  qualifier-0size                 : 931.0 gbmirror data         : 931.0  gbstate               : degraded RAID1 damage on             //line strip size           : 64 KBNumber Of Drives     : 2Span Depth          : 1Default  Cache policy: writethrough, readaheadnone, direct, no write cache if  bad bbucurrent cache policy: writethrough, readaheadnone, direct, no  Write Cache if Bad BBUDefault Access Policy: Read/WriteCurrent  Access policy: read/writedisk cache policy   : disk ' s  defaultencryption type     : nonedefault power savings  Policy: controller definedcurrent power savings policy: nonecan spin up in 1 minute:  YESLD HAS DRIVES THAT SUPPORT T10 POWER CONDITIONS: YESLD ' S IO  profile supports max power savings with cached writes: nobad  blocks exist: nois vd cached: no




7.IOPS

IOPS is the amount of storage per second that a host can receive, an IO that requires multiple accesses to the storage to complete a "metric. Zabbix monitoring, online use.



This article from the "Do not ask for the best, only better" blog, please be sure to keep this source http://yujianglei.blog.51cto.com/7215578/1730534

Summary of commands for viewing hardware information under Linux operating system

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.