Knowledgebase

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), LSI MegaRAID MegaCLI (Software guide 51530-00_RevO.zip or Latest Megacli download) and StorCLI ( Click here for User's Guide or StorCLI download).

 
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 storcli show ctrlcount 
Controller Commands      
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
            spinupdelay
            spinupdrivecount
            spinupencdelay
           
/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
            spinupdelay
            spinupdrivecount
            stoponerror
            time
            usefdeonlyencrypt
           
storcli /c0 show activityforlocate
                        storcli /c0 show alarm
            storcli /c0 show backplane
            storcli /c0 show batterywarning
            storcli /c0 show bgirate
            storcli /c0 show bootwithpinnedcache
            storcli /c0 show cachebypass
            storcli /c0 show cacheflushint
            storcli /c0 show cc
            storcli /c0 show ccrate
            storcli /c0 show clusterenable
            storcli /c0 show coercion
            storcli /c0 show copyback
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
 Show the status of properties related to the controllers (continued).
           
spinupencdrvcnt
            ssdsmartcpybkenbl
            usediskactivityforlocate
            usefdeonlyencrypt
None
           
Set properties on the selected
            controllers.
           
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
            spinupdelay
            spinupdrivecount
            spinupencdelay
/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>
            spinupdelay=<value>
            spinupdrivecount=<value>
            stoponerror=<on|off>
            usefdeonlyencrypt=<on|off>
            time=yyyymmdd hh:mm:ss|systemtime
            usefdeonlyencrypt=<on|off>
/c0 set abortcconerror=on
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
           
 Set properties on the selected
            controllers.
           
autocarve=<on|off>
            autodetect=<on|off >
            disk=<p:-p>|all
            autorebuild=<on|off>
            carvesize=<1024..32768>
            dpmstat=<on|off>
            ondegrade=<cacheoff|follow>
            rebuild=<enable|disable|><1..5>
            rebuildmode=<adaptive|lowlatency>
            rebuildrate=<1..5>
            selftest=<enable|disable>
            spinup=<value>
            stagger=<value>
            verify=advanced|basic|<1..5>
            verify=basic [pref=ddd:hh]where
            hh={00..23} and
            ddd={mon|tue|wed|thu|fri|sat|sun}
            verify=enable|disable|<1..5>
            verifymode=<adaptive|lowlatency>
            verifyrate=<1..5>
            spinupencdrvcnt
            sdsmartcpybkenbl
            usediskactivityforlocate
            usefdeonlyencrypt
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>
            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>
            spinupdelay=<value>
            spinupdrivecount=<value>
            stoponerror=<on|off>
            usefdeonlyencrypt=<on|off>
            time=yyyymmdd hh:mm:ss|systemtime
            usefdeonlyencrypt=<on|off>

           
Show the number of controllers
            connected.
           
MegaCLI -adpCount
           
storcli show ctrlcount storcli show ctrlcount
           
Show all information about the
            adapter, such as cluster state, BIOS,
            alarm, firmware, version, and so on.
MegaCli -AdpAllInfo
            -aN|-a0,1,2|-aALL
 storcli /cx show all storcli /c0 show all
           
Show the freespace available in the
            controller.
MegaCLI -CfgFreeSpaceinfo
            -aN|-a0,1,2|-aALL
 storcli /cx show freespace storcli /c0 show freespace 
 Download the controller firmware MegaCli -AdpFwFlash -f filename
            [-NoSigChk] [-NoVerChk]
            -aN|-a0,1,2|-aALL
storcli /cx download file=<filepath>
            [fwtype=<val>] [nosigchk] [noverchk]
storcli /c0 download file=mr2208.rom
           
 Show the preserved cache status. MegaCLI-GetPreservedCacheList
            -aN|-a0,1,2|-aALL
 storcli /cx show preservedcache storcli /c0 show preservedcache 
 Set the controller time MegaCLI –AdpSetTime yyyymmdd
            hh:mm:ss -aN|-a0,1,2|-aALL
storcli /c(x|all) set time=<yyyymmdd
            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
            type 0, 1, 5, and 6.
MegaCli –CfgLDAdd
            -R0|-R1|-R5|-R6[E0:S0,E1:S1,...]
            [WT | WB] [NORA | RA | ADRA]
            [Direct | Cached]
            [CachedBadBBU|NoCachedBadBBU]
            [-szXXXXXXXX [-szYYYYYYYY [... ]]]
            [-strpszM] [–Hsp[E5:S5,...]]
            [–afterLdX] -aN
storcli /cx add vd
            type=raid[0|1|5|6]
            [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] [nora|*ra] [*direct|cached]
            [CachedBadBBU|*NoCachedBadBBU]
            [Stripe=<8|16|32|64|128|256|512|102
            4] [AfterVd=X]
            [Spares=[e:]s|[e:]s-x|[e:]s-x,y]
            [force]
 storcli /c0 add vd type=road1 drives=252:0,252:1
            (hint:  use storcli /c0 show to view available enclosure/slot e:s drives)
           
 Create a CacheCade virtual drive MegaCLI -CfgCacheCadeAdd [-rX]
            -Physdrv[E0:S0,...] {-Name
            LdNamestring} [WT|WB|ForcedWB]
            [-assign -LX|L0,2,5..|LALL]
            -aN|-a0,1,2|-Aall
storcli /cx add VD cachecade|cc
            Type=[0,1,10]
            drives=[e:]s|[e:]s-x|[e:]s-x,y
            [ < WT| WB> ] [assignvds=0,1,2]
 storcli /c0 add vd type=road1 drives=252:2,252:3
Create a RAID configuration of RAID
            type 10, 50, and 60.
MegaCli –CfgSpanAdd
            -aN|-a0,1,2|-aALL
            -R10|-R50|R60
            –Array0[E0:S0,E1:S1,...]
            –Array1[E0:S0,E1:S1,...] [...]
            [WT | WB] [NORA | RA | ADRA]
            [Direct | Cached]
            [CachedBadBBU|NoCachedBadBBU]
            [-szXXXXXXXX [-szYYYYYYYY [... ]]]
            [-strpszM] [–afterLdX] -aN
storcli /cx add vd
            type=raid[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] [nora|*ra] [*direct|cached]
            [CachedBadBBU|*NoCachedBadBBU]
            [Stripe=<8|16|32|64|128|256|512|102
            4] [AfterVd=X]
            [Spares=[e:]s|[e:]s-x|[e:]s-x,y]
            [force]
 
 Delete a virtual drive MegaCli -CfgClr [-Force]
            -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
            the drive group
MegaCLI -CfgDsply
            -aN|-a0,1,2|-Aall
 storcli /cx/dall show [all] storcli /cx0/d0 show
           
Show information for a CacheCade
            virtual drive
MegaCLI -CfgCacheCadeDsply
            -aN|-a0,1,2|-Aall
 storcli /cx/dall show CacheCade(cc)  storcli /cx0/d0 show cc
           
Delete a virtual drive hosting the
            operating system
MegaCLI -CfgLdDel
            -LX|-L0,2,5...|-LALL [-Force]
            -aN|-a0,1,2|-aALL
 storcli /cx/vx[all] delete -force storcli /c0/v0 del -force
           
 Delete a CacheCade virtual drive MegaCLI -CfgCacheCadeDel
            -LX|-L0,2,5...|-LALL
            -aN|-a0,1,2|-Aall
storcli /cx/vx[all] delete
            CacheCade(cc)
storcli /c0/vx del cc
           
Show, delete, and import the foreign
            configuration commands.
MegaCli –CfgForeign –Scan |
            {-Preview | –Dsply| -Import |
            -Clear[FID]} -aN|-a0,1,2|-aALL"
storcli /cx/f(x|all) show [all]
            [securityKey=xxx]
            storcli /cx/f(x|all) del|delete
            [securityKey=xxx]
            storcli /cx/f(x|all) import
            [preview] [securityKey=xxx]"
storcli /c0/fall show
           
 Patrol Read Commands      
 Show the patrol read status and
            patrol read parameters, if any in
            progress.
           
MegaCli -AdpPR -info
            -aN|-a0,1,2|-aALL
 /cx show patrolRead /c0 show patrolread
           
 Set the patrol read options on a
            single adapter, multiple adapters, or
            all adapters (x = single controller).
           
MegaCli -AdpPR
            –Dsbl|EnblAuto|EnblMan|Start|Stop|
            Info|Suspend|Resume|Stop|
            SSDPatrolReadEnbl |
            SSDPatrolReadDsbl
            |{SetDelay Val}|{-SetStartTime
            yyyymmdd hh}|{maxConcurrentPD Val}
            -aN|-a0,1,2|-aALL
 /cx set patrolread {=on
            mode=<auto|manual>}|{off}
            /cx set patrolread [starttime=<
            yyyy/mm/dd hh>]
            [maxconcurrentpd=<value>]
            [includessds=<on|off>]
            [uncfgareas=on|off]
            /cx set patrolread delay=<value>
           
/c0 set patrolread mode=manual
           
 Disable patrol read.
           
MegaCli -AdpPR -Dsbl
            -aN|-a0,1,2|-aALL
 storcli /cx set patrolread=off
           
storcli /c0 set patrolread=off 
 Enable automatic patrol read. MegaCli -AdpPR -EnblAuto
            -aN|-a0,1,2|-aALL
storcli /cx set patrolread=on
            mode=auto 
storcli /cx set patrolread=off
            mode=auto
 Enable manual patrol read. MegaCli -AdpPR -EnblMan
            -aN|-a0,1,2|-aALL
storcli /cx set patrolread=on
            mode=manual 
storcli /c0 set patrolread=on
            mode=manual 
 Start patrol read. MegaCli -AdpPR -Start
            -aN|-a0,1,2|-aALL
 storcli /cx start patrolRead  storcli /c0 start patrolRead 
 Suspend a running patrol read MegaCli -AdpPR -Suspend
            -aN|-a0,1,2|-aALL
 storcli /cx suspend patrolread  storcli /c0 suspend patrolread 
 Resume a suspended patrol read MegaCli -AdpPR -Resume
            -aN|-a0,1,2|-aALL
 storcli /cx resume patrolread  storcli /c0 resume patrolread 
 Stop a running patrol read MegaCli -AdpPR -Stop
            -aN|-a0,1,2|-aALL
 storcli /cx stop patrolRead  storcli /c0 stop patrolRead 
 Include SSD drives in patrol read MegaCli -AdpPR -SSDPatrolReadEnbl
            -aN|-a0,1,2|-aALL
storcli /cx set patrolRead
            includessds=on | onlymixed 
storcli /c0 set patrolRead
            includessds=on
           
 Exclude SSD drives in patrol read  MegaCli -AdpPR -SSDPatrolReadDsbl
            -aN|-a0,1,2|-aALL
           
storcli /cx set patrolRead
            includessds=off 
storcli /c0 set patrolRead
            includessds=off
 Delay a patrol read MegaCli -AdpPR -SetDelay Val
            -aN|-a0,1,2|-aALL
storcli /cx set patrolread
            delay=<value>
            note: <value> unit of time is in hours
storcli /c0 set patrolread
            delay=1
           
 Schedule a patrol read MegaCli -AdpPR -SetStartTime
            yyyymmdd hh -aN|-a0,1,2|-aALL
storcli /cx set patrolread=on
            starttime=YYYY/MM/DD HH
 
Set the value for maximum
            concurrent physical drives for the
            patrol read.
MegaCli -AdpPR -maxConcurrentPD Val
            -aN|-a0,1,2|-aALL
storcli /cx set patrolread
            maxconcurrentpd=xx
storcli /c0 set patrolread
            maxconcurrentpd=255
           
 Consistency Check Commands      
 Schedule a consistency check MegaCLI -AdpCcSched -Dsbl|-Info|
            {-ModeConc | -ModeSeq [-ExcludeLD
            -LN|-L0,1,2] [-SetStartTime yyyymmdd
            hh ] [-SetDelay val ] }
            -aN|-a0,1,2|-aALL
storcli /cx set
            consistencycheck|cc=[off|seq|conc]
            [delay=value] starttime=yyyy/mm/dd
            hh [excludevd=x-y,z]
storcli /c0 set cc=off
           
Show consistency check status and consistency parameters, in progress,
            if any.
 MegaCLI -AdpCcSched -Info  storcli /cx show cc/ConsistencyCheck  storcli /c0 show cc
           
 OPROM BIOS Commands      
 Schedule a consistency check MegaCli -AdpBIOS -Dsply
            -aN|-a0,1,2|-aALL
 storcli /cx show bios  storcli /c0 show bios
           
Show consistency check status and
            consistency parameters, if any in
            progress.
MegaCli -AdpBootDrive -{-Set {-Lx |
            -physdrv[E0:S0]}} -aN|-a0,1,2|-aALL
 storcli /cx/ex/sx set
            bootdrive=on|off
            storcli /cx/vx set bootdrive=on|off
           
storcli /c0/v0 set bootdrive=on
           
Sets the BIOS properties for the
            controller.
MegaCli -AdpBIOS -Enbl | -Dsbl |
            -Dsply | SOE | BE
            EnblAutoSelectBootLd |
            DsblAutoSelectBootLd
            -aN|-a0,1,2|-aALL
storcli /cx set bios=<on|off>
            storcli /cx set
            stoponerror|soe=<on|off>
            storcli /cx set
            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
            storcli /cx/bbu show all
storcli /c0/bbu show
           
 Show the battery learn properties MegaCli -AdpBbuCmd -GetBbuProperties
            -aN|-a0,1,2|-aALL
 storcli /cx/bbu show properties  storcli /c0/bbu show properties
Show the battery information,
            firmware status, and the gas gauge
            status.
MegaCli -AdpBbuCmd -GetBbuStatus
            -aN|-a0,1,2|-aALL
 storcli /cx/bbu show status storcli /c0/bbu show status
           
 Show battery capacity information MegaCli -AdpBbuCmd
            -GetBbuCapacityInfo
            -aN|-a0,1,2|-aALL
 storcli /cx/bbu show all storcli /c0/bbu show all 
 Show battery design information MegaCli -AdpBbuCmd -GetBbuDesignInfo
            -aN|-a0,1,2|-aALL
storcli /cx/bbu show all  storcli /c0/bbu show all
           
 Set battery properties MegaCli -AdpBbuCmd -SetBbuProperties
            -f <fileName> -aN|-a0,1,2|-aALL
storcli /cx/bbu set
            learnDelayInterval=<value>
            storcli /cx/bbu set bbuMode=<value>
            storcli /cx bbu set
            autolearnmode=<value>,
            where x= 0 – Enabled, 1 – Disabled, 2 – Warn though
            event.
storcli /c0/bbu set bbumode=5
           
 Start battery learn cycle MegaCli -AdpBbuCmd -BbuLearn
            -aN|-a0,1,2|-aALL
 storcli /cx/bbu start learn  storcli /co/bbu start learn
Set the battery to low power storage
            mode.
MegaCli -AdpBbuCmd -BbuMfgSleep
            -aN|-a0,1,2|-aALL
storcli /cx/bbu set powermode=sleep 
           
Seal the gas gauge EEPROM write
            access
MegaCli -AdpBbuCmd -BbuMfgSeal
            -aN|-a0,1,2|-aALL
storcli /cx/bbu set
            writeaccess=sealed 

           
 Security Commands    
           
 Set the key ID for the controller. MegaCli -CreateSecurityKey
            -SecurityKey sssssssssss |
            [-Passphrase sssssssssss] |
            [-KeyID kkkkkkkkkkk] -aN
storcli /cx set SecurityKey=XXXXXX
            [passphrase=yyyyy] [keyId=zzzz] 

           
Change the security key for the
            controller.
MegaCli -ChangeSecurityKey
            -OldSecurityKey sssssssssss |
            -SecurityKey sssssssssss|
            [-Passphrase sssssssssss] |
            [-KeyID kkkkkkkkkkk] -aN
storcli /cx set SecurityKey=XXXXXX
            OldSecurityKey=yyyyy 

           
Compare and verify the security key
            for the controller
Compare and verify the security key
            for the controller
Compare and verify the security key
            for the controller 

           
 Delete the security key MegaCLI -DestroySecurityKey |
            [-Force] -aN
 storcli /cx delete SecurityKey  
 Set the security key for the controller MegaCli -SetKeyID -KeyID kkkkkkkkkkk
            -aN
storcli /cx set SecurityKey
            KeyId=xxxx 

           
Virtual Drive Commands      
Show the virtual drive information  MegaCli –LDInfo –Lx|-L0,1,2|-Lall
            -aN|-a0,1,2|-aALL
storcli /cx/v(x|all) show
            storcli /cx/v(x|all) show all
 
Set virtual drive properties
            MegaCli –LDSetProp WT | WB|NORA |RA
            | ADRA|-Cached|Direct|
            CachedBadBBU|NoCachedBadBBU} |
            -RW|RO|Blocked |
            {-Name nameString} |
            -EnDskCache|DisDskCache –Lx|
            -L0,1,2|-Lall -aN|-a0,1,2|-aALL
