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