The Storage Command Line Tool (StorCLI) is the command line management software designed for the MegaRAID® product line.

Here are list of Storcli commands for system view, give you overall system level information

Storcli System Commands

Storcli show

This command shows a summary of controller and controller-associated information for the system. The summary
includes the number of controllers, the host name, the operating system information, and the overview of
existing configuration.

example:

# storcli64 show
Status Code = 0
Status = Success
Description = None

Number of Controllers = 1
Host Name = fibrevillage.com
Operating System  = Linux3.10.0-514.21.2.el7.x86_64

System Overview :
===============

---------------------------------------------------------------------------------
Ctl Model                Ports PDs DGs DNOpt VDs VNOpt BBU sPR DS  EHS ASOs Hlth
---------------------------------------------------------------------------------
  0 AVAGOMegaRAID9361-8i     8  45   4     0   4     0 Opt On  1&2 Y      3 Opt  
---------------------------------------------------------------------------------

Ctl=Controller Index|DGs=Drive groups|VDs=Virtual drives|Fld=Failed
PDs=Physical drives|DNOpt=DG NotOptimal|VNOpt=VD NotOptimal|Opt=Optimal
Msng=Missing|Dgd=Degraded|NdAtn=Need Attention|Unkwn=Unknown
sPR=Scheduled Patrol Read|DS=DimmerSwitch|EHS=Emergency Hot Spare
Y=Yes|N=No|ASOs=Advanced Software Options|BBU=Battery backup unit
Hlth=Health|Safe=Safe-mode boot

Storcli show all

This command shows the list of controllers and controller-associated information, information about the drives that
need attention, and advanced software options.

Example:

# storcli64 show all
Status Code = 0
Status = Success
Description = None

Number of Controllers = 1
Host Name = fibrevillage.com
Operating System  = Linux3.10.0-514.21.2.el7.x86_64

System Overview :
===============

---------------------------------------------------------------------------------
Ctl Model                Ports PDs DGs DNOpt VDs VNOpt BBU sPR DS  EHS ASOs Hlth
---------------------------------------------------------------------------------
  0 AVAGOMegaRAID9361-8i     8  45   4     0   4     0 Opt On  1&2 Y      3 Opt  
---------------------------------------------------------------------------------

Ctl=Controller Index|DGs=Drive groups|VDs=Virtual drives|Fld=Failed
PDs=Physical drives|DNOpt=DG NotOptimal|VNOpt=VD NotOptimal|Opt=Optimal
Msng=Missing|Dgd=Degraded|NdAtn=Need Attention|Unkwn=Unknown
sPR=Scheduled Patrol Read|DS=DimmerSwitch|EHS=Emergency Hot Spare
Y=Yes|N=No|ASOs=Advanced Software Options|BBU=Battery backup unit
Hlth=Health|Safe=Safe-mode boot


ASO :
===

----------------------------------------------------
Ctl Cl SAS MD R6 WC R5 SS FP Re CR RF CO CW HA SSHA
----------------------------------------------------
  0 X  U   X  U  U  U  X  U  X  X  X  X  X  X  X    
----------------------------------------------------

Cl=Cluster|MD=Max Disks|WC=Wide Cache|SS=Safe Store|FP=Fast Path|Re=Recovery
CR=CacheCade(Read)|RF=Reduced Feature Set|CO=Cache Offload
CW=CacheCade(Read/Write)|X=Not Available/Not Installed|U=Unlimited|T=Trial
|HA=High Availability |SSHA=Single server High Availability

Storcli show ctrlcount

This command shows the number of controllers detected in the server.

Example:

# storcli64 show ctrlcount
Status Code = 0
Status = Success
Description = None

Controller Count = 1

Storcli help

This command shows help for all commands at the server level.

Example:

# storcli64 help | more
     Storage Command Line Tool  Ver 1.18.11 Feb 09, 2016

     (c)Copyright 2015, AVAGO Corporation, All Rights Reserved.

storcli -v
storcli -h| -help| ?
storcli -h| -help| ? legacy
storcli show
storcli show all
storcli show ctrlcount
storcli show file=<filepath>
storcli /cx add vd r[0|1|5|6|00|10|50|60]
    [Size=<VD1_Sz>,<VD2_Sz>,..|all] [name=<VDNAME1>,..]
    drives=e:s|e:s-x|e:s-x,y,e:s-x,y,z [PDperArray=x][SED]
    [pdcache=on|off|default][pi][DimmerSwitch(ds)=default|automatic(auto)|
    none|maximum(max)|MaximumWithoutCaching(maxnocache)][WT|WB|AWB][nora|ra]
    [direct|cached] [cachevd] [Strip=<8|16|32|64|128|256|512|1024>]
     [AfterVd=X] [EmulationType=0|1|2] [Spares = [e:]s|[e:]s-x|[e:]s-x,y]
    [force][ExclusiveAccess] [Cbsize=0|1|2 Cbmode=0|1|2|3|4|7]
storcli /cx add vd each r0 [name=<VDNAME1>,..] [drives=e:s|e:s-x|e:s-x,y]
    [SED] [pdcache=on|off|default][pi] [DimmerSwitch(ds)=default|
    automatic(auto)|none|maximum(max)|MaximumWithoutCaching(maxnocache)]
    [WT|WB|AWB] [nora|ra] [direct|cached] [EmulationType=0|1|2]
    [Strip=<8|16|32|64|128|256|512|1024>] [ExclusiveAccess]
    [Cbsize=0|1|2 Cbmode=0|1|2|3|4|7]
...

Storcli -v

This command shows the version of the Storage Command Line Tool.

# storcli64 -v

      StorCli SAS Customization Utility Ver 1.18.11 Feb 09, 2016

    (c)Copyright 2015, AVAGO Corporation, All Rights Reserved.

 

See more storcli command examples for controller