In this article, Let's see how to use Storcli Enclosure Commands.

Storcli /cx/ex show [all]

This command shows all enclosure information, which includes general enclosure information, enclosure inquiry data, a count of enclosure elements, and information about the enclosure elements.

Example:

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


Properties :
==========

--------------------------------------------------------------------------------------------
EID State Slots PD PS Fans TSs Alms SIM Port# ProdID VendorSpecific
--------------------------------------------------------------------------------------------
54 OK 45 45 0 0 0 0 0 Port 0 - 3 & Port 4 - 7 x8 DCSFS3500
--------------------------------------------------------------------------------------------

EID-Enclosure Device ID |PD-Physical drive count |PS-Power Supply count|
TSs-Temperature sensor count |Alms-Alarm count |SIM-SIM Count

Example 2, with 'all' option :

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


Properties :
==========

--------------------------------------------------------------------------------------------
EID State Slots PD PS Fans TSs Alms SIM Port# ProdID VendorSpecific
--------------------------------------------------------------------------------------------
54 OK 45 45 0 0 0 0 0 Port 0 - 3 & Port 4 - 7 x8 DCSFS3500
--------------------------------------------------------------------------------------------

EID-Enclosure Device ID |PD-Physical drive count |PS-Power Supply count|
TSs-Temperature sensor count |Alms-Alarm count |SIM-SIM Count

Storcli /cx/ex show status

This command shows the enclosure status and the status of all the enclosure elements.

Example:

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

Enclosure /c0/e54 :
==================

Slot Info :
=========

------------
Slot Status
------------
0 OK
....
41 OK
42 OK
43 OK
44 OK
------------


Chassis Info :
============

---------------
Chassis Status
---------------
0 OK
--------------

Storcli /cx/ex download srm=filepath

NOTE The firmware file that is used to flash the enclosure can be of any format. The StorCLI utility assumes that you provide a valid firmware image.

This command flashes the firmware with the file specified at the command line. The enclosure performs an error check after the operation. The following option can be used with the enclosure firmware download command.
Example:

storcli64 /c0/e54 download src=/home/fw/enclosure_fw.bin

Enclosure Firmware Download Command Options

forceactivate — Issues a command descriptor block (CDB) 
with write command
with no data
with command mode 0x0F (flash download already in progress).

NOTE This option is used primarily to activate Scotch Valley Enclosures.