UserParameter=raid.pdstatus,hpacucli.exe ctrl slot=0 pd all show status| find /C "OK"
UserParameter=raid.LDStatus,hpacucli.exe ctrl slot=0 logicaldrive all show status
UserParameter=raid.ControllerModel,hpacucli.exe controller all show
UserParameter=raid.LDNumber,hpacucli.exe ctrl slot=0 logicaldrive all show status | find "logicaldrive" /C
UserParameter=raid.PD1Status,hpacucli.exe ctrl slot=0 physicaldrive 1i:1:1 show status | find /C "OK"
UserParameter=raid.PD2Status,hpacucli.exe ctrl slot=0 physicaldrive 1i:1:2 show status | find /C "OK"
UserParameter=raid.PD3Status,hpacucli.exe ctrl slot=0 physicaldrive 1i:1:3 show status | find /C "OK"
UserParameter各个含义:
UserParameter=raid.pdstatus,hpacucli.exe ctrl slot=0 pd all show status| find /C "OK" # 用来获取raid中(slot0 代表raid卡所在槽位1) 处于OK正常状态的物理磁盘数量
UserParameter=raid.LDStatus,hpacucli.exe ctrl slot=0logicaldrive all show status
# 用来获取raid中处于OK正常状态的逻辑磁盘数量
UserParameter=raid.ControllerModel,hpacucli.exe controller all show
#用来获取所有raid卡的相关信息
UserParameter=raid.LDNumber,hpacucli.exe ctrl slot=0 logicaldrive all show
#用来获取raid中所有逻辑磁盘的状态信息
UserParameter=raid.LDNumber,hpacucli.exe ctrl slot=0 logicaldrive all show status | find "logicaldrive"/C
#用来获取raid中所有逻辑磁盘的数量
UserParameter=raid.PD1Status,hpacucli.exe ctrl slot=0 physicaldrive 1i:1:1 show status | find /C "OK"
UserParameter=raid.PD2Status,hpacucli.exe ctrl slot=0 physicaldrive 1i:1:2 show status | find /C "OK"
UserParameter=raid.PD3Status,hpacucli.exe ctrl slot=0 physicaldrive 1i:1:3 show status | find /C "OK"
#用来获取raid中1、2、3号盘位硬盘的状态,为了绘图,使用find命令的/C参数进行技术,1
为正常,否则为不正常