storcli /cx/v(x|all) set
            wrcache=WT|WB|AWB
            storcli /cx/v(x|all) set
            rdcache=RA|NoRA
            storcli /cx/v(x|all) set
            iopolicy=Cached|Direct
            storcli /cx/v(x|all) set
            accesspolicy=RW|RO|Blocked|RmvBlkd
            storcli /cx/v(x|all) set
            pdcache=On|Off|Default
            storcli /cx/v(x|all) set
            name=<NameString>
            "
 
Set power-saving (dimmer switch)
            properties.
MegaCli -LDSetPowerPolicy -Default|
            -Automatic| -None| -Maximum|
            -MaximumWithoutCaching
            -Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALL
storcli /cx/v(x|all) set
            ds=Default|Auto|None|Max|MaxNoCache
 
Show virtual drive expansion
            information
MegaCli -getLdExpansionInfo
            -Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALL
 storcli /cx/v(x|all) show expansion  
Expand the virtual drive within the
            existing array; also use if you replace
            the drives with larger drives, beyond
            the size of the existing array.
MegaCli -LdExpansion -pN
            -dontExpandArray -Lx|-L0,1,2|-Lall
            -aN|-a0,1,2|-aALL
storcli /cx/v(x|all) expand
            Size=<value> [expandarray]
 
 Secure the virtual drive. MegaCLI --LDMakeSecure
            -Lx|-L0,1,2,...|-Lall –An
 storcli /cx/vx set security=on  
