Power modes
Viewing controller status
Performing a Diagnostics task
Diagnostic tasks
Operations
Opening the CLI in Console mode
Using the HP SSA CLI
\Program Files\hp\hpssacli\Bin\hpssacli.exe
Root@localhost root# hpssacli
Command variable
Opening the CLI in Command mode
CLI syntax
Target variable
Querying a device
Available options are Current value Default
Hiding warning prompts
= ctrl ch=Lab4 ld 1 modify raid=0 ss=?
Target controller show config detail
Show command
Keyword abbreviations
Target show detailstatus
= ctrl all show
= ctrl ch=lab4 show config
Help command
Displaying the current versions of the application layers
Version
Setting the boot volume
Typical procedures
Setting the boot controller
Identifying devices
Setting the target
Set target target
= set target ctrl slot=3 = clear target
Deleting target devices
Generating a diagnostic report
Target modify led=onoff
Target delete forced
Rescanning the system
Erasing a physical drive
Entering or deleting a license key
Optimizing controller performance for video
Target create type=ld parameter=value
Creating a logical drive
Sample scenario
Available options are +0 default value
Target modify drives=# ##,# ##,# ##-# ##
Moving a logical drive
Target modify newarray=
Viewing SSD physical drives
Viewing enclosure information
Viewing SSD information
SmartCache in Hpssacli
SSD Over Provisioning Optimization
Rapid Parity Initialization methods
Assigning a chassis name to the controller
= ctrl slot=1 array B create type=ldcache datald=2
Managing spare drives
Setting the spare activation mode
Target modify spareactivationmode= failure predictive
Controller slot=1 modify spareactivationmode=predictive
Shrinking an array
Spare Management Mode in Hpssacli
Expanding an array
Target modify drives=###-### spares=###-###
Moving an array
Target remove drives=###-###
Target modify size=#max? forced
Extending a logical drive
= ctrl slot=1 create type=arrayr0 drives=allunassigned
Target modify raid=01+0156adg? ss=8163264128256default?
Setting the preferred path mode
Migrating a logical drive
Target modify preferredpathmode=automaticmanual?
Assigning a redundant controller to a logical drive
Changing the Rebuild Priority setting
Disabling a redundant controller
Setting the surface scan mode
Changing the Expand Priority setting
Changing the surface scan delay time
Re-enabling a failed logical drive
Enabling or disabling the array accelerator
Changing the controller cache ratio
Enabling or disabling the drive cache
Using the Split Mirror command
Enabling a script to exit on error
Set exitonerror=enable set eoe=disable Show exitonerror
Enabling SmartCache Write-back
Target modify latency=lowhighdisable?
HBA mode
Controller slot=5 modify latency=low
Target modify hbamode=onoff?
RAID mode
Using HP SSA scripting
Power mode
Using an Input script
Capturing a configuration
Creating an HP SSA script file
Hpssascripting -c Filename -internal -external -e Filename
Sample custom input script
Script file requirements
Date captured Wed Jan 15 153314 Version
Sample custom capture script
Sample encryption script
Initial encryption configuration
PlainText= Enable
Encryption configuration
Script file options
Method mode
Action mode
Control category
Controller category
CacheState
ClearConfigurationWithDataLoss
Controller
ElevatorSortEnable
DPOEnable
IRPEnable
DriveWriteCache
NoBatteryWriteCache
MNPDelay
Power modes
LicenseKey, DeleteLicenseKey
SurfaceScanDelayExtended
SurfaceScanDelay
QueueDepth
RapidParityInitialization
Array category
DPOEnable = No ElevatorSortEnable = Yes IRPEnable = No
Array
ArrayR0
Drive
CachingArray
DriveType
OnlineSpareMode
SplitMirror
Logical Drive category
OnlineSpare
CachingLogicalDrive
ArrayAccelerator
LogicalDrive
PreferredPath
CachedLogicalDrive
NumberOfParityGroups
SetBootVolumeSecondary
SetBootVolumePrimary
Renumber
Repeat
SizeBlocks
Size
SmartCache Write-back
StripSize
Encryption controller category
Encryption support commands
Remove Suspend Resume
ControllerPasswordMode