最近需要寫一個材料,需要各種信息,百度了很多,稍微整理下。
1 查看CPU
1.1 查看CPU個數
# cat /proc/cpuinfo | grep "physical id" | uniq | wc -l
1.2 查看CPU核數
# cat /proc/cpuinfo | grep "cpu cores" | uniq
1.3 查看CPU型號
# cat /proc/cpuinfo | grep 'model name' |uniq
2.查看內存總數
#cat /proc/meminfo | grep MemTotal
3.查看硬盤大小 # fdisk -l | grep Disk
4.查看操作系統版本 cat /etc/redhat-release
5.查看服務器型號:dmidecode | grep 'Product Name'
6.查看主板的序列號:dmidecode |grep 'Serial Number'
7.查看系統序列號:dmidecode -s system-serial-number
8.查看內存型號信息:dmidecode -t memory | egrep 'Manufacturer|Serial Number'
9.查看OEM信息:dmidecode -t 11
10.查看現有內存數量和內存大小:dmidecode | grep -A16 "Memory Device" | grep "Size" |sed 's/^[ \t]*//' //
11.查看最大支持內存容量:dmidecode | grep "Maximum Capacity" |sed "s/^[ \t]*//"