Show specific properties of virtual
            drives.
MegaCli –LDGetProp -Cache | -Access
            | -Name | -DskCache
            -Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALL
storcli /cx/vx show  
Start virtual drive initialization MegaCli –LDInit –Start [Fast|Full]
            -Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALL
storcli /cx/v(x|all) start
            init[Full]
 
Stop a running virtual drive
            initialization.
MegaCli –LDInit -Abort
            -Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALL
 storcli /cx/v(x|all) stop init  
 Show the initialization progress MegaCli –LDInit –ShowProg
            -Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALL
 storcli /cx/v(x|all) show init  
Start a consistency check on an
            uninitialized virtual drive
MegaCli –LDCC –Start
            –Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALL
 storcli /cx/v(x|all) start cc[Force]  
Start, stop, suspend, resume, and
            show the progress of a consistency
            check operation
MegaCli -LDCC -Start|-Abort|
            -Suspend|-Resume|-ShowProg|
            -ProgDsply -Lx|-L0,1,2|-LALL
            -aN|-a0,1,2|-aALL
storcli /cx/v(x|all) start cc
            storcli /cx/v(x|all) stop cc
            storcli /cx/v(x|all) pause cc
            storcli /cx/v(x|all) resume cc
            storcli /cx/v(x|all) show cc
 
