---
title: Knowledge Base
url: https://www.broadcom.com/support/knowledgebase/1211161499760/lsi-command-line-interface-cross-reference-megacli-vs-twcli-vs-s
description: LSI Command Line Interface cross reference MegaCLI vs tw_cli vs Storcli
---

# Knowledge Base

## Question
LSI Command Line Interface cross reference MegaCLI vs tw_cli vs Storcli

## Answer
This knowledgebase article cross references commands for the LSI 3ware tw_cli ([CLIGuide_10.2_codeset.pdf](https://docs.broadcom.com/docs/12353273)), LSI MegaRAID MegaCLI ([Software guide 51530-00_RevO.zip](https://docs.broadcom.com/docs/12353341) or [Latest Megacli download](https://docs.broadcom.com/docs/12351587)) and StorCLI (Click here for User's Guide or [StorCLI download](https://docs.broadcom.com/docs/1.21.06_StorCLI.txt)).

### MegaCLI Commands to StorCLI Command Conversion

|  |  |  |  |
| --- | --- | --- | --- |
| Description | MegaCLI Command | StorCLI Command | Real StorCLI Example |
| System Commands |  |  |  |
| Show the software version. | MegaCLI -v | storcli -v | storcli -v |
| Show help information. | MegaCLI -help\|-h\|? | storcli -help\|-h\|? | storcli -h |
| Show the number of controllers connected | MegaCLI -adpCount | storcli show ctrlcount |  |
| Controller Commands |  |  |  |
| Show the status of properties related<br>to the controllers. | MegaCli -AdpGetProp<br>\<PropertyName\>-aN\|-a0,1,2\|-aALL<br>The following properties can be used with this<br>command:<br>abortcconerror<br>alarmdsply<br>autodetectbackplanedsbl<br>autoenhancedimportdsply<br>autosnapshotspace<br>batwarndsbl<br>bgirate<br>bootwithpinnedcache<br>cachebypass<br>ccrate<br>clusterenable<br>coercionmode<br>copybackdsbl<br>defaultldpspolicy<br>defaultsnapshotspace<br>defaultviewspace<br>disableldpsinterval<br>disableldpstime<br>disableocr<br>dsbl<br>eccbucketcount<br>eccbucketleakrate<br>eccbucketsize<br>enableeghsp<br>enableesmarter<br>enableeug\|<br>enablejbod<br>enblspindownunconfigdrvs<br>loadbalancemode<br>maintainpdfailhistoryenbl<br>ncqdsply<br>patrolreadrate<br>perfmode<br>predfailpollinterval<br>rebuildrate<br>reconrate<br>rstrhotspareoninsert<br>smartcpybkenbl<br>spindowntime<br>spin-updelay<br>spin-updrivecount<br>spin-upencdelay | /cx show \<propertyName\><br>The following properties can be used with this<br>command:<br>activityforlocate<br>alarm<br>backplane<br>batterywarning<br>bgirate<br>bootwithpinnedcache<br>cachebypass<br>cacheflushint<br>cc<br>ccrate<br>clusterenable<br>coercion<br>copyback<br>directpdmapping<br>ds<br>eccbucketleakrate<br>eccbucketsize<br>enableeghsp<br>enableesmarter<br>enableeug<br>exposeencldevice<br>jbod<br>loadbalancemode<br>maintainpdfailhistory<br>migraterate<br>ncq<br>perfmode<br>pr<br>prcorrectunconfiguredareas<br>prrate<br>rebuildrate<br>rehostinfo<br>restorehotspare<br>safeid<br>smartpollinterval<br>spin-updelay<br>spin-updrivecount<br>stoponerror<br>time<br>usefdeonlyencrypt |  |
| Show the status of properties related to the controllers (continued). | spin-upencdrvcnt<br>ssdsmartcpybkenbl<br>usediskactivityforlocate<br>usefdeonlyencrypt | None |  |
| Set properties on the selected<br>controllers. | Megacli -AdpSetProp<br>\<propertyname\>-an\|-a0,1,2\|-aall<br>The following properties can be set using this<br>command:<br>abortcconerror<br>alarmdsply<br>autodetectbackplanedsbl<br>autoenhancedimportdsply<br>autosnapshotspace<br>batwarndsbl<br>bgirate<br>bootwithpinnedcache<br>cachebypass<br>ccrate<br>clusterenable<br>coercionmode<br>copybackdsbl<br>defaultldpspolicy<br>defaultsnapshotspace<br>defaultviewspace<br>disableldpsinterval<br>disableldpstime<br>disableocr<br>dsbl<br>eccbucketcount<br>eccbucketleakrate<br>eccbucketsize<br>enableeghsp<br>enableesmarter<br>enableeug\|<br>enablejbod<br>enblspindownunconfigdrvs<br>loadbalancemode<br>maintainpdfailhistoryenbl<br>ncqdsply<br>patrolreadrate<br>perfmode<br>predfailpollinterval<br>rebuildrate<br>reconrate<br>rstrhotspareoninsert<br>smartcpybkenbl<br>spindowntime<br>spin-updelay<br>spin-updrivecount<br>spin-upencdelay | /cx set \<property1\><br>The following properties can be set using this command:<br>abortcconerror=<on\|off><br>activityforlocate=<on\|off><br>alarm=\<value\><br>autorebuild=<on\|off><br>backplane=\<value\><br>batterywarning=<on\|off><br>bgirate=\<value\><br>bootwithpinnedcache=<on\|off><br>cachebypass=<on\|off><br>flush\|flushcache<br>cacheflushinterval=\<value\><br>ccrate=\<value\><br>coercion=\<value\><br>clusterenable=\<value\><br>copyback=<on\|off><br>type=<smartssd\|smarthdd\|all><br>dimmerswitch=<on\|off><br>directpdmapping=<enable\|disable><br>eccbucketleakrate=\<value\><br>eccbucketsize=\<value\><br>enableeghsp=\<value\><br>enableesmarter=\<value\><br>enableeug=\<value\><br>exposeencldevice=<on\|off><br>foreignautoimport=<on\|off><br>jbod=<on\|off><br>loadbalancemode=\<value\><br>maintainpdfailhistory=<on\|off><br>migraterate=\<value\><br>ncq=<on\|off><br>perfmode=\<value\><br>prcorrectunconfiguredareas=<on\|off><br>prrate=\<value\><br>rebuildrate=\<value\><br>restorehotspare=<on\|off><br>smartpollinterval=\<value\><br>spin-updelay=\<value\><br>spin-updrivecount=\<value\><br>stoponerror=<on\|off><br>usefdeonlyencrypt=<on\|off><br>time=yyyymmdd hh:mm:ss\|systemtime<br>usefdeonlyencrypt=<on\|off> |  |
| Set properties on the selected<br>controllers. | autocarve=<on\|off><br>autodetect=<on\|off ><br>disk=

\|all<br>autorebuild=<on\|off><br>carvesize=<1024..32768><br>dpmstat=<on\|off><br>ondegrade=<cacheoff\|follow><br>rebuild=<enable\|disable\|><1..5><br>rebuildmode=<adaptive\|lowlatency><br>rebuildrate=<1..5><br>selftest=<enable\|disable><br>spin-up=\<value\><br>stagger=\<value\><br>verify=advanced\|basic\|<1..5><br>verify=basic [pref=ddd:hh]where<br>hh={00..23} and<br>ddd={mon\|tue\|wed\|thu\|fri\|sat\|sun}<br>verify=enable\|disable\|<1..5><br>verifymode=<adaptive\|lowlatency><br>verifyrate=<1..5><br>spin-upencdrvcnt<br>sdsmartcpybkenbl<br>usediskactivityforlocate<br>usefdeonlyencrypt | abortcconerror=<on\|off><br>activityforlocate=<on\|off><br>alarm=\<value\><br>autorebuild=<on\|off><br>backplane=\<value\><br>batterywarning=<on\|off><br>bgirate=\<value\><br>bootwithpinnedcache=<on\|off><br>cachebypass=<on\|off><br>flush\|flushcache<br>cacheflushinterval=\<value\><br>ccrate=\<value\><br>coercion=\<value\><br>clusterenable=\<value\><br>copyback=<on\|off><br>type=<smartssd\|smarthdd\|all><br>directpdmapping=<enable\|disable><br>eccbucketleakrate=\<value\><br>eccbucketsize=\<value\><br>enableeghsp=\<value\><br>enableesmarter=\<value\><br>enableeug=\<value\><br>exposeencldevice=<on\|off><br>foreignautoimport=<on\|off><br>jbod=<on\|off><br>loadbalancemode=\<value\><br>maintainpdfailhistory=<on\|off><br>migraterate=\<value\><br>ncq=<on\|off><br>perfmode=\<value\><br>prcorrectunconfiguredareas=<on\|off><br>prrate=\<value\><br>rebuildrate=\<value\><br>restorehotspare=<on\|off><br>smartpollinterval=\<value\><br>spin-updelay=\<value\><br>spin-updrivecount=\<value\><br>stoponerror=<on\|off><br>usefdeonlyencrypt=<on\|off><br>time=yyyymmdd hh:mm:ss\|systemtime<br>usefdeonlyencrypt=<on\|off> |  |
| Show the number of controllers<br>connected. | MegaCLI -adpCount | storcli show ctrlcount | storcli show ctrlcount |
| Show all information about the<br>adapter, such as cluster state, BIOS,<br>alarm, firmware, version, and so on. | MegaCli -AdpAllInfo<br>-aN\|-a0,1,2\|-aALL | storcli /cx show all | storcli /c0 show all |
| Show the freespace available in the<br>controller. | MegaCLI -CfgFreeSpaceinfo<br>-aN\|-a0,1,2\|-aALL | storcli /cx show freespace | storcli /c0 show freespace |
| Download the controller firmware | MegaCli -AdpFwFlash -f filename<br>[-NoSigChk] [-NoVerChk]<br>-aN\|-a0,1,2\|-aALL | storcli /cx download file=\<filepath\><br>[fwtype=\<val\>] [nosigchk] [noverchk] | storcli /c0 download file=mr2208.rom |
| Show the preserved cache status. | MegaCLI-GetPreservedCacheList<br>-aN\|-a0,1,2\|-aALL | storcli /cx show preservedcache | storcli /c0 show preservedcache |
| Set the controller time | MegaCLI –AdpSetTime yyyymmdd<br>hh:mm:ss -aN\|-a0,1,2\|-aALL | storcli /c(x\|all) set time=<yyyymmdd<br>hh:mm:ss \| systemtime> | storcli /c0 set time=systemtime |
| Show the controller time. | MegaCLI –AdpGetTime -aN | storcli /cx show time | storcli /c0 show time |
| RAID Configuration commands |  |  |  |
| Create a RAID configuration of RAID<br>type 0, 1, 5, and 6. | MegaCli –CfgLDAdd<br>-R0\|-R1\|-R5\|-R6[E0:S0,E1:S1,...]<br>[WT \| WB] [NORA \| RA \| ADRA]<br>[Direct \| Cached]<br>[CachedBadBBU\|NoCachedBadBBU]<br>[-szXXXXXXXX [-szYYYYYYYY [... ]]]<br>[-strpszM] [–Hsp[E5:S5,...]]<br>[–afterLdX] -aN | storcli /cx add vd<br>type=raid[0\|1\|5\|6]<br>[Size=\<VD1_Sz\>,\<VD2_Sz\>,..\|*all]<br>[name=\<VDNAME1\>,..]<br>drives=e:s\|e:s-x\|e:s-x,y;e:s-x,y,z<br>[PDperArray=x]<br>[SED] [pdcache=on\|off\|*default][pi]<br>[DimmerSwitch(ds)=default\|automatic<br>(auto)\|*none\|maximum(max)<br>\|MaximumWithoutCaching(maxnocache)]<br>[wt\|*wb] [nora\|*ra] [*direct\|cached]<br>[CachedBadBBU\|*NoCachedBadBBU]<br>[Stripe=<8\|16\|32\|64\|128\|256\|512\|102<br>4] [AfterVd=X]<br>[Spares=[e:]s\|[e:]s-x\|[e:]s-x,y]<br>[force] | storcli /c0 add vd type=road1 drives=252:0,252:1<br>(hint: use storcli /c0 show to view available enclosure/slot e:s drives) |
| Create a CacheCade virtual drive | MegaCLI -CfgCacheCadeAdd [-rX]<br>-Physdrv[E0:S0,...] {-Name<br>LdNamestring} [WT\|WB\|ForcedWB]<br>[-assign -LX\|L0,2,5..\|LALL]<br>-aN\|-a0,1,2\|-Aall | storcli /cx add VD cachecade\|cc<br>Type=[0,1,10]<br>drives=[e:]s\|[e:]s-x\|[e:]s-x,y<br>[ < WT\| WB> ] [assignvds=0,1,2] | storcli /c0 add vd type=road1 drives=252:2,252:3 |
| Create a RAID configuration of RAID<br>type 10, 50, and 60. | MegaCli –CfgSpanAdd<br>-aN\|-a0,1,2\|-aALL<br>-R10\|-R50\|R60<br>–Array0[E0:S0,E1:S1,...]<br>–Array1[E0:S0,E1:S1,...] [...]<br>[WT \| WB] [NORA \| RA \| ADRA]<br>[Direct \| Cached]<br>[CachedBadBBU\|NoCachedBadBBU]<br>[-szXXXXXXXX [-szYYYYYYYY [... ]]]<br>[-strpszM] [–afterLdX] -aN | storcli /cx add vd<br>type=raid[10\|50\|60]<br>[Size=\<VD1_Sz\>,\<VD2_Sz\>,..\|*all]<br>[name=\<VDNAME1\>,..]<br>drives=e:s\|e:s-x\|e:s-x,y;e:s-x,y,z<br>[PDperArray=x]<br>[SED] [pdcache=on\|off\|*default][pi]<br>[DimmerSwitch(ds)=default\|automatic<br>(auto)\|*none\|maximum(max)<br>\|MaximumWithoutCaching(maxnocache)]<br>[wt\|*wb] [nora\|*ra] [*direct\|cached]<br>[CachedBadBBU\|*NoCachedBadBBU]<br>[Stripe=<8\|16\|32\|64\|128\|256\|512\|102<br>4] [AfterVd=X]<br>[Spares=[e:]s\|[e:]s-x\|[e:]s-x,y]<br>[force] |  |
| Delete a virtual drive | MegaCli -CfgClr [-Force]<br>-aN\|-a0,1,2\|-aALL | storcli /cx/vx delete or storcli /cx/vall (to delete all virtual drives) | storcli /c0/v0 delete (warning: there is no warning given; using /c0/vall will delete all logical drives and data with no warning) |
| Show the topology information of<br>the drive group | MegaCLI -CfgDsply<br>-aN\|-a0,1,2\|-Aall | storcli /cx/dall show [all] | storcli /cx0/d0 show |
| Show information for a CacheCade<br>virtual drive | MegaCLI -CfgCacheCadeDsply<br>-aN\|-a0,1,2\|-Aall | storcli /cx/dall show CacheCade(cc) | storcli /cx0/d0 show cc |
| Delete a virtual drive hosting the<br>operating system | MegaCLI -CfgLdDel<br>-LX\|-L0,2,5...\|-LALL [-Force]<br>-aN\|-a0,1,2\|-aALL | storcli /cx/vx[all] delete -force | storcli /c0/v0 del -force |
| Delete a CacheCade virtual drive | MegaCLI -CfgCacheCadeDel<br>-LX\|-L0,2,5...\|-LALL<br>-aN\|-a0,1,2\|-Aall | storcli /cx/vx[all] delete<br>CacheCade(cc) | storcli /c0/vx del cc |
| Show, delete, and import the foreign<br>configuration commands. | MegaCli –CfgForeign –Scan \|<br>{-Preview \| –Dsply\| -Import \|<br>-Clear[FID]} -aN\|-a0,1,2\|-aALL" | storcli /cx/f(x\|all) show [all]<br>[securityKey=xxx]<br>storcli /cx/f(x\|all) del\|delete<br>[securityKey=xxx]<br>storcli /cx/f(x\|all) import<br>[preview] [securityKey=xxx]" | storcli /c0/fall show |
| Patrol Read Commands |  |  |  |
| Show the patrol read status and<br>patrol read parameters, if any in<br>progress. | MegaCli -AdpPR -info<br>-aN\|-a0,1,2\|-aALL | /cx show patrolRead | /c0 show patrolread |
| Set the patrol read options on a<br>single adapter, multiple adapters, or<br>all adapters (x = single controller). | MegaCli -AdpPR<br>–Dsbl\|EnblAuto\|EnblMan\|Start\|Stop\|<br>Info\|Suspend\|Resume\|Stop\|<br>SSDPatrolReadEnbl \|<br>SSDPatrolReadDsbl<br>\|{SetDelay Val}\|{-SetStartTime<br>yyyymmdd hh}\|{maxConcurrentPD Val}<br>-aN\|-a0,1,2\|-aALL | /cx set patrolread {=on<br>mode=<auto\|manual>}\|{off}<br>/cx set patrolread [starttime=<<br>yyyy/mm/dd hh>]<br>[maxconcurrentpd=\<value\>]<br>[includessds=<on\|off>]<br>[uncfgareas=on\|off]<br>/cx set patrolread delay=\<value\> | /c0 set patrolread mode=manual |
| Disable patrol read. | MegaCli -AdpPR -Dsbl<br>-aN\|-a0,1,2\|-aALL | storcli /cx set patrolread=off | storcli /c0 set patrolread=off |
| Enable automatic patrol read. | MegaCli -AdpPR -EnblAuto<br>-aN\|-a0,1,2\|-aALL | storcli /cx set patrolread=on<br>mode=auto | storcli /cx set patrolread=off<br>mode=auto |
| Enable manual patrol read. | MegaCli -AdpPR -EnblMan<br>-aN\|-a0,1,2\|-aALL | storcli /cx set patrolread=on<br>mode=manual | storcli /c0 set patrolread=on<br>mode=manual |
| Start patrol read. | MegaCli -AdpPR -Start<br>-aN\|-a0,1,2\|-aALL | storcli /cx start patrolRead | storcli /c0 start patrolRead |
| Suspend a running patrol read | MegaCli -AdpPR -Suspend<br>-aN\|-a0,1,2\|-aALL | storcli /cx suspend patrolread | storcli /c0 suspend patrolread |
| Resume a suspended patrol read | MegaCli -AdpPR -Resume<br>-aN\|-a0,1,2\|-aALL | storcli /cx resume patrolread | storcli /c0 resume patrolread |
| Stop a running patrol read | MegaCli -AdpPR -Stop<br>-aN\|-a0,1,2\|-aALL | storcli /cx stop patrolRead | storcli /c0 stop patrolRead |
| Include SSD drives in patrol read | MegaCli -AdpPR -SSDPatrolReadEnbl<br>-aN\|-a0,1,2\|-aALL | storcli /cx set patrolRead<br>includessds=on \| onlymixed | storcli /c0 set patrolRead<br>includessds=on |
| Exclude SSD drives in patrol read | MegaCli -AdpPR -SSDPatrolReadDsbl<br>-aN\|-a0,1,2\|-aALL | storcli /cx set patrolRead<br>includessds=off | storcli /c0 set patrolRead<br>includessds=off |
| Delay a patrol read | MegaCli -AdpPR -SetDelay Val<br>-aN\|-a0,1,2\|-aALL | storcli /cx set patrolread<br>delay=\<value\><br>note: \<value\> unit of time is in hours | storcli /c0 set patrolread<br>delay=1 |
| Schedule a patrol read | MegaCli -AdpPR -SetStartTime<br>yyyymmdd hh -aN\|-a0,1,2\|-aALL | storcli /cx set patrolread=on<br>starttime=YYYY/MM/DD HH |  |
| Set the value for maximum<br>concurrent physical drives for the<br>patrol read. | MegaCli -AdpPR -maxConcurrentPD Val<br>-aN\|-a0,1,2\|-aALL | storcli /cx set patrolread<br>maxconcurrentpd=xx | storcli /c0 set patrolread<br>maxconcurrentpd=255 |
| Consistency Check Commands |  |  |  |
| Schedule a consistency check | MegaCLI -AdpCcSched -Dsbl\|-Info\|<br>{-ModeConc \| -ModeSeq [-ExcludeLD<br>-LN\|-L0,1,2] [-SetStartTime yyyymmdd<br>hh ] [-SetDelay val ] }<br>-aN\|-a0,1,2\|-aALL | storcli /cx set<br>consistencycheck\|cc=[off\|seq\|conc]<br>[delay=value] starttime=yyyy/mm/dd<br>hh [excludevd=x-y,z] | storcli /c0 set cc=off |
| Show consistency check status and consistency parameters, in progress,<br>if any. | MegaCLI -AdpCcSched -Info | storcli /cx show cc/ConsistencyCheck | storcli /c0 show cc |
| OPROM BIOS Commands |  |  |  |
| Schedule a consistency check | MegaCli -AdpBIOS -Dsply<br>-aN\|-a0,1,2\|-aALL | storcli /cx show bios | storcli /c0 show bios |
| Show consistency check status and<br>consistency parameters, if any in<br>progress. | MegaCli -AdpBootDrive -{-Set {-Lx \|<br>-physdrv[E0:S0]}} -aN\|-a0,1,2\|-aALL | storcli /cx/ex/sx set<br>bootdrive=on\|off<br>storcli /cx/vx set bootdrive=on\|off | storcli /c0/v0 set bootdrive=on |
| Sets the BIOS properties for the<br>controller. | MegaCli -AdpBIOS -Enbl \| -Dsbl \|<br>-Dsply \| SOE \| BE<br>EnblAutoSelectBootLd \|<br>DsblAutoSelectBootLd<br>-aN\|-a0,1,2\|-aALL | storcli /cx set bios=<on\|off><br>storcli /cx set<br>stoponerror\|soe=<on\|off><br>storcli /cx set<br>autobootselect(abs)=<on\|off> | storcli /c0 set bios=on |
| Battery (BBU) Commands |  |  |  |
| Show battery-related information | MegaCli -AdpBbuCmd -aN\|-a0,1,2\|-aALL | storcli /cx/bbu show<br>storcli /cx/bbu show all | storcli /c0/bbu show |
| Show the battery learn properties | MegaCli -AdpBbuCmd -GetBbuProperties<br>-aN\|-a0,1,2\|-aALL | storcli /cx/bbu show properties | storcli /c0/bbu show properties |
| Show the battery information,<br>firmware status, and the gas gauge<br>status. | MegaCli -AdpBbuCmd -GetBbuStatus<br>-aN\|-a0,1,2\|-aALL | storcli /cx/bbu show status | storcli /c0/bbu show status |
| Show battery capacity information | MegaCli -AdpBbuCmd<br>-GetBbuCapacityInfo<br>-aN\|-a0,1,2\|-aALL | storcli /cx/bbu show all | storcli /c0/bbu show all |
| Show battery design information | MegaCli -AdpBbuCmd -GetBbuDesignInfo<br>-aN\|-a0,1,2\|-aALL | storcli /cx/bbu show all | storcli /c0/bbu show all |
| Set battery properties | MegaCli -AdpBbuCmd -SetBbuProperties<br>-f \<fileName\> -aN\|-a0,1,2\|-aALL | storcli /cx/bbu set<br>learnDelayInterval=\<value\><br>storcli /cx/bbu set bbuMode=\<value\><br>storcli /cx bbu set<br>autolearnmode=\<value\>,<br>where x= 0 – Enabled, 1 – Disabled, 2 – Warn though<br>event. | storcli /c0/bbu set bbumode=5 |
| Start battery learn cycle | MegaCli -AdpBbuCmd -BbuLearn<br>-aN\|-a0,1,2\|-aALL | storcli /cx/bbu start learn | storcli /co/bbu start learn |
| Set the battery to low power storage<br>mode. | MegaCli -AdpBbuCmd -BbuMfgSleep<br>-aN\|-a0,1,2\|-aALL | storcli /cx/bbu set powermode=sleep |  |
| Seal the gas gauge EEPROM write<br>access | MegaCli -AdpBbuCmd -BbuMfgSeal<br>-aN\|-a0,1,2\|-aALL | storcli /cx/bbu set<br>writeaccess=sealed |  |
| Security Commands |  |  |  |
| Set the key ID for the controller. | MegaCli -CreateSecurityKey<br>-SecurityKey sssssssssss \|<br>[-Passphrase sssssssssss] \|<br>[-KeyID kkkkkkkkkkk] -aN | storcli /cx set SecurityKey=XXXXXX<br>[passphrase=yyyyy] [keyId=zzzz] |  |
| Change the security key for the<br>controller. | MegaCli -ChangeSecurityKey<br>-OldSecurityKey sssssssssss \|<br>-SecurityKey sssssssssss\|<br>[-Passphrase sssssssssss] \|<br>[-KeyID kkkkkkkkkkk] -aN | storcli /cx set SecurityKey=XXXXXX<br>OldSecurityKey=yyyyy |  |
| Compare and verify the security key<br>for the controller | Compare and verify the security key<br>for the controller | Compare and verify the security key<br>for the controller |  |
| Delete the security key | MegaCLI -DestroySecurityKey \|<br>[-Force] -aN | storcli /cx delete SecurityKey |  |
| Set the security key for the controller | MegaCli -SetKeyID -KeyID kkkkkkkkkkk<br>-aN | storcli /cx set SecurityKey<br>KeyId=xxxx |  |
| Virtual Drive Commands |  |  |  |
| Show the virtual drive information | MegaCli –LDInfo –Lx\|-L0,1,2\|-Lall<br>-aN\|-a0,1,2\|-aALL | storcli /cx/v(x\|all) show<br>storcli /cx/v(x\|all) show all |  |
| Set virtual drive properties | MegaCli –LDSetProp WT \| WB\|NORA \|RA<br>\| ADRA\|-Cached\|Direct\|<br>CachedBadBBU\|NoCachedBadBBU} \|<br>-RW\|RO\|Blocked \|<br>{-Name nameString} \|<br>-EnDskCache\|DisDskCache –Lx\|<br>-L0,1,2\|-Lall -aN\|-a0,1,2\|-aALL | storcli /cx/v(x\|all) set<br>wrcache=WT\|WB\|AWB<br>storcli /cx/v(x\|all) set<br>rdcache=RA\|NoRA<br>storcli /cx/v(x\|all) set<br>iopolicy=Cached\|Direct<br>storcli /cx/v(x\|all) set<br>accesspolicy=RW\|RO\|Blocked\|RmvBlkd<br>storcli /cx/v(x\|all) set<br>pdcache=On\|Off\|Default<br>storcli /cx/v(x\|all) set<br>name=\<NameString\><br>" |  |
| Set power-saving (dimmer switch)<br>properties. | MegaCli -LDSetPowerPolicy -Default\|<br>-Automatic\| -None\| -Maximum\|<br>-MaximumWithoutCaching<br>-Lx\|-L0,1,2\|-Lall -aN\|-a0,1,2\|-aALL | storcli /cx/v(x\|all) set<br>ds=Default\|Auto\|None\|Max\|MaxNoCache |  |
| Show virtual drive expansion<br>information | MegaCli -getLdExpansionInfo<br>-Lx\|-L0,1,2\|-Lall -aN\|-a0,1,2\|-aALL | storcli /cx/v(x\|all) show expansion |  |
| Expand the virtual drive within the<br>existing array; also use if you replace<br>the drives with larger drives, beyond<br>the size of the existing array. | MegaCli -LdExpansion -pN<br>-dontExpandArray -Lx\|-L0,1,2\|-Lall<br>-aN\|-a0,1,2\|-aALL | storcli /cx/v(x\|all) expand<br>Size=\<value\> [expandarray] |  |
| Secure the virtual drive. | MegaCLI --LDMakeSecure<br>-Lx\|-L0,1,2,...\|-Lall –An | storcli /cx/vx set security=on |  |
| Show specific properties of virtual<br>drives. | MegaCli –LDGetProp -Cache \| -Access<br>\| -Name \| -DskCache<br>-Lx\|-L0,1,2\|-Lall -aN\|-a0,1,2\|-aALL | storcli /cx/vx show |  |
| Start virtual drive initialization | MegaCli –LDInit –Start [Fast\|Full]<br>-Lx\|-L0,1,2\|-Lall -aN\|-a0,1,2\|-aALL | storcli /cx/v(x\|all) start<br>init[Full] |  |
| Stop a running virtual drive<br>initialization. | MegaCli –LDInit -Abort<br>-Lx\|-L0,1,2\|-Lall -aN\|-a0,1,2\|-aALL | storcli /cx/v(x\|all) stop init |  |
| Show the initialization progress | MegaCli –LDInit –ShowProg<br>-Lx\|-L0,1,2\|-Lall -aN\|-a0,1,2\|-aALL | storcli /cx/v(x\|all) show init |  |
| Start a consistency check on an<br>uninitialized virtual drive | MegaCli –LDCC –Start<br>–Lx\|-L0,1,2\|-Lall -aN\|-a0,1,2\|-aALL | storcli /cx/v(x\|all) start cc[Force] |  |
| Start, stop, suspend, resume, and<br>show the progress of a consistency<br>check operation | MegaCli -LDCC -Start\|-Abort\|<br>-Suspend\|-Resume\|-ShowProg\|<br>-ProgDsply -Lx\|-L0,1,2\|-LALL<br>-aN\|-a0,1,2\|-aALL | storcli /cx/v(x\|all) start cc<br>storcli /cx/v(x\|all) stop cc<br>storcli /cx/v(x\|all) pause cc<br>storcli /cx/v(x\|all) resume cc<br>storcli /cx/v(x\|all) show cc |  |
| Enable/disable automatic<br>background initialization. Show, stop,<br>pause, resume, and show the<br>progress of the background<br>initialization. | MegaCLI -LDBI -Enbl\|-Dsbl\|<br>-getSetting\|-Abort\|-Suspend\|<br>-Resume\|-ShowProg\|-ProgDsply<br>-Lx\|-L0,1,2\|-LALL -aN\|-a0,1,2\|-Aall | storcli /cx/v(x\|all) set<br>autobgi=On\|Off<br>storcli /cx/v(x\|all) show autobgi<br>storcli /cx/v(x\|all) stop bgi<br>storcli /cx/v(x\|all) pause bgi<br>storcli /cx/v(x\|all) resume bgi<br>storcli /cx/v(x\|all) show bgi |  |
| Start and show progress for a migrate<br>operation. | MegaCli –LDRecon {–Start –Rx [Add<br>\| Rmv PhysDrv[E0:S0,E1:S1,...] ] }<br>\| –ShowProg\|-ProgDsply –Lx –aN | storcli /cx/vx start migrate<br>type=raidx [option=add\|remove<br>drives=[e:]s\|[e:]s-x\|[e:]s-x,y]<br>[Force]<br>storcli /cx/v(x\|all) show migrate |  |
| Delete preserved cache | MegaCLI -DiscardPreservedCache<br>-Lx\|-L0,1,2\|-Lall -force<br>-aN\|-a0,1,2\|-aALL | storcli /cx/v(x\|all) delete<br>preservedcache[force] |  |
| Assign the CacheCade virtual drive | MegaCLI -Cachecade -assign\|-remove<br>-Lx\|-L0,1,2\|-LALL -aN\|-a0,1,2\|-aALL | storcli /cx/vx\|all set<br>ssdCaching=on\|off |  |
| Physical Drive Commands |  |  |  |
| Show drive information | MegaCli -pdInfo -<br>PhysDrv[E0:S0,E1:S1,...]<br>-aN\|-a0,1,2\|-aALL | storcli /cx/ex/sx show<br>storcli /cx/ex/sx show all |  |
| Start, stop, suspend, or resume an<br>ongoing rebuild operation. | MegaCLI PDRbld -Start\|-Stop<br>\|-Suspend\|-Resume\|-ShowProg<br>\|-ProgDsply -PhysDrv<br>[E0:S0,E1:S1,...]<br>-aN\|-a0,1,2\|-aALL | storcli /cx/ex/sx start rebuild<br>storcli /cx/ex/sx stop rebuild<br>storcli /cx/ex/sx pause rebuild<br>storcli /cx/ex/sx resume rebuild<br>storcli /cx/ex/sx show rebuild |  |
| Start, stop, pause, resume, or show<br>the progress of a copyback operation | MegaCLI PDCpyBk -Start\|-Stop<br>\|-Suspend\|-Resume\|-ShowProg<br>\|-ProgDsply -PhysDrv<br>[E0:S0,E1:S1,...]<br>-aN\|-a0,1,2\|-aALL | storcli /cx/ex/sx start copyback<br>target=exx:sxx<br>storcli /cx/ex/sx stop copyback<br>storcli /cx/ex/sx pause copyback<br>storcli /cx/ex/sx resume copyback<br>storcli /cx/ex/sx show copyback |  |
| Mark a drive as missing | MegaCli -PdMarkMissing<br>-physdrv[E0:S0,E1:S1,...]<br>-aN\|-a0,1,2\|-aALL | storcli /cx/ex/sx set missing |  |
| Show missing drive information | MegaCli -PdGetMissing<br>-aN\|-a0,1,2\|-aALL | storcli /cx/ex/sx show all<br>NOTE This information is shown as part of the show all<br>command. |  |
| Replace the configured drive that is<br>identified as missing, and then start<br>an automatic rebuild. | MegaCli -PdReplaceMissing<br>-physdrv[E0:S0] -arrayA, -rowB<br>-aN | storcli /cx/ex/sx insert array=x row=y |  |
| Set the drive state to online | MegaCli –PDOnline -<br>PhysDrv[E0:S0,E1:S1....]<br>-aN\|-a0,1,2 | storcli /cx/ex/sx set online |  |
| Set the drive state to offline | MegaCli –PDOffline<br>-PhysDrv[E0:S0,E1:S1....]<br>-aN\|-a0,1,2\|-aALL | storcli /cx/ex/sx set offline |  |
| Set the drive state to JBOD | MegaCli –PDMakeGood<br>-PhysDrv[E0:S0,E1:S1....]<br>-aN\|-a0,1,2\|-aALL | storcli /cx/ex/sx set good [force]<br>or<br>storcli /cx/ex/sx set jbod |  |
| Add and delete hotspare drives | MegaCli –PDHSP {–Set<br>[{-Dedicated -ArrayN \|<br>-Array0,1...}] [-EnclAffinity]<br>[-nonRevertible] } \|<br>-Rmv -PhysDrv[E0:S0,E1:S1,...]<br>-aN\|-a0,1,2\|-aALL | storcli /cx/ex/sx add hotsparedrive<br>[dgs=<N\|0,1,2..>] enclaffinity<br>nonrevertible<br>storcli /cx/ex/sx delete hotsparedrive |  |
| Start, stop, pause, resume or show<br>the progress of an initialization<br>process. | MegaCli –PDClear -Start \|-Stop\|<br>-ShowProg \|-ProgDsply<br>- PhysDrv[E0:S0,E1:S1....]<br>-aN\|-a0,1,2\|-aALL | storcli /cx/ex/sx start initialization<br>storcli /cx/ex/sx stop initialization<br>storcli /cx/ex/sx pause initialization<br>storcli /cx/ex/sx resume initialization<br>storcli /cx/ex/sx show initialization |  |
| Start a drive locate and activate (blink) the<br>drive’s LED or stop a drive locate (LED blinking) and<br>deactivate the drive’s LED | MegaCli –PDLocate {[-start] \|<br>-stop} -physdrv[E0:S0,E1:S1,...]<br>-aN\|-a0,1,2\|-aALL | storcli /cx/ex/sx start locate<br>storcli /cx/ex/sx stop locate |  |
| Spin down an unconfigured drive<br>and prepare it for removal or spin up<br>spun-down drive and mark the drive<br>state as unconfigured good. | MegaCli –PDPrpRmv [-Undo]<br>– PhysDrv[E0:S0,E1:S1....]<br>-aN\|-a0,1,2\|-aALL | storcli /cx/ex/sx spindown<br>storcli /cx/ex/sx spin-up |  |
| Show physical drive information of all<br>connected drives. | MegaCli –PDList<br>-aN\|-a0,1..\|-aAll | storcli /cx/eall/sall show [all]<br>NOTE This command does not show drives whose enclosure device ID is not available. |  |
| Flash the physical drive firmware | MegaCLI PdFwDownload[offline]<br>[ForceActivate] {[-SataBridge]<br>-PhysDrv[0:1]}\|{-EncdevId[devId1<br>]} -f \<filename\><br>-aN\|-a0,1,2\|-Aall | storcli /cx[/ex]/sx download<br>src=\<filepath\> [satabridge]<br>storcli /cx/ex download src=\<filepath\><br>[forceActivate] |  |
| Erase the drive's security<br>configuration and securely erase data on a drive. | MegaCli -PDInstantSecureErase<br>-PhysDrv[E0:S0,E1:S1,...] \|<br>[-Force] -aN\|-a0,1,2\|-aALL | storcli /cx/ex/sx secureerase [force] |  |
| Show the security key for secured physical drives | MegaCli -GetKeyID<br>[-PhysDrv[E0:S0]] -aN | storcli /cx/ex/sx show securitykey<br>keyid |  |
| Start, stop, and show the progress of<br>a secure erase operation | MegaCli -SecureErase Start[<br>Simple\|<br>[Normal [ \|ErasePattern<br>ErasePatternA\|ErasePattern<br>ErasePatternA ErasePattern<br>ErasePatternB]]\|[Thorough [<br>\|ErasePattern<br>ErasePatternA\|ErasePattern<br>ErasePatternA ErasePattern<br>ErasePatternB]]]<br>\| Stop\| ShowProg\| ProgDsply<br>[-PhysDrv [E0:S0,E1:S1,...] \|<br>-Lx\|-L0,1,2\|-LALL]<br>-aN\|-a0,1,2\|-aALL | storcli /cx[/ex]/sx start erase<br>[simple\| normal\| thorough]<br>[erasepatternA=\<val\>]\n[erasepatternB=<<br>val>]<br>Examples:<br>storcli /cx/ex/sx start erase simple<br>storcli /cx/ex/sx start erase normal<br>erasepatterna=10101010<br>storcli /cx/ex/sx start erase thorough<br>erasepatterna=10101010<br>erasepatternb=10101111<br>storcli /cx/ex/sx stop erase |  |
| Enable/disable the direct physical<br>drive mapping mode.<br>Show the current state of the direct physical drive mapping. | MegaCLI DirectPdMapping<br>-Enbl\|-Dsbl\|-Dsply<br>-aN\|-a0,1,2\|-Aall | storcli /cx set directpdmapping=<on \|<br>off><br>storcli /cx show directpdmapping |  |
| Enclosure Commands |  |  |  |
| Show enclosure information | MegaCli –EncInfo<br>-aN\|-a0,1,2\|-aALL | storcli /cx/ex show<br>storcli /cx/ex show all |  |
| Show enclosure status | MegaCli –EncStatus<br>-aN\|-a0,1,2\|-aALL | /cx/ex show status |  |
| Download enclosure firmware. |  | /cx/ex download src=filepath<br>[offline] [forceActivate |  |
| PHY Commands |  |  |  |
| Show PHY information | MegaCli –PHYInfo -phyM<br>-aN\|-a0,1,2\|-aALL | storcli /cx/px(x\|all) show<br>storcli /cx/px(x\|all) show all |  |
| Set PHY link speed | MegaCLI PhySetLinkSpeed -phyM<br>-speed -aN\|-a0,1,2\|-aALL | storcli /cx/px(x\|all) set<br>linkspeed=1.5\|3\|6\|12\|auto |  |
| Show the PHY error counters. | Megacli PhyErrorCounters -An | storcli /cx/px(x\|all) show<br>storcli /cx/px(x\|all) show all |  |
| Alarm Commands |  |  |  |
| Show alarm properties | MegaCli -AdpGetProp AlarmDsply<br>-aN\|-a0,1,2\|-aALL | storcli /cx(x\|all) show alarm |  |
| Set alarm properties | MegaCli -AdpSetProp AlarmEnbl \|<br>AlarmDsbl \| AlarmSilence<br>-aN\|-a0,1,2\|-aALL | storcli /cx(x\|all) set<br>alarm=<on\|off\|silence> |  |
| Event Log Properties Commands |  |  |  |
| Show event logs. | MegaCli -AdpEventLog<br>-GetEventLogInfo<br>-aN\|-a0,1,2\|-aALL | /cx show eventloginfo |  |
| Show the specified type of event<br>logs. | MegaCli -AdpEventLog -GetEvents<br>{-info -warning -critical<br>-fatal} {-f \<fileName\>}<br>-aN\|-a0,1,2\|-aALL | storcli /cx show events<br>[type=[latest=x\|ccincon<br>vd=\|[sincereboot\|sinceshutdown\|included<br>eleted\|latest\|ccincon]]]<br>[filter=[info\|warning\|critical\|fatal]]<br>file=xyz.txt |  |
| Show the specified event logs | MegaCli -AdpEventLog<br>-GetSinceShutdown {-info<br>-warning -critical -fatal}<br>{-f \<fileName\>}<br>-aN\|-a0,1,2\|-aALL | storcli /cx show events<br>[type=[latest=x\|ccincon<br>vd=\|[sincereboot\|sinceshutdown\|included<br>eleted\|latest\|ccincon]]]<br>[filter=[info\|warning\|critical\|fatal]]<br>file=xyz.txt |  |
| Delete the event logs. | MegaCli -AdpEventLog -Clear<br>-aN\|-a0,1,2\|-aALL | storcli /cx delete events |  |
| Premium Feature Key Commands |  |  |  |
| Show the Safe ID of the controller | MegaCli -ELF -GetSafeId -a0 | storcli /cx(x\|all) show safeid |  |
| Show the Advanced Software<br>Options that are enabled on the<br>controller, including the ones in trial mode. | MegaCli -ELF –ControllerFeatures<br>-a0 | MegaCli -ELF –ControllerFeatures<br>-a0 |  |
| Apply the Activation Key in preview mode. | MegaCli -ELF -Applykey key –val<br>-preview -a0 | storcli /cx(x\|all) set aso key=<key<br>value> preview |  |
| Apply the Activation Key | MegaCli -ELF -Applykey key –val<br>-a0 | storcli /cx(x\|all) set aso key=<key<br>value> |  |
| Deactivate the trial key | MegaCli -ELF<br>–DeactivateTrialKey -a0 | storcli /cx(x\|all) set aso<br>deactivatetrialkey |  |
| Show the re-host information and, if re-hosting is necessary, show the controller and key vault serial<br>numbers. | MegaCli -ELF -ReHostInfo -a0 | storcli /cx(x\|all) show rehostinfo |  |
| Indicate to the controller that the<br>re-host is complete | MegaCli -ELF -ReHostComplete -a0 | storcli /cx(x\|all) set aso<br>rehostcomplete |  |

| Command Description | MegaCli Command | TwCli Command |
|---------------------|----------------|---------------|
| Show the status of properties related to the controllers. | `MegaCli -AdpGetProp <PropertyName>-aN|-a0,1,2|-aALL`
The following properties can be used with this command:
- abortcconerror
- alarmdsply
- autodetectbackplanedsbl
- autoenhancedimportdsply
- autosnapshotspace
- batwarndsbl
- bgirate
- bootwithpinnedcache
- cachebypass
- ccrate
- clusterenable
- coercionmode
- copybackdsbl
- defaultldpspolicy
- defaultsnapshotspace
- defaultviewspace
- disableldpsinterval
- disableldpstime
- disableocr
- dsbl
- eccbucketcount
- eccbucketleakrate
- eccbucketsize
- enableeghsp
- enableesmarter
- enableeug
- enablejbod
- enblspindownunconfigdrvs
- loadbalancemode
- maintainpdfailhistoryenbl
- ncqdsply
- patrolreadrate
- perfmode
- predfailpollinterval
- rebuildrate
- reconrate
- rstrhotspareoninsert
- smartcpybkenbl
- spindowntime
- spin-updelay
- spin-updrivecount
- spin-upencdelay | `/cx show <propertyName>`
The following properties can be used with this command:
- activityforlocate
- alarm
- backplane
- batterywarning
- bgirate
- bootwithpinnedcache
- cachebypass
- cacheflushint
- cc
- ccrate
- clusterenable
- coercion
- copyback
- directpdmapping
- ds
- eccbucketleakrate
- eccbucketsize
- enableeghsp
- enableesmarter
- enableeug
- exposeencldevice
- jbod
- loadbalancemode
- maintainpdfailhistory
- migraterate
- ncq
- perfmode
- pr
- prcorrectunconfiguredareas
- prrate
- rebuildrate
- rehostinfo
- restorehotspare
- safeid
- smartpollinterval
- spin-updelay
- spin-updrivecount
- stoponerror
- time
- usefdeonlyencrypt |
| **Sample Output** | | |
| `C:\storcli> storcli /c0 show activityforlocate`
`--> sample output -->`
`Controller = 0`
`Status = Success`
`Description = None`
`Controller Properties :`
`====================`
`-----------------------------------`
`Ctrl_Prop                    Value`
`-----------------------------------`
`Use Disk Activity For Locate OFF`
`-----------------------------------` | `C:\storcli> storcli /c0 show alarm`
`--> sample output -->`
`Controller = 0`
`Status = Success`
`Description = None`
`Controller Properties :`
`====================`
`----------------`
`Ctrl_Prop Value`
`----------------`
`Alarm     OFF`
`----------------` | `C:\storcli> storcli /c0 show backplane`
`--> sample output -->`
`Controller = 0`
`Status = Success`
`Description = None`
`Controller Properties :`
`====================`
`--------------------------------------------------------------------------------`
`----------------------`
`Ctrl_Prop      Value`
`--------------------------------------------------------------------------------`
`BackPlaneState auto detect logic of backplanes like SGPIO, i2c SEP using h/w mechanism like GPIO pins`
`--------------------------------------------------------------------------------`
`----------------------` |

Show the status of properties related to the controllers (continued).

| Property Names |
|-----------------|
| spin-upencdrvcnt |
| ssdsmartcpybkenbl |
| usediskactivityforlocate |
| usefdeonlyencrypt |

## Set Properties

Set properties on the selected controllers.

### MegaCLI Command

```
Megacli -AdpSetProp <propertyname>-an|-a0,1,2|-aall
```

The following properties can be set using this command:

- abortcconerror
- alarmdsply
- autodetectbackplanedsbl
- autoenhancedimportdsply
- autosnapshotspace
- batwarndsbl
- bgirate
- bootwithpinnedcache
- cachebypass
- ccrate
- clusterenable
- coercionmode
- copybackdsbl
- defaultldpspolicy
- defaultsnapshotspace
- defaultviewspace
- disableldpsinterval
- disableldpstime
- disableocr
- dsbl
- eccbucketcount
- eccbucketleakrate
- eccbucketsize
- enableeghsp
- enableesmarter
- enableeug
- enablejbod
- enblspindownunconfigdrvs
- loadbalancemode
- maintainpdfailhistoryenbl
- ncqdsply
- patrolreadrate
- perfmode
- predfailpollinterval
- rebuildrate
- reconrate
- rstrhotspareoninsert
- smartcpybkenbl
- spindowntime
- spin-updelay
- spin-updrivecount
- spin-upencdelay

```
/cx set <property1>
```

The following properties can be set using this command:

- abortcconerror=\<on|off\>
- activityforlocate=\<on|off\>
- alarm=\<value\>
- autorebuild=\<on|off\>
- backplane=\<value\>
- batterywarning=\<on|off\>
- bgirate=\<value\>
- bootwithpinnedcache=\<on|off\>
- cachebypass=\<on|off\>
- flush|flushcache
- cacheflushinterval=\<value\>
- ccrate=\<value\>
- coercion=\<value\>
- clusterenable=\<value\>
- copyback=\<on|off\>
- type=\<smartssd|smarthdd|all\>
- dimmerswitch=\<on|off\>
- directpdmapping=\<enable|disable\>
- eccbucketleakrate=\<value\>
- eccbucketsize=\<value\>
- enableeghsp=\<value\>
- enableesmarter=\<value\>
- enableeug=\<value\>
- exposeencldevice=\<on|off\>
- foreignautoimport=\<on|off\>
- jbod=\<on|off\>
- loadbalancemode=\<value\>
- maintainpdfailhistory=\<on|off\>
- migraterate=\<value\>
- ncq=\<on|off\>
- perfmode=\<value\>
- prcorrectunconfiguredareas=\<on|off\>
- prrate=\<value\>
- rebuildrate=\<value\>
- restorehotspare=\<on|off\>
- smartpollinterval=\<value\>
- spin-updelay=\<value\>
- spin-updrivecount=\<value\>
- stoponerror=\<on|off\>
- usefdeonlyencrypt=\<on|off\>
- time=yyyymmdd hh:mm:ss|systemtime
- usefdeonlyencrypt=\<on|off\>

### 3ware CLI Commands to StorCLI Command Conversion

|  |  |  |  |
| --- | --- | --- | --- |
| Description | 3ware CLI Command | StorCLI Command | Real StorCLI Example |
| System Commands |  |  |  |
| Show general summary of all<br>detected controllers. | tw_cli show | show<br>show ctrlcount |  |
| Controller Commands |  |  |  |
| Show all information about the<br>adapter, such as cluster state, BIOS, alarm, firmware, version, and so on. | tw_cli /cx show all | /cx show all |  |
| Download the firmware to all<br>compatible controllers that can be<br>flashed with the image. By default,<br>CLI checks for signature and version. | /cx update fw=filename_with_path<br>[force] | /cx download src=filepath [nosigchk]<br>[noverchk] |  |
| Show the status of properties related<br>to the Controllers. | /cx show \<PropertyName\><br>The following properties can be used with this command:<br>a0,1,2\|-aALL<br>achip<br>AENs [reverse]<br>alarms [reverse]<br>allunitstatus<br>autocarve<br>autorebuild<br>bios<br>carvesize<br>ctlbus diag<br>dpmstat [type=<inst\|ra\|ext><br>driver<br>drivestatus<br>events [reverse]<br>exportjbod firmware<br>memory<br>model<br>monitor<br>numdrives<br>numports<br>numunits<br>ondegrade<br>pcb<br>pchip<br>phy<br>rebuild<br>rebuildmode<br>rebuildrate<br>selftest<br>serial<br>spin-up<br>stagger<br>unitstatus<br>verify<br>verifymode<br>verifyrate | abortcconerror=<on\|off><br>activityforlocate=<on\|off><br>alarm=\<value\><br>autorebuild=<on\|off><br>backplane=\<value\><br>batterywarning=<on\|off><br>bgirate=\<value\><br>bootwithpinnedcache=<on\|off><br>cachebypass=<on\|off><br>flush\|flushcache<br>cacheflushinterval=\<value\><br>ccrate=\<value\><br>coercion=\<value\><br>clusterenable=\<value\><br>copyback=<on\|off><br>type=<smartssd\|smarthdd\|all><br>directpdmapping=<enable\|disable><br>eccbucketleakrate=\<value\><br>eccbucketsize=\<value\><br>enableeghsp=\<value\><br>enableesmarter=\<value\><br>enableeug=\<value\><br>exposeencldevice=<on\|off><br>foreignautoimport=<on\|off><br>jbod=<on\|off><br>loadbalancemode=\<value\><br>maintainpdfailhistory=<on\|off><br>migraterate=\<value\><br>ncq=<on\|off><br>perfmode=\<value\><br>prcorrectunconfiguredareas=<on\|off><br>prrate=\<value\><br>rebuildrate=\<value\><br>restorehotspare=<on\|off><br>smartpollinterval=\<value\><br>spin-updelay=\<value\><br>spin-updrivecount=\<value\><br>stoponerror=<on\|off><br>usefdeonlyencrypt=<on\|off><br>time=yyyymmdd hh:mm:ss\|systemtime<br>usefdeonlyencrypt=<on\|off> |  |
| Set properties on the selected<br>controllers. | autocarve=<on\|off><br>autodetect=<on\|off ><br>disk=

\|all<br>autorebuild=<on\|off><br>carvesize=<1024..32768><br>dpmstat=<on\|off><br>ondegrade=<cacheoff\|follow><br>rebuild=<enable\|disable\|><1..5><br>rebuildmode=<adaptive\|lowlatency><br>rebuildrate=<1..5><br>selftest=<enable\|disable><br>spin-up=\<value\><br>stagger=\<value\><br>verify=advanced\|basic\|<1..5><br>verify=basic [pref=ddd:hh]where<br>hh={00..23} and<br>ddd={mon\|tue\|wed\|thu\|fri\|sat\|sun}<br>verify=enable\|disable\|<1..5><br>verifymode=<adaptive\|lowlatency><br>verifyrate=<1..5> | abortcconerror=<on\|off><br>activityforlocate=<on\|off><br>alarm=\<value\><br>autorebuild=<on\|off><br>backplane=\<value\><br>batterywarning=<on\|off><br>bgirate=\<value\><br>bootwithpinnedcache=<on\|off><br>cachebypass=<on\|off><br>flush\|flushcache<br>cacheflushinterval=\<value\><br>ccrate=\<value\><br>coercion=\<value\><br>clusterenable=\<value\><br>copyback=<on\|off><br>type=<smartssd\|smarthdd\|all><br>directpdmapping=<enable\|disable><br>eccbucketleakrate=\<value\><br>eccbucketsize=\<value\><br>enableeghsp=\<value\><br>enableesmarter=\<value\><br>enableeug=\<value\><br>exposeencldevice=<on\|off><br>foreignautoimport=<on\|off><br>jbod=<on\|off><br>loadbalancemode=\<value\><br>maintainpdfailhistory=<on\|off><br>migraterate=\<value\><br>ncq=<on\|off><br>perfmode=\<value\><br>prcorrectunconfiguredareas=<on\|off><br>prrate=\<value\><br>rebuildrate=\<value\><br>restorehotspare=<on\|off><br>smartpollinterval=\<value\><br>spin-updelay=\<value\><br>spin-updrivecount=\<value\><br>stoponerror=<on\|off><br>usefdeonlyencrypt=<on\|off><br>time=yyyymmdd hh:mm:ss\|systemtime<br>usefdeonlyencrypt=<on\|off> |  |
| Set properties on the selected<br>controllers. | autocarve=<on\|off><br>autodetect=<on\|off ><br>disk=

\|all<br>autorebuild=<on\|off><br>carvesize=<1024..32768><br>dpmstat=<on\|off><br>ondegrade=<cacheoff\|follow><br>rebuild=<enable\|disable\|><1..5><br>rebuildmode=<adaptive\|lowlatency><br>rebuildrate=<1..5><br>selftest=<enable\|disable><br>spin-up=\<value\><br>stagger=\<value\><br>verify=advanced\|basic\|<1..5><br>verify=basic [pref=ddd:hh]where<br>hh={00..23} and<br>ddd={mon\|tue\|wed\|thu\|fri\|sat\|sun}<br>verify=enable\|disable\|<1..5><br>verifymode=<adaptive\|lowlatency><br>verifyrate=<1..5> | abortcconerror=<on\|off><br>activityforlocate=<on\|off><br>alarm=\<value\><br>autorebuild=<on\|off><br>backplane=\<value\><br>batterywarning=<on\|off><br>bgirate=\<value\><br>bootwithpinnedcache=<on\|off><br>cachebypass=<on\|off><br>flush\|flushcache<br>cacheflushinterval=\<value\><br>ccrate=\<value\><br>coercion=\<value\><br>clusterenable=\<value\><br>copyback=<on\|off><br>type=<smartssd\|smarthdd\|all><br>directpdmapping=<enable\|disable><br>eccbucketleakrate=\<value\><br>eccbucketsize=\<value\><br>enableeghsp=\<value\><br>enableesmarter=\<value\><br>enableeug=\<value\><br>exposeencldevice=<on\|off><br>foreignautoimport=<on\|off><br>jbod=<on\|off><br>loadbalancemode=\<value\><br>maintainpdfailhistory=<on\|off><br>migraterate=\<value\><br>ncq=<on\|off><br>perfmode=\<value\><br>prcorrectunconfiguredareas=<on\|off><br>prrate=\<value\><br>rebuildrate=\<value\><br>restorehotspare=<on\|off><br>smartpollinterval=\<value\><br>spin-updelay=\<value\><br>spin-updrivecount=\<value\><br>stoponerror=<on\|off><br>usefdeonlyencrypt=<on\|off><br>time=yyyymmdd hh:mm:ss\|systemtime<br>usefdeonlyencrypt=<on\|off> |  |
| Alarm Commands |  |  |  |
| Set alarm properties. | /cx/ex/almx set<br>alarm=<mute\|unmute\|off><br>NOTE The 3ware controllers have enclosure alarms. | /cx set alarm=<on\|off\|silence><br>NOTE The StorCLI controllers have controller alarms |  |
| Show alarm properties. | /cx/ex show alarms<br>NOTE This command applies for only 9750 and<br>9690SA controllers. | /cx show alarm |  |
| Patrol Read and Consistency Check Commands |  |  |  |
| Show patrol read status and patrol<br>read parameters, if any in progress. | /cx/ux show | /cx show patrolRead |  |
| Set the patrol read options on a<br>single adapter, multiple adapters, or<br>all adapters (x = single controller). | /cx/ux start verify<br>/cx/ux set autoverify=<on\|off><br>&nbsnbsp; /cx add verify=dddh:hh:duration | /cx set patrolread {=on<br>mode=<auto\|manual>}\|{off}<br>/cx set patrolread [starttime=<<br>yyyy/mm/dd hh>]<br>[maxconcurrentpd=\<value\>]<br>[includessds=<on\|off>]<br>[uncfgareas=on\|off]<br>/cx set patrolread delay=\<value\> |  |
| /cx set patrolread {=on<br>mode=<auto\|manual>}\|{off}<br>/cx set patrolread [starttime=<<br>yyyy/mm/dd hh>]<br>[maxconcurrentpd=\<value\>]<br>[includessds=<on\|off>]<br>[uncfgareas=on\|off]<br>/cx set patrolread delay=\<value\> | /cx/ux show | /cx/vx show cc<br>/cx show ccrate |  |
| Set consistency check options on a<br>single adapter, multiple adapters, or<br>all adapters (x = single controller). | /cx/ux start verify<br>/cx/ux set autoverify=<on\|off><br>/cx add verify=ddd:hh:duration | storcli /cx set<br>consistencycheck\|cc=[off\|seq\|conc]<br>[delay=value]<br>[starttime=yyyy/mm/dd hh]<br>[excludevd=x-y,z] |  |
| BBU Commands |  |  |  |
| Show complete BBU information,<br>such as status, capacity information,<br>design information, and properties. | /cx/bbu show all | /cx/bbu show all |  |
| Show BBU summary information. | /cx/bbu show | /cx/bbu show |  |
| Show BBU properties. | /cx/bbu show batinst<br>/cx/bbu show bootloader<br>/cx/bbu show fw<br>/cx/bbu show lasttest<br>/cx/bbu show pcb<br>/cx/bbu show serial<br>/cx/bbu show status<br>/cx/bbu show temp<br>/cx/bbu show tempstat<br>/cx/bbu show tempval<br>/cx/bbu show volt | /cx/bbu show properties<br>/cx/bbu show status<br>NOTE Not all the properties shown in the 3Ware CLI<br>are shown in the StorCLI. |  |
| Show BBU capacity information. | /cx/bbu show cap | /cx/bbu show all |  |
| Start the learning cycle on the BBU. | /cx/bbu test [quiet] | /cx/bbu start learn |  |
| Virtual Drive Commands |  |  |  |
| Show cache and access policies of the<br>virtual drive. | /cx/ux show [all]<br>/cx/ux show autoverify<br>/cx/ux show cache<br>/cx/ux show identify<br>/cx/ux show ignoreECC<br>/cx/ux show name<br>/cx/ux show parit<br>/cx/ux show qpolicy<br>/cx/ux show rapidrecovery<br>/cx/ux show rdcache<br>/cx/ux show rebuildstatus<br>/cx/ux show serial<br>/cx/ux show status initializestatus<br>/cx/ux show storsave<br>/cx/ux show verifystatus<br>/cx/ux show volumes<br>/cx/ux show wrcache | /cx/vx show all<br>NOTE The StorCLI does not have commands to<br>show individual virtual drive properties. |  |
| Start initialization (writing 0s) on the<br>virtual drive. | /cx/ux start verify<br>NOTE Only the bios can do a foreground<br>initialization. A background initialization does<br>otherwise. A verify starts a back ground initialization. | /cx/vx start init [Full] |  |
| Stop an ongoing initialization on the<br>virtual drive. | /cx/ux stop verify<br>NOTE Only the bios can do a foreground<br>initialization. A background initialization does<br>otherwise. A verify starts a back ground initialization | /cx/vx stop init |  |
| Show a snapshot of the ongoing<br>initialization, if any. | /cx/ux show [all]<br>NOTE Only the bios can do a foreground<br>initialization. A background initialization does<br>otherwise. A verify starts a back ground initialization | /cx/vx show init |  |
| Start a consistency check on the<br>virtual drive. | /cx/ux start verify | /cx/vx start cc |  |
| Stop a consistency check on the<br>virtual drive. | /cx/ux stop verify | /cx/vx stop cc |  |
| Reconstruct the selected virtual disk<br>to a new RAID level. | /cx/ux migrate type=\<RaidType\><br>[disk=

] [stripe=\<size\>]<br>[noscan] [nocache] [autoverify]<br>[group=<3\|4\|5\|6\|7\|8\|9\|10\|11\|12\|13\|1<br>4\|15\|16>]<br>RaidType={ raid0, raid1, raid5,<br>raid10, raid50, single, raid6 } | /cx/vx start migrate<br><type=raidlevel> [option=<add \|<br>remove> disk=<e1:s1,e2:s2 ..> ]<br>/cx/vx show migrate |  |
| Change the power-saving setting on<br>the virtual drive. | /cx/ux set powersavestandbytimer=<5<br>to 999> | /cx/vx set ds=<default \| Auto \| None<br>\| Max \| MaxNoCache> |  |
| Physical Drive Commands |  |  |  |
| Show physical disk information. | /cx/px show [all] | /cx[/ex]/sx show [all] |  |
| Start, stop, suspend, or resume an<br>ongoing rebuild operation. | /cx/ux start rebuild disk=

<br>[ignoreECC]<br>NOTE Rebuilds cannot be stopped or paused. | /cx[/ex]/sx start rebuild<br>/cx[/ex]/sx stop rebuild<br>/cx[/ex]/sx pause rebuild<br>/cx[/ex]/sx resume rebuild |  |
| Mark the configured physical disk<br>drive as missing for the selected<br>adapter. | /cx/px remove [quiet] | /cx[/ex]/sx set missing |  |
| Change the physical disk drive state<br>to offline. | /cx/px remove [quiet] | /cx[/ex]/sx set offline |  |
| Add jbod. | /cx add type=jbod disk=

<br>(where p = port or drive number) | /cx[/ex]/sx set jbod |  |
| Change the physical disk drive<br>hotspare state and associate the<br>drive to an enclosure and virtual disk. | /cx add type=spare<br>disk=

<br>(where p = port or drive number) | /cx[/ex]/sx add hotsparedrive<br>[{dgs=<N\|0,1.2...n,,>]<br>[EnclAffinity][nonRevertible] |  |
| Locate the physical disk drive and<br>activate the physical disk activity LED. | /cx/px set identify=on\|off | /cx[/ex]/sx start \| stop locate |  |
| Prepare the unconfigured physical<br>drive for removal. | /cx/px remove [quiet] | /cx[/ex]/sx spindown |  |
| Show information about all physical<br>disk drives and other devices<br>connected to the selected adapters;<br>includes drive type, size, serial<br>number, and firmware version. | /cx/px show [all] | /cx/eall/sall show [all] |  |
| Download drive or expander<br>firmware. | /cx/px update fw=image.name [force] | /cx[/ex]/sx download src=filepath<br>[satabridge] |  |
| Enclosure Commands |  |  |  |
| Show information about the<br>enclosure for the selected adapter | /cx/ex show [all] | /cx/ex show [all] |  |
| Show the status of the enclosure<br>connected to the selected adapter. | /cx/ex show [all]<br>/cx/ex show controllers<br>/cx/ex show slots<br>/cx/ex show fans<br>/cx/ex show temp<br>/cx/ex show pwrs<br>/cx/ex show alms | /cx/ex show status |  |
| Download enclosure firmware. | /cx/ex update fw=image.name [force] | /cx/ex download src=filepath<br>[offline] [forceActivate |  |
| Events and Logs |  |  |  |
| Show the total number of events,<br>newest and oldest sequence number,<br>shutdown sequence number, reboot<br>sequence number, clear sequence<br>number, and 10 (TBD) most recent<br>events. | /cx show alarms<br>NOTE This command shows AENs since last<br>controller reset. | /cx show eventloginfo |  |
| Show the total event entries available<br>at the firmware since last clear, and<br>details of each entries of error log. | /cx show alarms<br>NOTE This command shows AENs since last<br>controller reset. | /cx show events filter=<Info \|<br>warning\| critical\| fatal ><br>file=<path of the file> |  |
| Show the count of events starting<br>from specified seqNum and<br>matching category and severity | /cx show alarms<br>NOTE This command shows AENs since last<br>controller reset. | /cx show events type=<sinceShutDown<br>\| sinceReboot \|ccincon vd=<0,1,2…><br>\| includeDeleted \| latest=x<br>filter=<Info \| warning\| critical\|<br>fatal > file=<path of the file> |  |
| Show TTY firmware terminal log<br>entries with details on given<br>adapters. The information is shown as<br>total number of entries available on<br>the firmware side. | /cx show diag | /cx show TermLog<br>[type=contents\|Config] |  |
| Miscellaneous Commands |  |  |  |
| Show help for all show commands at<br>server level. | tw_cli ?<br>tw_cli /cx ?<br>tw_cli /cx/ux ?<br>tw_cli /cx/px ?<br>tw_cli /cx/phyx ?<br>tw_cli /cx/bbu ?<br>tw_cli /cx/ex ?<br>tw_cli /ex<br>NOTE 3 Ware CLI shows context sensitive help | show help |  |
| Show PHY connection information<br>for physical PHY medium on the<br>adapters. | /cx/phyx show | /cx/px show |  |
| Set PHY link speed. | /cx/phyx set link=<auto\|1.5\|3.0\|6.0> | /cx/px set<br>linkspeed=1.5\|3\|6\|12\|auto |  |

\</default\></e1:s1,e2:s2>\</add\></type=raidlevel></size\>

</raidtype\></on|off\></on|off\></on|off\></value\></value\></value\></on|off\></value\></value\></on|off\></value\></on|off\></value\></on|off\></value\></on|off\></on|off\></on|off\></value\></value\></value\></value\></value\></enable|disable\></smartssd|smarthdd|all\></on|off\></value\></value\></value\></value\></on|off\></on|off\></value\></on|off\></value\></on|off\></value\></on|off\></on|off\></adaptive|lowlatency\></value\></value\></enable|disable\></adaptive|lowlatency\></enable|disable|\></cacheoff|follow\></on|off\></on|off\>

</on|off\></on|off\></on|off\></on|off\></on|off\></value\></value\></value\></on|off\></value\></value\></on|off\></value\></on|off\></value\></on|off\></value\></on|off\></on|off\></on|off\></value\></value\></value\></value\></value\></enable|disable\></smartssd|smarthdd|all\></on|off\></value\></value\></value\></value\></on|off\></on|off\></value\></on|off\></value\></on|off\></value\></on|off\></on|off\></inst|ra|ext\></propertyname\>\</key\>\</key\></filename\></filename\></on|off|silence\>\</on\></val\></val\></filepath\></filepath\></filename\></n|0,1,2..></value\></namestring\></value\></value\></value\></filename\>
