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