Enable/disable automatic
            background initialization. Show, stop,
            pause, resume, and show the
            progress of the background
            initialization.
MegaCLI -LDBI -Enbl|-Dsbl|
            -getSetting|-Abort|-Suspend|
            -Resume|-ShowProg|-ProgDsply
            -Lx|-L0,1,2|-LALL -aN|-a0,1,2|-Aall
storcli /cx/v(x|all) set
            autobgi=On|Off
            storcli /cx/v(x|all) show autobgi
            storcli /cx/v(x|all) stop bgi
            storcli /cx/v(x|all) pause bgi
            storcli /cx/v(x|all) resume bgi
            storcli /cx/v(x|all) show bgi
 
Start and show progress for a migrate
            operation.
MegaCli –LDRecon {–Start –Rx [Add
            | Rmv PhysDrv[E0:S0,E1:S1,...] ] }
            | –ShowProg|-ProgDsply –Lx –aN
storcli /cx/vx start migrate
            type=raidx [option=add|remove
            drives=[e:]s|[e:]s-x|[e:]s-x,y]
            [Force]
            storcli /cx/v(x|all) show migrate
 
 Delete preserved cache MegaCLI -DiscardPreservedCache
            -Lx|-L0,1,2|-Lall -force
            -aN|-a0,1,2|-aALL
storcli /cx/v(x|all) delete
            preservedcache[force]
 
 Assign the CacheCade virtual drive MegaCLI -Cachecade -assign|-remove
            -Lx|-L0,1,2|-LALL -aN|-a0,1,2|-aALL
storcli /cx/vx|all set
            ssdCaching=on|off
 Physical Drive Commands
           
   
 Show drive information MegaCli -pdInfo -
            PhysDrv[E0:S0,E1:S1,...]
            -aN|-a0,1,2|-aALL
storcli /cx/ex/sx show
            storcli /cx/ex/sx show all
 
Start, stop, suspend, or resume an
            ongoing rebuild operation.
MegaCLI PDRbld -Start|-Stop
            |-Suspend|-Resume|-ShowProg
            |-ProgDsply -PhysDrv
            [E0:S0,E1:S1,...]
            -aN|-a0,1,2|-aALL
storcli /cx/ex/sx start rebuild
            storcli /cx/ex/sx stop rebuild
            storcli /cx/ex/sx pause rebuild
            storcli /cx/ex/sx resume rebuild
            storcli /cx/ex/sx show rebuild
 
