The Storage Command Line Tool (StorCLI) is the command line management software designed for the MegaRAID® product line.
Controller commands provide information and perform actions related to the specified controller, such as the /c0 controller

Here are list of Storcli commands for controller, show and set controller properties and examples


Show and Set Controller Properties Commands

Before showing examples of show controller properties, let's see storcli controller command syntax

For show controller properties command

storcli /cx show <property>

This command shows the current value of the specified property on the specified controller.

General example output:
Status Code = 0
Status = Success
Description = None
Controller: 0
Property_name = Property_value

Here are some examples:

Controller alarm properties

storcli /cx show alarm
storcli /cx set alarm=<on|off|silence>

Where

silence: Silences the alarm.
Enables/disables alarm on critical errors.
# storcli64 /c0 show alarm
Controller = 0
Status = Success
Description = None

Controller Properties :
=====================
----------------
Ctrl_Prop Value
----------------
Alarm     ON    
----------------

Controller ccrate

Show controller consistency check rate in percentage. 1-100

storcli /cx show ccrate
storcli /cx set ccrate=<value>

Example:

# storcli64 /c0 show ccrate
Controller = 0
Status = Success
Description = None

Controller Properties :
=====================
----------------
Ctrl_Prop Value
----------------
CC Rate   30%   
----------------

About CC on error

Option abortcconerror, aborts consistency check when it detects an inconsistency.

storcli /cx show abortcconerror
storcli /cx set abortcconerror=<on|off>

Example:

# storcli64 /c0 show abortcconerror
Controller = 0
Status = Success
Description = None

Controller Properties :
=====================
---------------------
Ctrl_Prop      Value
---------------------
AbortCCOnError OFF   
---------------------

Controller cachebypass

storcli /cx show cachebypass
storcli /cx set cachebypass=<on|off>

Example:

# storcli64 /c0 show cachebypass
Controller = 0
Status = Success
Description = None

Controller Properties :
=====================
--------------------
Ctrl_Prop     Value
--------------------
Cache By Pass ON    
--------------------

Controller copyback

Show Copy back status

# storcli64 /c0 show copyback   
Controller = 0
Status = Success
Description = None

Controller Properties :
=====================
------------------------
Ctrl_Prop         Value
------------------------
Copy Back         ON    
SSDSMARTerEnabled ON    
SMARTerEnabled    OFF   
------------------------

Controller bgirte

Show/Sets background initialization rate in percentage.

storcli /cx show bgirate
storcli /cx set bigirate=<value>  # 1-100

Example:

# storcli64 /c0 show bgirate 
Controller = 0
Status = Success
Description = None

Controller Properties :
=====================
----------------
Ctrl_Prop Value
----------------
BGI Rate  30%   
----------------

Controller batterywarning

Enables/disables battery warnings.

storcli /cx show batterywarning
storcli /cx set batterywarning=<on|off>

Example:

# storcli64 /c0 show batterywarning
Controller = 0
Status = Success
Description = None

Controller Properties :
=====================
---------------------
Ctrl_Prop      Value
---------------------
BatteryWarning ON    
---------------------

Controller rebuildrate

storcli /cx show rebuildrate
storcli /cx set rebuildrate=<value> # 1-10

Example:

# storcli64 /c0 show rebuildrate
Controller = 0
Status = Success
Description = None

Controller Properties :
=====================
------------------
Ctrl_Prop   Value
------------------
Rebuildrate 80%   
------------------

Controller Patrol Read Rate

storcli /cx show prrate
storcli /cx set prrate=<value>

Example:

# storcli64 /c0 show prrate
Controller = 0
Status = Success
Description = None

Controller Properties :
=====================
-----------------------
Ctrl_Prop        Value
-----------------------
Patrol Read Rate 30%   
-----------------------

 

More

provides command information to show and set controller properties.

The generalized syntax for show controller properties command is as follows.


You can show the following properties using the storcli /cx show <property1>|<property2>
command.


