linux hardware information query (CPU, memory, motherboard, etc.)

1 Query CPU Information:

Explanation
Nuclear Nuclear = Total # of the physical CPU number every single physical CPU X 
# = Total number of logical CPU number X per physical CPU core pieces physical CPU number X hyperthreads
# If the CPU cores and the same number of logical, indicating that the CPU is not hyper-threading, otherwise there is, as in the present embodiment is a double-threaded CPU

 

View CPU model

cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c

View the number of physical CPU

cat /proc/cpuinfo |grep "physical id" | sort | uniq | wc -l

View a single CPU core number

cat /proc/cpuinfo| grep "cpu cores"| uniq

View the number of logical CPU

cat /proc/cpuinfo| grep "processor"| wc -l

2 View Memory:

cat /proc/meminfo

Explanation
dmidecode command can be achieved 
- System Information Server brand 
- Base Board Information Board model / motherboard information 
- Processor Information CPU information / CPU type / CPU clock speed 
- Cache Information hardware and CPU cache case 
- Physical Memory Array motherboard maximum memory support 
- Memory Array Mapped Address Current memory 
- On Board Device Information graphics models

View memory type, frequency

sudo dmidecode -t memory
View memory model

dmidecode -t 17

View the number of memory slots and the number of current memory

dmidecode|grep -P -A5 "Memory Device" |grep Size

Query server model

dmidecode -t 1

Query Board Information

dmidecode -t 2

Hard Disk Information inquiry

Viewing Array card (or hard drive)

cat / proc / scsi / scsi (or via the command: lspci)

Check the hard disk size

df -TH

Tools Introduction

Most servers are configured with an array of cards, hard disk to do a raid, you can command to query the array card and hard disk information (see Annex installation package) by this tool MegaCli

MegaCli64 -cfgdsply -aALL

RAID number correspondence table information is as follows:

RAID Level : Primary-1, Secondary-0, RAID Level Qualifier-0" #代表Raid 1

RAID Level : Primary-0, Secondary-0, RAID Level Qualifier-0" #代表Raid 0

RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3" #代表Raid 5

RAID Level : Primary-1, Secondary-3, RAID Level Qualifier-0" #代表Raid10

  

Guess you like

Origin www.cnblogs.com/dahaoran/p/11993158.html