Skip to content

HPE-ssacli

HP Enterprise ssacli command examples

Install ssacli - https://downloads.linux.hpe.com/SDR/project/mcp/

ssacli ctrl all show config
ssacli ctrl all show status

Show detailed controller information for all controllers

Section titled “Show detailed controller information for all controllers”
ssacli ctrl all show detail

Show detailed controller information for controller in slot 0

Section titled “Show detailed controller information for controller in slot 0”
ssacli ctrl slot=0 show detail
ssacli rescan
ssacli ctrl slot=0 pd all show status
ssacli ctrl slot=0 pd all show detail
ssacli ctrl slot=0 ld all show status
ssacli ctrl slot=0 ld 2 show
ssacli ctrl slot=0 create type=ld drives=1I:1:2 raid=0
ssacli ctrl slot=0 create type=ld drives=1I:1:1,1I:1:2 raid=1
ssacli ctrl slot=0 create type=ld drives=1I:1:1,1I:1:2,2I:1:6,2I:1:7,2I:1:8 raid=5
ssacli ctrl slot=0 ld 2 delete
ssacli ctrl slot=0 ld 2 add drives=2I:1:6,2I:1:7
ssacli ctrl slot=0 array all add spares=2I:1:6,2I:1:7
ssacli ctrl slot=0 modify dwc=enable
ssacli ctrl slot=0 modify dwc=disable
ssacli ctrl slot=0 pd 2I:1:6 modify erase
ssacli ctrl slot=0 ld 2 modify led=on
ssacli ctrl slot=0 ld 2 modify led=off

Modify smart array cache read and write ratio (cacheratio=readratio/writeratio)

Section titled “Modify smart array cache read and write ratio (cacheratio=readratio/writeratio)”
ssacli ctrl slot=0 modify cacheratio=100/0

Enable smart array write cache when no battery is present (No-Battery Write Cache option)

Section titled “Enable smart array write cache when no battery is present (No-Battery Write Cache option)”
ssacli ctrl slot=0 modify nbwc=enable

Disable smart array cache for certain Logical Volume

Section titled “Disable smart array cache for certain Logical Volume”
ssacli ctrl slot=0 logicaldrive 1 modify arrayaccelerator=disable

Enable smart array cache for certain Logical Volume

Section titled “Enable smart array cache for certain Logical Volume”
ssacli ctrl slot=0 logicaldrive 1 modify arrayaccelerator=enable
ssacli ctrl slot=0 array a modify ssdsmartpath=enable
ssacli ctrl slot=0 array a modify ssdsmartpath=disable

***Reference: ***