Start, stop, pause, resume, or show
            the progress of a copyback operation
           
MegaCLI PDCpyBk -Start|-Stop
            |-Suspend|-Resume|-ShowProg
            |-ProgDsply -PhysDrv
            [E0:S0,E1:S1,...]
            -aN|-a0,1,2|-aALL
storcli /cx/ex/sx start copyback
            target=exx:sxx
            storcli /cx/ex/sx stop copyback
            storcli /cx/ex/sx pause copyback
            storcli /cx/ex/sx resume copyback
            storcli /cx/ex/sx show copyback
 
Mark a drive as missing MegaCli -PdMarkMissing
            -physdrv[E0:S0,E1:S1,...]
            -aN|-a0,1,2|-aALL
 storcli /cx/ex/sx set missing  
 Show missing drive information MegaCli -PdGetMissing
            -aN|-a0,1,2|-aALL
storcli /cx/ex/sx show all
            NOTE This information is shown as part of the show all
            command.
           
 
Replace the configured drive that is
            identified as missing, and then start
            an automatic rebuild.
MegaCli -PdReplaceMissing
            -physdrv[E0:S0] -arrayA, -rowB
            -aN
 storcli /cx/ex/sx insert array=x row=y  
Set the drive state to online MegaCli –PDOnline -
            PhysDrv[E0:S0,E1:S1....]
            -aN|-a0,1,2
 storcli /cx/ex/sx set online  
Set the drive state to offline MegaCli –PDOffline
            -PhysDrv[E0:S0,E1:S1....]
            -aN|-a0,1,2|-aALL
 storcli /cx/ex/sx set offline  
Set the drive state to JBOD MegaCli –PDMakeGood
            -PhysDrv[E0:S0,E1:S1....]
            -aN|-a0,1,2|-aALL
storcli /cx/ex/sx set good [force]
            or
            storcli /cx/ex/sx set jbod
 
 Add and delete hotspare drives MegaCli –PDHSP {–Set
            [{-Dedicated -ArrayN |
            -Array0,1...}] [-EnclAffinity]
            [-nonRevertible] } |
            -Rmv -PhysDrv[E0:S0,E1:S1,...]
            -aN|-a0,1,2|-aALL
storcli /cx/ex/sx add hotsparedrive
            [dgs=<N|0,1,2..>] enclaffinity
            nonrevertible
            storcli /cx/ex/sx delete hotsparedrive
Start, stop, pause, resume or show
            the progress of an initialization
            process.
MegaCli –PDClear -Start |-Stop|
            -ShowProg |-ProgDsply
            - PhysDrv[E0:S0,E1:S1....]
            -aN|-a0,1,2|-aALL
storcli /cx/ex/sx start initialization
            storcli /cx/ex/sx stop initialization
            storcli /cx/ex/sx pause initialization
            storcli /cx/ex/sx resume initialization
            storcli /cx/ex/sx show initialization
 
Start a drive locate and activate (blink) the
            drive’s LED or stop a drive locate (LED blinking) and
            deactivate the drive’s LED
MegaCli –PDLocate {[-start] |
            -stop} -physdrv[E0:S0,E1:S1,...]
            -aN|-a0,1,2|-aALL
storcli /cx/ex/sx start locate
            storcli /cx/ex/sx stop locate
 
Spin down an unconfigured drive
            and prepare it for removal or spin up
            spun-down drive and mark the drive
            state as unconfigured good.
MegaCli –PDPrpRmv [-Undo]
            – PhysDrv[E0:S0,E1:S1....]
            -aN|-a0,1,2|-aALL
storcli /cx/ex/sx spindown
            storcli /cx/ex/sx spinup
 
Show physical drive information of all
            connected drives.
MegaCli –PDList
            -aN|-a0,1..|-aAll
storcli /cx/eall/sall show [all]
            NOTE This command does not show drives whose enclosure device ID is not available.
 
 Flash the physical drive firmware MegaCLI PdFwDownload[offline]
            [ForceActivate] {[-SataBridge]
            -PhysDrv[0:1]}|{-EncdevId[devId1
            ]} -f <filename>
            -aN|-a0,1,2|-Aall
storcli /cx[/ex]/sx download
            src=<filepath> [satabridge]
            storcli /cx/ex download src=<filepath>
            [forceActivate]
 
Erase the drive's security
            configuration and securely erase data on a drive.
MegaCli -PDInstantSecureErase
            -PhysDrv[E0:S0,E1:S1,...] |
            [-Force] -aN|-a0,1,2|-aALL
 storcli /cx/ex/sx secureerase [force]  
Show the security key for secured physical drives MegaCli -GetKeyID
            [-PhysDrv[E0:S0]] -aN
storcli /cx/ex/sx show securitykey
            keyid
 
Start, stop, and show the progress of
            a secure erase operation
MegaCli -SecureErase Start[
            Simple|
            [Normal [ |ErasePattern
            ErasePatternA|ErasePattern
            ErasePatternA ErasePattern
            ErasePatternB]]|[Thorough [
            |ErasePattern
            ErasePatternA|ErasePattern
            ErasePatternA ErasePattern
            ErasePatternB]]]
            | Stop| ShowProg| ProgDsply
            [-PhysDrv [E0:S0,E1:S1,...] |
            -Lx|-L0,1,2|-LALL]
            -aN|-a0,1,2|-aALL
