HPE-ssacli
HP Enterprise ssacli command examples
Install ssacli - https://downloads.linux.hpe.com/SDR/project/mcp/
Show configuration
Section titled “Show configuration”ssacli ctrl all show configController status
Section titled “Controller status”ssacli ctrl all show statusShow detailed controller information for all controllers
Section titled “Show detailed controller information for all controllers”ssacli ctrl all show detailShow detailed controller information for controller in slot 0
Section titled “Show detailed controller information for controller in slot 0”ssacli ctrl slot=0 show detailRescan for New Devices
Section titled “Rescan for New Devices”ssacli rescanPhysical disk status
Section titled “Physical disk status”ssacli ctrl slot=0 pd all show statusShow detailed physical disk information
Section titled “Show detailed physical disk information”ssacli ctrl slot=0 pd all show detailLogical disk status
Section titled “Logical disk status”ssacli ctrl slot=0 ld all show statusView Detailed Logical Drive Status
Section titled “View Detailed Logical Drive Status”ssacli ctrl slot=0 ld 2 showCreate New RAID 0 Logical Drive
Section titled “Create New RAID 0 Logical Drive”ssacli ctrl slot=0 create type=ld drives=1I:1:2 raid=0Create New RAID 1 Logical Drive
Section titled “Create New RAID 1 Logical Drive”ssacli ctrl slot=0 create type=ld drives=1I:1:1,1I:1:2 raid=1Create New RAID 5 Logical Drive
Section titled “Create New RAID 5 Logical Drive”ssacli ctrl slot=0 create type=ld drives=1I:1:1,1I:1:2,2I:1:6,2I:1:7,2I:1:8 raid=5Delete Logical Drive
Section titled “Delete Logical Drive”ssacli ctrl slot=0 ld 2 deleteAdd New Physical Drive to Logical Volume
Section titled “Add New Physical Drive to Logical Volume”ssacli ctrl slot=0 ld 2 add drives=2I:1:6,2I:1:7Add Spare Disks
Section titled “Add Spare Disks”ssacli ctrl slot=0 array all add spares=2I:1:6,2I:1:7Enable Drive Write Cache
Section titled “Enable Drive Write Cache”ssacli ctrl slot=0 modify dwc=enableDisable Drive Write Cache
Section titled “Disable Drive Write Cache”ssacli ctrl slot=0 modify dwc=disableErase Physical Drive
Section titled “Erase Physical Drive”ssacli ctrl slot=0 pd 2I:1:6 modify eraseTurn on Blink Physical Disk LED
Section titled “Turn on Blink Physical Disk LED”ssacli ctrl slot=0 ld 2 modify led=onTurn off Blink Physical Disk LED
Section titled “Turn off Blink Physical Disk LED”ssacli ctrl slot=0 ld 2 modify led=offModify 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/0Enable 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=enableDisable 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=disableEnable 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=enableEnable SSD Smart Path
Section titled “Enable SSD Smart Path”ssacli ctrl slot=0 array a modify ssdsmartpath=enableDisable SSD Smart Path
Section titled “Disable SSD Smart Path”ssacli ctrl slot=0 array a modify ssdsmartpath=disable***Reference: ***