HP服务器硬件检测

机器环境
系统版本:CentOS 5.5
硬件型号:HP ProLiant DL380 G6

hpacucli HP Raid信息查看
1.下载安装

wget ftp://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p414707558/v63381/hpacucli-8.70-8.0.noarch.rpm
rpm -ivh hpacucli-8.70-8.0.noarch.rpm

2.使用帮助
进入阵列配置界面hpacucli 

查看阵列卡与硬盘状态信息

root@Server01:~# hpacucli   
HP Array Configuration Utility CLI 8.35-7.0  
Detecting Controllers...Done.  
Type "help" for a list of supported commands.  
Type "exit" to close the console.  
  
=> 
=> ctrl all show status   #查看阵列卡槽位 
 
Smart Array P410i in Slot 0 (Embedded) 
   Controller Status: OK 
   Cache Status: OK 
   Battery/Capacitor Status: OK 
 
=> ctrl slot=0 show config detail   #查看阵列卡信息 
 
Smart Array P410i in Slot 0 (Embedded)   #阵列卡信息 
   Bus Interface: PCI 
   Slot: 0 
   Serial Number: 50123456789ABCDE 
   Cache Serial Number: PAAVP9SYH77X 
   RAID 6 (ADG) Status: Disabled 
   Controller Status: OK 
   略………… 
 
 
   Array: A   #阵列A信息 
      Interface Type: SAS 
      Unused Space: 0 MB 
      Status: OK 
   略………… 
   Array: B   #阵列B信息 
      Interface Type: SAS 
      Unused Space: 0 MB 
      Status: OK 
   略………… 
     unassigned    #未配置硬盘 
   略………… 
    
=> controller slot=0 logicaldrive all show   #查看当前RAID 
 
Smart Array P410i in Slot 0 (Embedded) 
 
   array A 
 
      logicaldrive 1 (136.7 GB, RAID 1, OK) 
 
   array B 
 
      logicaldrive 2 (410.1 GB, RAID 1+0, OK) 
       
 
=> ctrl slot=0 pd all show status   #查看硬盘健康状态 
 
   physicaldrive 1I:1:1 (port 1I:box 1:bay 1, 146 GB): OK 
   physicaldrive 1I:1:2 (port 1I:box 1:bay 2, 146 GB): OK 
   physicaldrive 1I:1:3 (port 1I:box 1:bay 3, 146 GB): OK 
   physicaldrive 1I:1:4 (port 1I:box 1:bay 4, 146 GB): OK 
   physicaldrive 2I:1:5 (port 2I:box 1:bay 5, 146 GB): OK 
   physicaldrive 2I:1:6 (port 2I:box 1:bay 6, 146 GB): OK 
   physicaldrive 2I:1:7 (port 2I:box 1:bay 7, 146 GB): Predictive Failure   #这块盘故障 
   physicaldrive 2I:1:8 (port 2I:box 1:bay 8, 146 GB): OK 


3.收集故障硬盘报告<hp售后要这个报告>

=> ctrl all diag file=/home/HP_DL380_G6.zip 
 
   Generating diagnostic report...done 
 
done 
 
=> exit 
root@Server01:~# unzip /home/HP_DL380_G6.zip  
Archive:  /home/HP_DL380_G6.zip 
  inflating: ADUReport.txt            
  inflating: ADUReport.xml            
  inflating: ADUReportTransform.xsl   
  inflating: ADUReportViewer.htm

 

hpasmcli HP 硬件状态查看

下载:wget http://downloads.linux.hp.com/SDR/downloads/bootstrap.sh

# sh bootstrap.sh ProLiantSupportPack -r 5Server -y hp-psp-repository.repo 
# yum -y install hp-health  

查看指令

hpasmcli 
hpasmcli -s ”show temp”             #查看温度 
hpasmcli -s ”show fans”             #查看风扇 
hpasmcli -s ”show powersupply”      #查看电源模块 
hpasmcli -s ”show server”           #查看机器型号,序列号,CPU,内存大小

本文出自 “DEREKW” 博客,请务必保留此出处http://derekw.blog.51cto.com/3434580/675068

posted @ 2012-08-03 18:56  subsir  阅读(1880)  评论(0编辑  收藏  举报