标签:硬件
【资料收集】查看硬件配置方法
linux
主板: dmidecode -s system-product-name CPU: dmidecode -s processor-version 内存: dmidecode -t memory |grep Size 硬盘: smartctl -i /dev/sda 查看物理cpu个数 grep ‘physical id‘ /proc/cpuinfo | sort -u 查看核心数量 grep ‘core id‘ /proc/cpuinfo | sort -u | wc -l 查看线程数 grep ‘processor‘ /proc/cpuinfo | sort -u | wc -l
windows
主板: wmic baseboard CPU: wmic cpu 内存: wmic memorychip 硬盘: wmic diskdrive
查看raid卡型号:
[root@test1 abc]# dmesg |grep -i raid megaraid_sas 0000:03:00.0: PCI INT A -> GSI 38 (level, low) -> IRQ 38 megaraid_sas 0000:03:00.0: setting latency timer to 64 megaraid_sas: Controller type: MR, Memory size is: 256MB scsi0 : LSI SAS based MegaRAID driver [root@test1 abc]# cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 02 Id: 00 Lun: 00 Vendor: DELL Model: PERC 6/i Adapter Rev: 1.22 Type: Direct-Access ANSI SCSI revision: 05
LSI MegaRAID工具:
http://www.lsi.com/support/Pages/download-results.aspx?keyword=megacli
下载解压后,上传MegaCli-8.07.14-1.noarch.rpm到服务器安装。
查raid级别 #/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -LAll -aALL 查看硬盘信息 #/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL 查看电池信息 #/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -aAll
标签:硬件
原文地址:http://nosmoking.blog.51cto.com/3263888/1595973