Querying server basic Hardware configuration information

Source: Internet
Author: User
Tags server memory

Many articles on the Internet are about the server hardware configuration query, but always a bit messy, today to summarize the following:


To view the number of server physical CPUs

[email protected] ~]# Cat/proc/cpuinfo | grep "Physical ID" | Sort | Uniq | Wc-l

2

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/7E/D6/wKiom1cKAQTSq7-8AAAWKYqlQN8157.jpg "title=" 1.jpg " alt= "Wkiom1ckaqtsq7-8aaawkyqlqn8157.jpg"/>


View the number of server single CPU cores

[email protected] ~]# Cat/proc/cpuinfo | grep "CPU Cores" | Uniq

CPU Cores:8

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7E/D6/wKiom1cKASmQSQwfAAAKF2bE37U104.png "title=" 2.png " alt= "Wkiom1ckasmqsqwfaaakf2be37u104.png"/>


To view the number of server logical CPUs

[email protected] ~]# cat/proc/cpuinfo |grep "Processor" |wc-l

32

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7E/D3/wKioL1cKAg3RBjPpAAAI9tc-9eo572.png "title=" 3.png " alt= "Wkiol1ckag3rbjppaaai9tc-9eo572.png"/>


View Server CPU Models

[email protected] ~]# Cat/proc/cpuinfo | grep ' model name ' |uniq

Model Name:intel (R) Xeon (r) CPU e5-2630 v3 @ 2.40GHz

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/7E/D7/wKiom1cKAc2hD2O8AAANMtdPsQM794.png "title=" 4.png " alt= "Wkiom1ckac2hd2o8aaanmtdpsqm794.png"/>


View server memory

[email protected] ~]# Cat/proc/meminfo | grep memtotal

memtotal:24276276 KB

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7E/D3/wKioL1cKAozgmp9QAAAKD77pfSU098.png "title=" 5.png " alt= "Wkiol1ckaozgmp9qaaakd77pfsu098.png"/>


View server memory Slots

[email protected] ~]# dmidecode |grep-a16 "Memory device$"

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7E/D7/wKiom1cKAebyrOV1AAA9oXXxBeI949.png "title=" 6.png " alt= "Wkiom1ckaebyrov1aaa9oxxxbei949.png"/>

This article is from "Rookie Takeoff" blog, please be sure to keep this source http://wenhan.blog.51cto.com/5271575/1762326

Querying server basic Hardware configuration information

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.