mcsiberiawolf

查看服务器的SN

root@ubuntu:~# dmidecode -s system-serial-number
2HN393X

查看 BIOS 版本信息

root@ubuntu:~# dmidecode -s bios-version
6.1.0

查看设备制造商

root@ubuntu:~# dmidecode -s system-manufacturer
Dell Inc.

查看设备型号

root@ubuntu:~# dmidecode -s system-product-name
PowerEdge R710

查看系统远程IP

root@ubuntu:~# ipmitool lan print
Set in Progress         : Set Complete
Auth Type Support       : 
Auth Type Enable        : Callback : 
                        : User     : 
                        : Operator : 
                        : Admin    : 
                        : OEM      : 
IP Address Source       : Static Address
IP Address              : 172.16.0.120
Subnet Mask             : 255.255.255.0
MAC Address             : 1c:98:ec:23:51:6c
SNMP Community String   : 
BMC ARP Control         : ARP Responses Enabled, Gratuitous ARP Disabled
Default Gateway IP      : 172.16.0.1
802.1q VLAN ID          : Disabled
802.1q VLAN Priority    : 0
RMCP+ Cipher Suites     : 0,1,2,3
Cipher Suite Priv Max   : XuuaXXXXXXXXXXX
                        :     X=Cipher Suite Unused
                        :     c=CALLBACK
                        :     u=USER
                        :     o=OPERATOR
                        :     a=ADMIN
                        :     O=OEM
Bad Password Threshold  : Not Available

查看物理CPU型号

[root@ubuntu~]# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
     16  Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz

查看物理CPU个数

[root@ubuntu ~]# cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l
2

查看每个物理CPU中core的个数(即核数)

[root@ubuntu ~]# cat /proc/cpuinfo| grep "cpu cores"| uniq
cpu cores       : 4

查看逻辑CPU个数

[root@ubuntu ~]# grep \'model name\' /proc/cpuinfo | wc -l
16

查看内存大小

[root@ubuntu ~]# free -h
              total        used        free      shared  buff/cache   available
Mem:            15G        261M         12G         16M        2.6G         14G
Swap:          7.9G          0B        7.9G

查看系统磁盘阵列

[root@ubuntu ~]# megasasctl 
a0       PERC H700 Integrated     encl:1 ldrv:1  batt:good
a0d0      1115GiB RAID 50  2x3  optimal
a0e32s0     279GiB  a0d0  online  
a0e32s1     279GiB  a0d0  online  
a0e32s2     279GiB  a0d0  online  
a0e32s3     279GiB  a0d0  online  
a0e32s4     279GiB  a0d0  online  
a0e32s5     279GiB  a0d0  online  

分类:

技术点:

相关文章: