Server Model
[[Email protected] ~] "manufacturer| Product "
Operating System
- [[Email protected] ~] # cat/etc/redhat-release
- . CentOS Release 6.5 (Final)
View operating system release details
[[Email protected] ~] # lsb_release -A
CPU
Viewing CPU statistics
[[Email protected] ~] # LSCPU
View CPU Models
[[Email protected] ~] # Cat/proc/cpuinfo | grep name | cut-f2-d: | uniq-c
To view the number of physical CPUs
[Email protected] ~]# cat/proc/cpuinfo| grep "Physical ID" | Sort| uniq| Wc-l
2
View the number of cores in each physical CPU (that is, the number of nuclei)
[Email protected]s ~]# cat/proc/cpuinfo| grep "CPU Cores" | Uniq
CPU Cores:6
View the number of logical CPUs
[Email protected] ~]# cat/proc/cpuinfo| grep "Processor" | Wc-l
12
Memory
To view a summary of memory usage
[Email protected] ~]# free-m
Total used free shared buffers Cached
mem:31996 12142 19854 0 193 512
-/+ buffers/cache:11435 20561
swap:0 0 0
View Memory Hardware Information
[[email protected] ~]# dmidecode-t memory
# Dmidecode 2.11
SMBIOS 2.8 present.
# SMBIOS implementations newer than version 2.7 is not
# fully supported by this version of Dmidecode.
Handle 0x1000, DMI type, bytes
Physical Memory Array
location:system Board Or motherboard
Use:system Memory
Error Correction type:multi-bit ECC
Maximum capacity:1536 GB
Error information Handle:not provided
Number of devices:24
Handle 0x1100, DMI type, bytes
Memory Device
Array handle:0x1000
Error information Handle:not provided
Total width:72 bits
Data width:64 bits
size:16384 MB
Form Factor:dimm
set:1
LOCATOR:A1
Bank locator:not Specified
Type: <out of Spec>
Type detail:synchronous Registered (Buffered)
speed:2133 MHz
MANUFACTURER:00CE00B300CE
Serial Number:157e9ad8
Asset tag:00161330
Part NUMBER:M393A2G40DB0-CPB
Rank:2
configured Clock speed:1600 MHz
Handle 0x1101, DMI type, bytes
Memory Device
Array handle:0x1000
Error information Handle:not provided
Total Width:unknown
Data Width:unknown
size:no Module installed
Form Factor:unknown
set:1
LOCATOR:A2
Bank locator:not Specified
Type:unknown
Type Detail:none
Speed:unknown
Manufacturer:not Specified
Serial number:not Specified
Asset tag:not Specified
Part Number:not Specified
Rank:unknown
configured Clock Speed:unknown
............
View Memory Detail usage
[email protected] ~]# Cat/proc/meminfo
memtotal:32764900 KB
memfree:20329452 KB
buffers:198584 KB
cached:524936 KB
swapcached:0 KB
active:2448636 KB
inactive:244748 KB
Active (anon): 1970020 KB
Inactive (anon): 4 KB
Active (file): 478616 KB
Inactive (file): 244744 KB
unevictable:0 KB
mlocked:0 KB
swaptotal:0 KB
swapfree:0 KB
dirty:80 KB
writeback:0 KB
anonpages:1969864 KB
mapped:41344 KB
shmem:160 KB
slab:9497576 KB
sreclaimable:9435936 KB
sunreclaim:61640 KB
kernelstack:7376 KB
pagetables:12232 KB
nfs_unstable:0 KB
bounce:0 KB
writebacktmp:0 KB
commitlimit:16382448 KB
committed_as:3205448 KB
vmalloctotal:34359738367 KB
vmallocused:347172 KB
vmallocchunk:34341191224 KB
hardwarecorrupted:0 KB
anonhugepages:1783808 KB
hugepages_total:0
hugepages_free:0
hugepages_rsvd:0
hugepages_surp:0
hugepagesize:2048 KB
directmap4k:7168 KB
directmap2m:2015232 KB
directmap1g:31457280 KB
view the number of slots in memory and how many slots are in use. How big is each piece of memory ?
[email protected] ~]# dmidecode|grep-a5 "Memory Device" |grep size|grep-v Range
size:16384 MB
size:no Module installed
size:no Module installed
size:no Module installed
size:no Module installed
size:no Module installed
size:no Module installed
size:no Module installed
size:no Module installed
size:no Module installed
size:no Module installed
size:no Module installed
size:16384 MB
size:no Module installed
size:no Module installed
size:no Module installed
size:no Module installed
size:no Module installed
size:no Module installed
size:no Module installed
size:no Module installed
size:no Module installed
size:no Module installed
size:no Module installed
HDD
view hard disk and partition distribution
[email protected] ~]# lsblk
NAME maj:min RM SIZE RO TYPE mountpoint
SDA 8:0 0 557.8G 0 disk
├─sda1 8:1 0 200M 0 part/boot
├─sda2 8:2 0 32G 0 Part/swap
└─sda3 8:3 0 525.6G 0 part/
sr0 11:0 1 1024M 0 rom
[email protected] ~]# df-h
Filesystem Size used Avail use% mounted on
/dev/sda3 518G 5.8G 486G 2%/
tmpfs 16G 0 16G 0%/dev/shm
/dev/sda1 194M 34M 151M 19%/boot
/dev/sda2 32G 176M 30G 1%/swap
Linux View server Configuration