storcli /cx show abortcconerror
storcli /cx show activityforlocate
storcli /cx show alarm
storcli /cx show backplane
storcli /cx show batterywarning
storcli /cx show bgirate
storcli /cx show bootwithpinnedcache
storcli /cx show cachebypass
storcli /cx show cacheflushint
storcli /cx show ccrate
storcli /cx show clusterenable
storcli /cx show coercion
storcli /cx show consistencycheck|cc
storcli /cx show copyback
storcli /cx show directpdmapping
storcli /cx show dimmerswitch|ds
storcli /cx show eccbucketleakrate
storcli /cx show eccbucketsize
storcli /cx show enableeghsp
storcli /cx show enableesmarter
storcli /cx show enableeug
storcli /cx show exposeencldevice
storcli /cx show jbod
storcli /cx show loadbalancemode
storcli /cx show maintainpdfailhistory
storcli /cx show migraterate
storcli /cx show ncq
storcli /cx show patrolread|pr
storcli /cx show perfmode
storcli /cx show pi
storcli /cx show preventpiimport
storcli /cx show prcorrectunconfiguredareas
storcli /cx show prrate
storcli /cx show rebuildrate
storcli /cx show rehostinfo
storcli /cx show restorehotspare
storcli /cx show safeid
storcli /cx show smartpollinterval
storcli /cx show spinupdelay
storcli /cx show spinupdrivecount
storcli /cx show time
storcli /cx show usefdeonlyencrypt
storcli /cx show memscrubpatterns
storcli /cx show badblocks
storcli /cx(x|all) show PI
storcli /cx(x|all) show preventpiimport

For set controller properties command

storcli /cx set <property>=<value>
General example output:
Status Code = 0
Status = Success
Description = None
Controller 0, new Property_name = Property_value
The following commands are examples of the properties that can be set using the storcli /cx set
<property>=<value> command:
storcli /cx set abortcconerror=<on|off>
storcli /cx set termlog[=on|off|offthisboot]
storcli /cx set activityforlocate=<on|off>
storcli /cx set alarm=<on|off|silence>
storcli /cx set backplane=<value>
storcli /cx set batterywarning=<on|off>
storcli /cx set bgirate=<value>
storcli /cx set bootwithpinnedcache=<on|off>
storcli /cx set cachebypass=<on|off>
storcli /cx set cacheflushinterval=<value>
storcli /cx set ccrate=<value>
storcli /cx set coercion=<value>
storcli /cx set consistencycheck|cc=[off|seq|conc][delay=value]
[starttime=yyyy/mm/dd hh] [excludevd=x-y,z]
storcli /cx set clusterenable=<value>
storcli /cx set copyback=<on|off> type=<smartssd|smarthdd|all>
storcli /cx set directpdmapping=<on|off>
storcli /cx set eccbucketleakrate=<value>
storcli /cx set eccbucketsize=<value>
storcli /cx set enableeghsp=<on|off>
storcli /cx set enableesmarter=<value>
storcli /cx set enableeug=<on|off>
storcli /cx set exposeencldevice=<on|off>
storcli /cx set dimmerswitch|ds=<on|off type=1|2|3|4>
storcli /cx set foreignautoimport=<on|off>
storcli /cx set jbod=<on|off>
storcli /cx set loadbalancemode=<value>
storcli /cx set maintainpdfailhistory=<on|off>
storcli /cx set migraterate=<value>
storcli /cx set ncq=<on|off>
storcli /cx set patrolread|pr {=on mode=<auto|manual>}|{off}
storcli /cx set perfmode=<value>
storcli /cx set pi=<on|off>
storcli /cx set preventpiimport=<on|off>
storcli /cx set prcorrectunconfiguredareas=<on|off>
storcli /cx set prrate=<value>
storcli /cx set rebuildrate=<value>
storcli /cx set restorehotspare=<on|off>
storcli /cx set smartpollinterval=<value>
storcli /cx set spinupdelay=<value>
storcli /cx set spinupdrivecount=<value>
storcli /cx set stoponerror=<on|off>
storcli /cx set usefdeonlyencrypt=<on|off>
storcli /cx set time=yyyymmdd hh:mm:ss|systemtime
storcli /cx set usefdeonlyencrypt=<on|off>