服务器硬件信息收集

2021年11月23日 阅读数:5
这篇文章主要向大家介绍服务器硬件信息收集,主要内容包括基础应用、实用技巧、原理机制等方面,希望对大家有所帮助。

#dmidecode | grep Product服务器

        Product Name: ProLiant DL380p Gen8ide

     //显示服务器型号ui

[root@RTM ~]# cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -lspa

2code

//查看物理cpu数xml

[root@RTM ~]# cat /proc/cpuinfo| grep "cpu cores"| uniq内存

cpu cores       : 6it

//cpu的核心数
io


[root@RTM ~]# free -mclass

             total       used       free     shared    buffers     cached

Mem:         64386      47108      17277       2908        373      31905

-/+ buffers/cache:      14829      49556

Swap:        66575          0      66575


//物理内存

[root@RTM ~]# dmidecode | grep -P -A 5 "Memory\s+Device" | grep Size | grep -v Range

        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: 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: 16384 MB

        Size: No Module Installed

        Size: No Module Installed

        Size: 16384 MB


[root@RTM ~]# cat /proc/scsi/scsi

Attached devices:

Host: scsi0 Channel: 03 Id: 00 Lun: 00

  Vendor: HP       Model: P420i            Rev: 5.22

  Type:   RAID                             ANSI  SCSI revision: 05

Host: scsi0 Channel: 00 Id: 00 Lun: 00

  Vendor: HP       Model: LOGICAL VOLUME   Rev: 5.22

  Type:   Direct-Access                    ANSI  SCSI revision: 05

Host: scsi0 Channel: 00 Id: 00 Lun: 01

  Vendor: HP       Model: LOGICAL VOLUME   Rev: 5.22

  Type:   Direct-Access                    ANSI  SCSI revision: 05

Host: scsi2 Channel: 00 Id: 00 Lun: 00

  Vendor: hp       Model: DVDROM DT80N     Rev: DA00

  Type:   CD-ROM                           ANSI  SCSI revision: 05

[root@RTM ~]# fdisk -l