HP RAID ssacli
HPE Smart Storage Administrator CLI
Ref: PhoenixWiki
Ref: mrpeardotnet gist
ssacli
# Older version
hpssacli
Help
help [ show | create | modify ]
Abbreviation
Abbreviation | Full |
---|---|
ch | chassisname |
ctrl | controller |
pd | physicaldrive |
ld | logicaldrive |
dwc | drivewritecache |
lk | licensekey |
Ref:
help shorthand
Controller
Controller info
# ctrl { all | slot=<slot ID> } show [ config | detail | status ]
ctrl slot=1 show
ctrl all show
ctrl all show status
ctrl all show detail
Rescan drive
rescan
Physical drive info
# ctrl slot=<slot ID> pd { all | allunassigned | <port>:<box>:<bay> } show [ status | detail ]
ctrl slot=1 pd all show
ctrl slot=1 pd all show detail
Logical drive
Logical drive info
# ctrl slot=<slot ID> ld { all | <ID> } show [ status | detail ]
ctrl slot=1 ld all show
ctrl slot=1 ld all show detail
Create logical drive
ctrl slot=<slot ID> create type=ld drives={all|allunassigned|<port>:<box>:<bay>,<port>:<box>:<bay>,...} [raid={0|1|1+0|5|50|6|60}] [size={<MB>|min|max|maxmbr}]
Delete logical drive
ctrl slot=<slot ID> ld <ID> delete
LED blink
# ctrl slot=<slot ID> ld { all | <ID> } modify led={on|off}
ctrl slot=1 ld all modify led=on
ctrl slot=1 ld all modify led=off
Drive Write Cache
Show Drive Write Cache
# ctrl slot=<slot ID> modify dwc={?|enable|disable}
ctrl slot=1 modify dwc=?
No Battery Write Cache
# ctrl slot=<slot ID> modify nbwc={?|enable|disable}
# Show status
ctrl slot=1 modify nbwc=?
# Enable
ctrl slot=1 modify nbwc=enable
# Disable
ctrl slot=1 modify nbwc=disable
Install on VMware
Download
# remove old version
esxcli software vib remove -n hpssacli
# install
esxcli software vib install -v "/<full-path.vib>"
/opt/smartstorageadmin/ssacli/bin/ssacli ctrl all show