linux
1
2
3
4
5
6
7
|
主板: 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
1
2
3
4
|
主板: wmic baseboard
CPU: wmic cpu
内存: wmic memorychip
硬盘: wmic diskdrive
|
查看raid卡型号:
1
2
3
4
5
6
7
8
9
10
11
|
[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到服务器安装。
1
2
3
4
5
6
|
查raid级别
#/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -LAll -aALL
查看硬盘信息
#/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL
查看电池信息
#/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -aAll
|
本文转自 pcnk 51CTO博客,原文链接:http://blog.51cto.com/nosmoking/1595973,如需转载请自行联系原作者