storcli /cx[/ex]/sx start erase
            [simple| normal| thorough]
            [erasepatternA=<val>]\n[erasepatternB=<
            val>]
            Examples:
            storcli /cx/ex/sx start erase simple
            storcli /cx/ex/sx start erase normal
            erasepatterna=10101010
            storcli /cx/ex/sx start erase thorough
            erasepatterna=10101010
            erasepatternb=10101111
            storcli /cx/ex/sx stop erase
 
Enable/disable the direct physical
            drive mapping mode.
            Show the current state of the direct physical drive mapping.
MegaCLI DirectPdMapping
            -Enbl|-Dsbl|-Dsply
            -aN|-a0,1,2|-Aall
storcli /cx set directpdmapping=<on |
            off>
            storcli /cx show directpdmapping
 
 Enclosure Commands      
Show enclosure information  MegaCli –EncInfo
            -aN|-a0,1,2|-aALL
storcli /cx/ex show
            storcli /cx/ex show all
 
Show enclosure status MegaCli –EncStatus
            -aN|-a0,1,2|-aALL
 /cx/ex show status  
Download enclosure firmware.   /cx/ex download src=filepath
            [offline] [forceActivate
 
 PHY Commands      
 Show PHY information MegaCli –PHYInfo -phyM
            -aN|-a0,1,2|-aALL
storcli /cx/px(x|all) show
            storcli /cx/px(x|all) show all
 
 Set PHY link speed MegaCLI PhySetLinkSpeed -phyM
            -speed -aN|-a0,1,2|-aALL
storcli /cx/px(x|all) set
            linkspeed=1.5|3|6|12|auto
 
 Show the PHY error counters.  Megacli PhyErrorCounters -An storcli /cx/px(x|all) show
            storcli /cx/px(x|all) show all
 
 Alarm Commands      
 Show alarm properties MegaCli -AdpGetProp AlarmDsply
            -aN|-a0,1,2|-aALL
 storcli /cx(x|all) show alarm  
 Set alarm properties MegaCli -AdpSetProp AlarmEnbl |
            AlarmDsbl | AlarmSilence
            -aN|-a0,1,2|-aALL
storcli /cx(x|all) set
            alarm=<on|off|silence>
 
 Event Log Properties Commands      
Show event logs. MegaCli -AdpEventLog
            -GetEventLogInfo
            -aN|-a0,1,2|-aALL
 /cx show eventloginfo  
Show the specified type of event
            logs.
MegaCli -AdpEventLog -GetEvents
            {-info -warning -critical
            -fatal} {-f <fileName>}
            -aN|-a0,1,2|-aALL
storcli /cx show events
            [type=[latest=x|ccincon
            vd=|[sincereboot|sinceshutdown|included
            eleted|latest|ccincon]]]
            [filter=[info|warning|critical|fatal]]
            file=xyz.txt
 
Show the specified event logs MegaCli -AdpEventLog
            -GetSinceShutdown {-info
            -warning -critical -fatal}
            {-f <fileName>}
            -aN|-a0,1,2|-aALL
storcli /cx show events
            [type=[latest=x|ccincon
            vd=|[sincereboot|sinceshutdown|included
            eleted|latest|ccincon]]]
            [filter=[info|warning|critical|fatal]]
            file=xyz.txt
 
 Delete the event logs. MegaCli -AdpEventLog -Clear
            -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
            Options that are enabled on the
            controller, including the ones in trial mode.
MegaCli -ELF –ControllerFeatures
            -a0
MegaCli -ELF –ControllerFeatures
            -a0
 
Apply the Activation Key in preview mode. MegaCli -ELF -Applykey key –val
            -preview -a0
storcli /cx(x|all) set aso key=<key
            value> preview
 
 Apply the Activation Key MegaCli -ELF -Applykey key –val
            -a0
storcli /cx(x|all) set aso key=<key
            value>
 
 Deactivate the trial key MegaCli -ELF
            –DeactivateTrialKey -a0
storcli /cx(x|all) set aso
            deactivatetrialkey
 
Show the re-host information and, if re-hosting is necessary, show the controller and key vault serial
            numbers.
 MegaCli -ELF -ReHostInfo -a0  storcli /cx(x|all) show rehostinfo  
Indicate to the controller that the
            re-host is complete
 MegaCli -ELF -ReHostComplete -a0 storcli /cx(x|all) set aso
            rehostcomplete
 



 

 
3ware CLI Commands to StorCLI Command Conversion


                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             &nnbsp;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
 Description 3ware CLI Command StorCLI Command Real StorCLI Example
 System Commands
           
     
Show general summary of all
            detected controllers.
           
 tw_cli show show
            show ctrlcount
           
 
Controller Commands      
Show all information about the
            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
            compatible controllers that can be
            flashed with the image. By default,
            CLI checks for signature and version.
           
/cx update fw=filename_with_path
            [force]
/cx download src=filepath [nosigchk]
            [noverchk]
 
Show the status of properties related
            to the Controllers.
           
/cx show <PropertyName>
            The following properties can be used with this command:
            a0,1,2|-aALL
            achip
            AENs [reverse]
            alarms [reverse]
            allunitstatus
            autocarve
            autorebuild
            bios
            carvesize
            ctlbus diag
            dpmstat [type=<inst|ra|ext>
            driver
            drivestatus
            events [reverse]
            exportjbod firmware
            memory
            model
            monitor
            numdrives
            numports
            numunits
            ondegrade
            pcb
            pchip
            phy
            rebuild
            rebuildmode
            rebuildrate
            selftest
            serial
            spinup
            stagger
            unitstatus
            verify
            verifymode
            verifyrate
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>
            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>
            spinupdelay=<value>
            spinupdrivecount=<value>
            stoponerror=<on|off>
            usefdeonlyencrypt=<on|off>
            time=yyyymmdd hh:mm:ss|systemtime
            usefdeonlyencrypt=<on|off>
 
 Set properties on the selected
            controllers.
           
autocarve=<on|off>
            autodetect=<on|off >
            disk=<p:-p>|all
            autorebuild=<on|off>
            carvesize=<1024..32768>
            dpmstat=<on|off>
            ondegrade=<cacheoff|follow>
            rebuild=<enable|disable|><1..5>
            rebuildmode=<adaptive|lowlatency>
            rebuildrate=<1..5>
            selftest=<enable|disable>
            spinup=<value>
            stagger=<value>
            verify=advanced|basic|<1..5>
            verify=basic [pref=ddd:hh]where
            hh={00..23} and
            ddd={mon|tue|wed|thu|fri|sat|sun}
            verify=enable|disable|<1..5>
            verifymode=<adaptive|lowlatency>
            verifyrate=<1..5>
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>
            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>
            spinupdelay=<value>
            spinupdrivecount=<value>
            stoponerror=<on|off>
            usefdeonlyencrypt=<on|off>
            time=yyyymmdd hh:mm:ss|systemtime
            usefdeonlyencrypt=<on|off>
 
 Set properties on the selected
            controllers.
           
autocarve=<on|off>
            autodetect=<on|off >
            disk=<p:-p>|all
            autorebuild=<on|off>
            carvesize=<1024..32768>
            dpmstat=<on|off>
            ondegrade=<cacheoff|follow>
            rebuild=<enable|disable|><1..5>
            rebuildmode=<adaptive|lowlatency>
            rebuildrate=<1..5>
            selftest=<enable|disable>
            spinup=<value>
            stagger=<value>
            verify=advanced|basic|<1..5>
            verify=basic [pref=ddd:hh]where
            hh={00..23} and
            ddd={mon|tue|wed|thu|fri|sat|sun}
            verify=enable|disable|<1..5>
            verifymode=<adaptive|lowlatency>
            verifyrate=<1..5>
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>
            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>
            spinupdelay=<value>
            spinupdrivecount=<value>
            stoponerror=<on|off>
            usefdeonlyencrypt=<on|off>
            time=yyyymmdd hh:mm:ss|systemtime
            usefdeonlyencrypt=<on|off>
 
 Alarm Commands
           
     
 Set alarm properties.
           
/cx/ex/almx set
            alarm=<mute|unmute|off>
            NOTE The 3ware controllers have enclosure alarms.
/cx set alarm=<on|off|silence>
            NOTE The StorCLI controllers have controller alarms
 
Show alarm properties.
           
/cx/ex show alarms
            NOTE This command applies for only 9750 and
            9690SA controllers.
 /cx show alarm  
 Patrol Read and Consistency Check Commands      
 Show patrol read status and patrol
            read parameters, if any in progress.
           
 /cx/ux show  /cx show patrolRead  
 Set the patrol read options on a
            single adapter, multiple adapters, or
            all adapters (x = single controller).
           
/cx/ux start verify
            /cx/ux set autoverify=<on|off>
&nbsnbsp;           /cx add verify=dddh:hh:duration
 /cx set patrolread {=on
            mode=<auto|manual>}|{off}
            /cx set patrolread [starttime=<
            yyyy/mm/dd hh>]
            [maxconcurrentpd=<value>]
            [includessds=<on|off>]
            [uncfgareas=on|off]
            /cx set patrolread delay=<value>
           
 
 /cx set patrolread {=on
            mode=<auto|manual>}|{off}
            /cx set patrolread [starttime=<
            yyyy/mm/dd hh>]
            [maxconcurrentpd=<value>]
            [includessds=<on|off>]
            [uncfgareas=on|off]
            /cx set patrolread delay=<value>
           
 /cx/ux show  /cx/vx show cc
            /cx show ccrate
           
 
 Set consistency check options on a
            single adapter, multiple adapters, or
            all adapters (x = single controller).
           
/cx/ux start verify
            /cx/ux set autoverify=<on|off>
            /cx add verify=ddd:hh:duration
 storcli /cx set
            consistencycheck|cc=[off|seq|conc]
            [delay=value]
            [starttime=yyyy/mm/dd hh]
            [excludevd=x-y,z]
           
 
 BBU Commands
           
   
           
 
Show complete BBU information,
            such as status, capacity information,
            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
            /cx/bbu show bootloader
            /cx/bbu show fw
            /cx/bbu show lasttest
            /cx/bbu show pcb
            /cx/bbu show serial
            /cx/bbu show status
            /cx/bbu show temp
            /cx/bbu show tempstat
            /cx/bbu show tempval
            /cx/bbu show volt
/cx/bbu show properties
            /cx/bbu show status
            NOTE Not all the properties shown in the 3Ware CLI
            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
            virtual drive.
/cx/ux show [all]
            /cx/ux show autoverify
            /cx/ux show cache
            /cx/ux show identify
            /cx/ux show ignoreECC
            /cx/ux show name
            /cx/ux show parit
            /cx/ux show qpolicy
            /cx/ux show rapidrecovery
            /cx/ux show rdcache
            /cx/ux show rebuildstatus
            /cx/ux show serial
            /cx/ux show status initializestatus
            /cx/ux show storsave
            /cx/ux show verifystatus
            /cx/ux show volumes
            /cx/ux show wrcache
/cx/vx show all
            NOTE The StorCLI does not have commands to
            show individual virtual drive properties.
 
Start initialization (writing 0s) on the
            virtual drive.
/cx/ux start verify
            NOTE Only the bios can do a foreground
            initialization. A background initialization does
            otherwise. A verify starts a back ground initialization.
 /cx/vx start init [Full]  
Stop an ongoing initialization on the
            virtual drive.
/cx/ux stop verify
            NOTE Only the bios can do a foreground
            initialization. A background initialization does
            otherwise. A verify starts a back ground initialization
 /cx/vx stop init  
Show a snapshot of the ongoing
            initialization, if any.
/cx/ux show [all]
            NOTE Only the bios can do a foreground
            initialization. A background initialization does
            otherwise. A verify starts a back ground initialization
 /cx/vx show init  
Start a consistency check on the
            virtual drive.
 /cx/ux start verify  /cx/vx start cc  
 Stop a consistency check on the
            virtual drive.
 /cx/ux stop verify  /cx/vx stop cc  
Reconstruct the selected virtual disk
            to a new RAID level.
/cx/ux migrate type=<RaidType>
            [disk=<p:-p..>] [stripe=<size>]
            [noscan] [nocache] [autoverify]
            [group=<3|4|5|6|7|8|9|10|11|12|13|1
            4|15|16>]
            RaidType={ raid0, raid1, raid5,
            raid10, raid50, single, raid6 }
/cx/vx start migrate
            <type=raidlevel> [option=<add |
            remove> disk=<e1:s1,e2:s2 ..> ]
            /cx/vx show migrate
 
Change the power-saving setting on
            the virtual drive.
/cx/ux set powersavestandbytimer=<5
            to 999>
/cx/vx set ds=<default | Auto | None
            | Max | MaxNoCache>
 
 Physical Drive Commands
           
   
 Show physical disk information.  /cx/px show [all]  /cx[/ex]/sx show [all]  
Start, stop, suspend, or resume an
            ongoing rebuild operation.
/cx/ux start rebuild disk=<p:-p...>
            [ignoreECC]
            NOTE Rebuilds cannot be stopped or paused.
/cx[/ex]/sx start rebuild
            /cx[/ex]/sx stop rebuild
            /cx[/ex]/sx pause rebuild
            /cx[/ex]/sx resume rebuild
 
Mark the configured physical disk
            drive as missing for the selected
            adapter.
           
 /cx/px remove [quiet]  /cx[/ex]/sx set missing  
Change the physical disk drive state
            to offline.
 /cx/px remove [quiet]  /cx[/ex]/sx set offline  
 Add jbod. /cx add type=jbod disk=<p>
            (where p = port or drive number)
/cx[/ex]/sx set jbod
           
 
Change the physical disk drive
            hotspare state and associate the
            drive to an enclosure and virtual disk.
/cx add type=spare
            disk=<p:p|p-p|p:p-p>
            (where p = port or drive number)
/cx[/ex]/sx add hotsparedrive
            [{dgs=<N|0,1.2...n,,>]
            [EnclAffinity][nonRevertible]
 
Locate the physical disk drive and
            activate the physical disk activity LED.
 /cx/px set identify=on|off  /cx[/ex]/sx start | stop locate  
Prepare the unconfigured physical
            drive for removal.
 /cx/px remove [quiet]  /cx[/ex]/sx spindown  
Show information about all physical
            disk drives and other devices
            connected to the selected adapters;
            includes drive type, size, serial
            number, and firmware version.
 /cx/px show [all]  /cx/eall/sall show [all]  
Download drive or expander
            firmware.
 /cx/px update fw=image.name [force] /cx[/ex]/sx download src=filepath
            [satabridge]
 
 Enclosure Commands      
Show information about the
            enclosure for the selected adapter
 /cx/ex show [all]  /cx/ex show [all]  
Show the status of the enclosure
            connected to the selected adapter.
/cx/ex show [all]
            /cx/ex show controllers
            /cx/ex show slots
            /cx/ex show fans
            /cx/ex show temp
            /cx/ex show pwrs
            /cx/ex show alms
 /cx/ex show status  
Download enclosure firmware.  /cx/ex update fw=image.name [force] /cx/ex download src=filepath
            [offline] [forceActivate
 
 Events and Logs      
Show the total number of events,
            newest and oldest sequence number,
            shutdown sequence number, reboot
            sequence number, clear sequence
            number, and 10 (TBD) most recent
            events.
/cx show alarms
            NOTE This command shows AENs since last
            controller reset.
 /cx show eventloginfo  
Show the total event entries available
            at the firmware since last clear, and
            details of each entries of error log.
/cx show alarms
            NOTE This command shows AENs since last
            controller reset.
/cx show events filter=<Info |
            warning| critical| fatal >
            file=<path of the file>
 
Show the count of events starting
            from specified seqNum and
            matching category and severity
/cx show alarms
            NOTE This command shows AENs since last
            controller reset.
/cx show events type=<sinceShutDown
            | sinceReboot |ccincon vd=<0,1,2…>
            | includeDeleted | latest=x
            filter=<Info | warning| critical|
            fatal > file=<path of the file>
 
 Show TTY firmware terminal log
            entries with details on given
            adapters. The information is shown as
            total number of entries available on
            the firmware side.
           
 /cx show diag /cx show TermLog
            [type=contents|Config]
 
Miscellaneous Commands
           
     
Show help for all show commands at
            server level.
tw_cli ?
            tw_cli /cx ?
            tw_cli /cx/ux ?
            tw_cli /cx/px ?
            tw_cli /cx/phyx ?
            tw_cli /cx/bbu ?
            tw_cli /cx/ex ?
            tw_cli /ex
            NOTE 3 Ware CLI shows context sensitive help
 show help  
Show PHY connection information
            for physical PHY medium on the
            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
            linkspeed=1.5|3|6|12|auto
 

 

Data Categories:

None

Supporting Documents:

None