LSI MegaCLi (preboot CLi),StoreCLi, MegaSCU, MegaREC, SAS2flash and MegaOEM commands

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

mobilenvidia

Moderator
Sep 25, 2011
1,956
212
63
New Zealand
Utilites Download

DOS
Put on Bootable DOS USB or CD

Windows
Run 'Command' prompt in Adminstrator mode and then run the utilities




MegaCLI SAS RAID Management Tool Ver 8.07.07 Dec 19, 2012

(c)Copyright 2011, LSI Corporation, All Rights Reserved.


NOTE: The following options may be given at the end of any command below:

[-Silent] [-AppLogFile filename] [-NoLog] [-page[N]]
[-] is optional.
N - Number of lines per page.

MegaCli -v
MegaCli -help|-h|?
MegaCli -adpCount
MegaCli -AdpSetProp {CacheFlushInterval -val} | { RebuildRate -val}
| {PatrolReadRate -val} | {BgiRate -val} | {CCRate -val} | {ForceSGPIO -val}
| {ReconRate -val} | {SpinupDriveCount -val} | {SpinupDelay -val}
| {CoercionMode -val} | {ClusterEnable -val} | {PredFailPollInterval -val}
| {BatWarnDsbl -val} | {EccBucketSize -val} | {EccBucketLeakRate -val}
| {AbortCCOnError -val} | AlarmEnbl | AlarmDsbl | AlarmSilence
| {SMARTCpyBkEnbl -val} | {SSDSMARTCpyBkEnbl -val} | NCQEnbl | NCQDsbl
| {MaintainPdFailHistoryEnbl -val} | {RstrHotSpareOnInsert -val}
| {DisableOCR -val} | {BootWithPinnedCache -val} | {enblPI -val} |{PreventPIImport -val}
| AutoEnhancedImportEnbl | AutoEnhancedImportDsbl
| {EnblSpinDownUnConfigDrvs -val}|{UseDiskActivityforLocate -val} -aN|-a0,1,2|-aALL
| {ExposeEnclDevicesEnbl -val} | {SpinDownTime -val}
| {SpinUpEncDrvCnt -val} | {SpinUpEncDelay -val} | {Perfmode -val} -aN|-a0,1,2|-aALL
| {PerfMode -val –MaxFlushLines -val –NumIOsToOrder -val} -aN|-a0,1,2|-aALL
MegaCli -AdpSetProp -AutoDetectBackPlaneDsbl -val -aN|-a0,1,2|-aALL
val - 0=Enable Auto Detect of SGPIO and i2c SEP.
1=Disable Auto Detect of SGPIO.
2=Disable Auto Detect of i2c SEP.
3=Disable Auto Detect of SGPIO and i2c SEP.
MegaCli -AdpSetProp -CopyBackDsbl -val -aN|-a0,1,2|-aALL
val - 0=Enable Copyback.
1=Disable Copyback.
MegaCli -AdpSetProp -EnableJBOD -val -aN|-a0,1,2|-aALL
val - 0=Disable JBOD mode.
1=Enable JBOD mode.
MegaCli -AdpSetProp -DsblCacheBypass -val -aN|-a0,1,2|-aALL
val - 0=Enable Cache Bypass.
1=Disable Cache Bypass.
MegaCli -AdpSetProp -LoadBalanceMode -val -aN|-a0,1,2|-aALL
val - 0=Auto Load balance mode.
1=Disable Load balance mode.
MegaCli -AdpSetProp -UseFDEOnlyEncrypt -val -aN|-a0,1,2|-aALL
val - 0=FDE and controller encryption (if HW supports) is allowed.
1=Only support FDE encryption, disallow controller encryption.
MegaCli -AdpSetProp -PrCorrectUncfgdAreas -val -aN|-a0,1,2|-aALL
val - 0= Correcting Media error during PR is disabled.
1=Correcting Media error during PR is allowed.
MegaCli -AdpSetProp -DefaultSnapshotSpace -X% -aN|-a0,1,2|-aALL
where X is the percentage of the source VD size.
MegaCli -AdpSetProp -DefaultViewSpace -X% -aN|-a0,1,2|-aALL
where X is the percentage of the source VD size.
MegaCli -AdpSetProp -AutoSnapshotSpace -X% -aN|-a0,1,2|-aALL
where X is the percentage of the source VD size.
MegaCli -AdpSetProp -DsblSpinDownHSP -val -aN|-a0,1,2|-aALL
val - 0= Spinning down the Hot Spare is enabled.
1=Spinning down the Hot Spare is disabled.
MegaCli -AdpSetProp -DefaultLdPSPolicy -Automatic| -None | -Maximum| -MaximumWithoutCaching -aN|-a0,1,2|-aALL
MegaCli -AdpSetProp -DisableLdPS -interval n1 -time n2 -aN|-a0,1,2|-aALL
where n1 is the number of hours beginning at time n2
where n2 is the number of minutes from 12:00am
MegaCli -AdpSetProp -ENABLEEGHSP -val -aN|-a0,1,2|-aALL
val - 0= Disabled Emergency GHSP.
1= Enabled Emergency GHSP.
MegaCli -AdpSetProp -ENABLEEUG -val -aN|-a0,1,2|-aALL
val - 0= Disabled Emergency UG as Spare.
1= Enabled Emergency UG as Spare.
MegaCli -AdpSetProp -ENABLEESMARTER -val -aN|-a0,1,2|-aALL
val - 0= Disabled Emergency Spare as Smarter.
1= Enabled Emergency Spare as Smarter.
MegaCli -AdpSetProp -DPMenable -val -aN|-a0,1,2|-aALL
val - 0=Disable Drive Performance Monitoring .
1=Enable Drive Performance Monitoring.
MegaCli -AdpSetProp -SupportSSDPatrolRead -val -aN|-a0,1,2|-aALL
val - 0=Disable Patrol read for SSD drives .
1=Enable Patrol read for SSD drives.
MegaCli -AdpGetProp CacheFlushInterval | RebuildRate | PatrolReadRate | ForceSGPIO
| BgiRate | CCRate | ReconRate | SpinupDriveCount | SpinupDelay
| CoercionMode | ClusterEnable | PredFailPollInterval | BatWarnDsbl
| EccBucketSize | EccBucketLeakRate | EccBucketCount | AbortCCOnError
| AlarmDsply | SMARTCpyBkEnbl | SSDSMARTCpyBkEnbl | NCQDsply
| MaintainPdFailHistoryEnbl | RstrHotSpareOnInsert
| EnblSpinDownUnConfigDrvs | DisableOCR
| BootWithPinnedCache | enblPI |PreventPIImport | AutoEnhancedImportDsply | AutoDetectBackPlaneDsbl
| CopyBackDsbl | LoadBalanceMode | UseFDEOnlyEncrypt | WBSupport | EnableJBOD
| DsblCacheBypass | ExposeEnclDevicesEnbl | SpinDownTime | PrCorrectUncfgdAreas
| UseDiskActivityforLocate | ENABLEEGHSP | ENABLEEUG | ENABLEESMARTER | Perfmode | PerfModeValues
| -DPMenable -aN|-a0,1,2|-aALL
| DefaultSnapshotSpace |
| DefaultViewSpace |
| AutoSnapshotSpace |
| DefaultLdPSPolicy | DisableLdPsInterval | DisableLdPsTime | SpinUpEncDrvCnt
| SpinUpEncDelay | PrCorrectUncfgdAreas
| DsblSpinDownHSP | SupportSSDPatrolRead -aN|-a0,1,2|-aALL
MegaCli -AdpAllInfo -aN|-a0,1,2|-aALL
MegaCli -AdpGetTime -aN|-a0,1,2|-aALL
MegaCli -AdpSetTime yyyymmdd hh:mm:ss -aN
MegaCli -AdpSetVerify -f fileName -aN|-a0,1,2|-aALL
MegaCli -AdpBIOS -Enbl |-Dsbl | -SOE | -BE | -HCOE | - HSM | EnblAutoSelectBootLd | DsblAutoSelectBootLd | -Dsply -aN|-a0,1,2|-aALL
MegaCli -AdpBootDrive {-Set {-Lx | -physdrv[E0:S0]}} | {-Unset {-Lx | -physdrv[E0:S0]}} |-Get -aN|-a0,1,2|-aALL
MegaCli -AdpAutoRbld -Enbl|-Dsbl|-Dsply -aN|-a0,1,2|-aALL
MegaCli -AdpCacheFlush -aN|-a0,1,2|-aALL
MegaCli -AdpPR -Dsbl|EnblAuto|EnblMan|Start|Suspend|Resume|Stop|Info|SSDPatrolReadEnbl |SSDPatrolReadDsbl
|{SetDelay Val}|{-SetStartTime yyyymmdd hh}|{maxConcurrentPD Val} -aN|-a0,1,2|-aALL
MegaCli -AdpCcSched -Dsbl|-Info|{-ModeConc | -ModeSeq [-ExcludeLD -LN|-L0,1,2]
[-SetStartTime yyyymmdd hh ] [-SetDelay val ] } -aN|-a0,1,2|-aALL
MegaCli -AdpCcSched -SetStartTime yyyymmdd hh -aN|-a0,1,2|-aALL
MegaCli -AdpCcSched -SetDelay val -aN|-a0,1,2|-aALL
MegaCli -FwTermLog -BBUoff|BBUoffTemp|BBUon|BBUGet|Dsply|Clear -aN|-a0,1,2|-aALL
MegaCli -AdpAlILog -aN|-a0,1,2|-aALL
MegaCli -AdpDiag [val] -aN|-a0,1,2|-aALL
val - Time in second.
MegaCli -AdpGetPciInfo -aN|-a0,1,2|-aALL
MegaCli -AdpShutDown -aN|-a0,1,2|-aALL
MegaCli -AdpDowngrade -aN|-a0,1,2|-aALL
MegaCli -PDList -aN|-a0,1,2|-aALL
MegaCli -PDGetNum -aN|-a0,1,2|-aALL
MegaCli -pdInfo -PhysDrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL
MegaCli -PDOnline -PhysDrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL
MegaCli -PDOffline -PhysDrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL
MegaCli -PDMakeGood -PhysDrv[E0:S0,E1:S1,...] | [-Force] -aN|-a0,1,2|-aALL
MegaCli -PDMakeJBOD -PhysDrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL
MegaCli -PDHSP {-Set [-Dedicated [-ArrayN|-Array0,1,2...]] [-EnclAffinity] [-nonRevertible]}
|-Rmv -PhysDrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL
MegaCli -PDRbld -Start|-Stop|-Suspend|-Resume|-ShowProg |-ProgDsply
-PhysDrv [E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL
MegaCli -PDClear -Start|-Stop|-ShowProg |-ProgDsply
-PhysDrv [E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL
MegaCli -PdLocate {[-start] | -stop} -physdrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL
MegaCli -PdMarkMissing -physdrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL
MegaCli -PdGetMissing -aN|-a0,1,2|-aALL
MegaCli -PdReplaceMissing -physdrv[E0:S0] -arrayA, -rowB -aN
MegaCli -PdPrpRmv [-UnDo] -physdrv[E0:S0] -aN|-a0,1,2|-aALL
MegaCli -EncInfo -aN|-a0,1,2|-aALL
MegaCli -EncStatus -aN|-a0,1,2|-aALL
MegaCli -PhyInfo -phyM -aN|-a0,1,2|-aALL
MegaCli -PhySetLinkSpeed -phyM -speed -aN|-a0,1,2|-aALL
MegaCli -PdFwDownload [offline][ForceActivate] {[-SataBridge] -PhysDrv[0:1] }|{-EncdevId[devId1]} -f <filename> -aN|-a0,1,2|-aALL
MegaCli -LDInfo -Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALL
MegaCli -LDSetProp {-Name LdNamestring} | -RW|RO|Blocked|RemoveBlocked | WT|WB|ForcedWB [-Immediate] |RA|NORA|ADRA | DsblPI
| Cached|Direct | -EnDskCache|DisDskCache | CachedBadBBU|NoCachedBadBBU
-Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALL
MegaCli -LDSetPowerPolicy -Default| -Automatic| -None| -Maximum| -MaximumWithoutCaching
-Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALL
MegaCli -LDGetProp -Cache | -Access | -Name | -DskCache | -PSPolicy | Consistency -Lx|-L0,1,2|-LALL
-aN|-a0,1,2|-aALL
MegaCli -LDInit {-Start [-full]}|-Abort|-ShowProg|-ProgDsply -Lx|-L0,1,2|-LALL -aN|-a0,1,2|-aALL
MegaCli -LDCC {-Start [-force]}|-Abort|-Suspend|-Resume|-ShowProg|-ProgDsply -Lx|-L0,1,2|-LALL -aN|-a0,1,2|-aALL
MegaCli -LDBI -Enbl|-Dsbl|-getSetting|-Abort|-Suspend|-Resume|-ShowProg|-ProgDsply -Lx|-L0,1,2|-LALL -aN|-a0,1,2|-aALL
MegaCli -LDRecon {-Start -rX [{-Add | -Rmv} -Physdrv[E0:S0,...]]}|-ShowProg|-ProgDsply
-Lx -aN
MegaCli -LdPdInfo -aN|-a0,1,2|-aALL
MegaCli -LDGetNum -aN|-a0,1,2|-aALL
MegaCli -LDBBMClr -Lx|-L0,1,2,...|-Lall -aN|-a0,1,2|-aALL
MegaCli -getLdExpansionInfo -Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALL
MegaCli -LdExpansion -pN -dontExpandArray -Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALL
MegaCli -GetBbtEntries -Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALL
MegaCli -Cachecade -assign|-remove -Lx|-L0,1,2|-LALL -aN|-a0,1,2|-aALL
MegaCli -CfgLdAdd -rX[E0:S0,E1:S1,...] [WT|WB] [NORA|RA|ADRA] [Direct|Cached]
[CachedBadBBU|NoCachedBadBBU] [-szXXX [-szYYY ...]]
[-strpszM] [-Hsp[E0:S0,...]] [-AfterLdX] | [FDE|CtrlBased]
[-Default| -Automatic| -None| -Maximum| -MaximumWithoutCaching] [-Cache] [-enblPI] [-Force]-aN
MegaCli -CfgCacheCadeAdd [-rX] -Physdrv[E0:S0,...] {-Name LdNamestring} [WT|WB|ForcedWB] [-assign -LX|L0,2,5..|LALL] -aN|-a0,1,2|-aALL
MegaCli -CfgEachDskRaid0 [WT|WB] [NORA|RA|ADRA] [Direct|Cached] [-enblPI]
[CachedBadBBU|NoCachedBadBBU] [-strpszM]|[FDE|CtrlBased] [-Default| -Automatic| -None| -Maximum| -MaximumWithoutCaching] [-Cache] -aN|-a0,1,2|-aALL
MegaCli -CfgClr [-Force] -aN|-a0,1,2|-aALL
MegaCli -CfgDsply -aN|-a0,1,2|-aALL
MegaCli -CfgCacheCadeDsply -aN|-a0,1,2|-aALL
MegaCli -CfgLdDel -LX|-L0,2,5...|-LALL [-Force] -aN|-a0,1,2|-aALL
MegaCli -CfgCacheCadeDel -LX|-L0,2,5...|-LALL -aN|-a0,1,2|-aALL
MegaCli -CfgFreeSpaceinfo -aN|-a0,1,2|-aALL
MegaCli -CfgSpanAdd -r10 -Array0[E0:S0,E1:S1] -Array1[E0:S0,E1:S1] [-ArrayX[E0:S0,E1:S1] ...]
[WT|WB] [NORA|RA|ADRA] [Direct|Cached] [CachedBadBBU|NoCachedBadBBU]
[-szXXX[-szYYY ...]][-strpszM][-AfterLdX]| [FDE|CtrlBased]
[-Default| -Automatic| -None| -Maximum| -MaximumWithoutCaching] [-Cache] [-enblPI] [-Force] -aN
MegaCli -CfgSpanAdd -r50 -Array0[E0:S0,E1:S1,E2:S2,...] -Array1[E0:S0,E1:S1,E2:S2,...]
[-ArrayX[E0:S0,E1:S1,E2:S2,...] ...] [WT|WB] [NORA|RA|ADRA] [Direct|Cached]
[CachedBadBBU|NoCachedBadBBU][-szXXX[-szYYY ...]][-strpszM][-AfterLdX]
[FDE|CtrlBased] [-Default| -Automatic| -None| -Maximum| -MaximumWithoutCaching] [-Cache] [-enblPI] [-Force] -aN
MegaCli -CfgSpanAdd -r60 -Array0[E0:S0,E1:S1,E2:S2,E3,S3...] -Array1[E0:S0,E1:S1,E2:S2,E3,S3...]
[-ArrayX[E0:S0,E1:S1,E2:S2,E3,S3...] ...] [WT|WB] [NORA|RA|ADRA] [Direct|Cached]
[CachedBadBBU|NoCachedBadBBU][-szXXX[-szYYY ...]][-strpszM][-AfterLdX]|
[FDE|CtrlBased] [-Default| -Automatic| -None| -Maximum| -MaximumWithoutCaching] [-Cache] [-enblPI] [-Force] -aN
MegaCli -CfgAllFreeDrv -rX [-SATAOnly] [-SpanCount XXX] [WT|WB] [NORA|RA|ADRA]
[Direct|Cached] [CachedBadBBU|NoCachedBadBBU] [-strpszM]
[-HspCount XX [-HspType -Dedicated|-EnclAffinity|-nonRevertible]]|
[FDE|CtrlBased] [-Default| -Automatic| -None| -Maximum| -MaximumWithoutCaching] [-Cache] [-enblPI] -aN
MegaCli -CfgSave -f filename -aN
MegaCli -CfgRestore -f filename -aN
MegaCli -CfgForeign -Scan | [-SecurityKey sssssssssss] -aN|-a0,1,2|-aALL
MegaCli -CfgForeign -Dsply [x] | [-SecurityKey sssssssssss] -aN|-a0,1,2|-aALL
MegaCli -CfgForeign -Preview [x] | [-SecurityKey sssssssssss] -aN|-a0,1,2|-aALL
MegaCli -CfgForeign -Import [x] | [-SecurityKey sssssssssss] -aN|-a0,1,2|-aALL
MegaCli -CfgForeign -Clear [x]|[-SecurityKey sssssssssss] -aN|-a0,1,2|-aALL
x - index of foreign configurations. Optional. All by default.
MegaCli -AdpEventLog -GetEventLogInfo -aN|-a0,1,2|-aALL
MegaCli -AdpEventLog -GetEvents {-info -warning -critical -fatal} {-f <fileName>} -aN|-a0,1,2|-aALL
MegaCli -AdpEventLog -GetSinceShutdown {-info -warning -critical -fatal} {-f <fileName>} -aN|-a0,1,2|-aALL
MegaCli -AdpEventLog -GetSinceReboot {-info -warning -critical -fatal} {-f <fileName>} -aN|-a0,1,2|-aALL
MegaCli -AdpEventLog -IncludeDeleted {-info -warning -critical -fatal} {-f <fileName>} -aN|-a0,1,2|-aALL
MegaCli -AdpEventLog -GetLatest n {-info -warning -critical -fatal} {-f <fileName>} -aN|-a0,1,2|-aALL
MegaCli -AdpEventLog -GetCCIncon -f <fileName> -LX|-L0,2,5...|-LALL -aN|-a0,1,2|-aALL
MegaCli -AdpEventLog -Clear -aN|-a0,1,2|-aALL
MegaCli -AdpBbuCmd -aN|-a0,1,2|-aALL
MegaCli -AdpBbuCmd -GetBbuStatus -aN|-a0,1,2|-aALL
MegaCli -AdpBbuCmd -GetBbuCapacityInfo -aN|-a0,1,2|-aALL
MegaCli -AdpBbuCmd -GetBbuDesignInfo -aN|-a0,1,2|-aALL
MegaCli -AdpBbuCmd -GetBbuProperties -aN|-a0,1,2|-aALL
MegaCli -AdpBbuCmd -BbuLearn -aN|-a0,1,2|-aALL
MegaCli -AdpBbuCmd -BbuMfgSleep -aN|-a0,1,2|-aALL
MegaCli -AdpBbuCmd -BbuMfgSeal -aN|-a0,1,2|-aALL
MegaCli -AdpBbuCmd -getBbumodes -aN|-a0,1,2|-aALL
MegaCli -AdpBbuCmd -SetBbuProperties -f <fileName> -aN|-a0,1,2|-aALL
MegaCli -AdpBbuCmd -GetGGEEPData offset [Hexaddress] NumBytes n -aN|-a0,1,2|-aALL
MegaCli -AdpBbuCmd -ScheduleLearn -Dsbl|-Info|[-STARTTIME DDD hh] -aN|-a0,1,2|-aALL
MegaCli -AdpFacDefSet -aN
MegaCli -AdpFwFlash -f filename [-ResetNow] [-NoSigChk] [-NoVerChk] [-FWTYPE n] -aN|-a0,1,2|-aALL
MegaCli -AdpGetConnectorMode -ConnectorN|-Connector0,1|-ConnectorAll -aN|-a0,1,2|-aALL
MegaCli -AdpSetConnectorMode -Internal|-External|-Auto -ConnectorN|-Connector0,1|-ConnectorAll -aN|-a0,1,2|-aALL
MegaCli -PhyErrorCounters -aN|-a0,1,2|-aALL
MegaCli -DirectPdMapping -Enbl|-Dsbl|-Dsply -aN|-a0,1,2|-aALL
MegaCli -PDCpyBk -Start -PhysDrv[E0:S0,E1:S1] -aN|-a0,1,2|-aALL
MegaCli -PDCpyBk -Stop|-Suspend|-Resume|-ShowProg|-ProgDsply -PhysDrv[E0:S0] -aN|-a0,1,2|-aALL
MegaCli -PDInstantSecureErase -PhysDrv[E0:S0,E1:S1,...] | [-Force] -aN|-a0,1,2|-aALL
MegaCli -CfgSpanAdd -rX -array0[E0:S1,E1:S1.....] array1[E0:S1,E1:S1.....] -szxxx -enblPI -aN|-a0,1,2|-aALL
MegaCli -LDMakeSecure -Lx|-L0,1,2,...|-Lall -aN|-a0,1,2|-aALL
MegaCli -DestroySecurityKey | [-Force] -aN
MegaCli -CreateSecurityKey -SecurityKey sssssssssss | [-Passphrase sssssssssss] |[-KeyID kkkkkkkkkkk] -aN
MegaCli -CreateSecurityKey useEKMS -aN
MegaCli -ChangeSecurityKey -OldSecurityKey sssssssssss | -SecurityKey sssssssssss|
[-Passphrase sssssssssss] | [-KeyID kkkkkkkkkkk] -aN
MegaCli -ChangeSecurityKey -SecurityKey sssssssssss|
[-Passphrase sssssssssss] | [-KeyID kkkkkkkkkkk] -aN
MegaCli -ChangeSecurityKey useEKMS -OldSecurityKey sssssssssss -aN
MegaCli -ChangeSecurityKey -useEKMS -aN
MegaCli -GetKeyID [-PhysDrv[E0:S0]] -aN
MegaCli -SetKeyID -KeyID kkkkkkkkkkk -aN
MegaCli -VerifySecurityKey -SecurityKey sssssssssss -aN
MegaCli -GetPreservedCacheList -aN|-a0,1,2|-aALL
MegaCli -DiscardPreservedCache -Lx|-L0,1,2|-Lall -force -aN|-a0,1,2|-aALL

sssssssssss - It must be between eight and thirty-two
characters and contain at least one number,
one lowercase letter, one uppercase
letter and one non-alphanumeric character.
kkkkkkkkkkk - Must be less than 256 characters.
MegaCli -Snapshot -Enbl -szXXX SnapshotRepositoryLD N [-AutoSnapshot] [-AutoDeleteOldestSnapshot] -Lx -aN|-a0,1,2|-aALL
MegaCli -Snapshot -Setprop {-AutoSnapshot -val} | {-AutoDeleteOldestSnapshot -val} -Lx -aN|-a0,1,2|-aALL
MegaCli -Snapshot -Dsbl -Lx -aN|-a0,1,2|-aALL
MegaCli -Snapshot -TakeSnapshot [-SnapshotName NameString] [-CreateView [-viewName NameString] [-RW|RO|Blocked] -szXXX] -Lx|-L0,1,2 -aN|-a0,1,2|-aALL
MegaCli -Snapshot -DeleteSnapshot -SnapshotTime yyyymmdd hh:mm:ss | -all [-Force|-Y] -Lx|L0,1,2 -aN|-a0,1,2|-aALL
MegaCli -Snapshot -CreateView -SnapshotTime yyyymmdd hh:mm:ss [-viewName NameString] [-RW|RO|Blocked] -szXXX -Lx -aN|-a0,1,2|-aALL
MegaCli -Snapshot -DeleteView [-SnapshotTime yyyymmdd hh:mm:ss] -Lx -aN|-a0,1,2|-aALL
MegaCli -Snapshot -Info [-SnapshotTime yyyymmdd hh:mm:ss | -ViewTime yyyymmdd hh:mm:ss] -Lx -aN|-a0,1,2|-aALL
MegaCli -Snapshot -Clean -Lx -aN|-a0,1,2|-aALL
MegaCli -Snapshot -GetViewInfo [-ViewTargetId N ] -aN|-a0,1,2|-aALL
MegaCli -ShowSummary [-f filename] -aN
MegaCli -ELF -GetSafeId -aN|-a0,1,2|-aALL
MegaCli -ELF -ControllerFeatures -aN|-a0,1,2|-aALL
MegaCli -ELF -Applykey key <val> [Preview] -aN|-a0,1,2|-aALL
MegaCli -ELF -TransferToVault -aN|-a0,1,2|-aALL
MegaCli -ELF -DeactivateTrialKey -aN|-a0,1,2|-aALL
MegaCli -ELF -ReHostInfo -aN|-a0,1,2|-aALL
MegaCli -ELF -ReHostComplete -aN|-a0,1,2|-aALL
MegaCli -LDViewMirror -Lx|-L0,1,2,...|-Lall -aN|-a0,1,2|-aALL
MegaCli -LDJoinMirror -DataSrc <val> [-force] -Lx|-L0,1,2,...|-Lall -aN|-a0,1,2|-aALL
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
MegaCli -Version -Cli|-Ctrl|-Driver|-Pd -aN|-a0,1,2|-aALL
MegaCli -Perfmon {-start -interval <val>} | {stop} | {-getresults -f <Filename>} -aN
MegaCli -DpmStat -Dsply {lct | hist | ra | ext } [-physdrv[E0:S0]] -aN|-a0,1,2|-aALL
MegaCli -DpmStat -Clear {lct | hist | ra | ext } -aN|-a0,1,2|-aALL

Note: The directly connected drives can be specified as [:S]

Wildcard '?' can be used to specify the enclosure ID for the drive in the
only enclosure without direct connected device or the direct connected
drives with no enclosure in the system.

Note:[-aALL] option assumes that the parameters specified are valid
for all the Adapters.

Note:progDsply option is not supported in VMWARE-COSLESS.

The following options may be given at the end of any command above:

[-Silent] [-AppLogFile filename] [-NoLog] [-page[N]]
[-] is optional.
N - Number of lines per page.
MegaCli XD -AddVd <devList>
MegaCli XD -RemVd <devList>
MegaCli XD -AddCdev <devList> | -force
MegaCli XD -RemCdev <devList>
MegaCli XD -VdList | -Configured | -Unconfigured
MegaCli XD -CdevList | -Configured | -Unconfigured
MegaCli XD -ConfigInfo
MegaCli XD -PerfStats
MegaCli XD -OnlineVd
MegaCli XD -WarpDriveInfo -iN | -iALL
MegaCli XD -FetchSafeId -iN | -iALL
MegaCli XD -ApplyActivationKey <key> -iN
 
Last edited:
  • Like
Reactions: Patrick and BigXor

mobilenvidia

Moderator
Sep 25, 2011
1,956
212
63
New Zealand
Storage Command Line Tool Ver 1.05.07 Jul 22, 2013

(c)Copyright 2013, LSI Corporation, All Rights Reserved.


storcli -v
storcli -h| -help| ?
storcli -h| -help| ? legacy
storcli show
storcli show all
storcli show ctrlcount
storcli /cx add vd r[0|1|5|6|00|10|50|60]
[Size=<VD1_Sz>,<VD2_Sz>,..|all] [name=<VDNAME1>,..]
drives=e:s|e:s-x|e:s-x,y,e:s-x,y,z [PDperArray=x][SED]
[pdcache=on|off|default][pi][DimmerSwitch(ds)=default|automatic(auto)|
none|maximum(max)|MaximumWithoutCaching(maxnocache)][wt|wb][nora|ra]
[direct|cached] [CachedBadBBU|NoCachedBadBBU] [cachevd]
[Strip=<8|16|32|64|128|256|512|1024>] [AfterVd=X]
[Spares = [e:]s|[e:]s-x|[e:]s-x,y] [force][ExclusiveAccess]
storcli /cx add vd each r0 [name=<VDNAME1>,..] [drives=e:s|e:s-x|e:s-x,y]
[SED] [pdcache=on|off|default][pi] [DimmerSwitch(ds)=default|automatic(auto)|
none|maximum(max)|MaximumWithoutCaching(maxnocache)] [wt|wb] [nora|ra]
[direct|cached] [CachedBadBBU|NoCachedBadBBU]
[Strip=<8|16|32|64|128|256|512|1024>] [ExclusiveAccess]
storcli /cx add VD cachecade|nytrocache r[aid][0,1,10, R1EC]
drives = [e:]s|[e:]s-x|[e:]s-x,y [WT| WB] [assignvds = 0,1,2] [BOOTVOLSIZE=x]
Note: For raid type R1EC, ensure there is a space between the raid level
For ex:storcli /c0 add VD cachecade R0 drives = 252:4,252:6 WB
storcli /cx/ex show all
storcli /cx/ex show status
storcli /cx/vx del cachecade
storcli /cx delete events
storcli /cx show events [[type= <sincereboot| sinceshutdown| includedeleted|
latest=x| ccincon vd=<0,1,...>] filter=<info|warning|critical|fatal>]
file=<filepath>
storcli /cx show eventloginfo
storcli /cx delete securitykey
storcli /cx set securitykey=xxxxxxxx {passphrase=xxxx} {keyid=xxx}
storcli /cx start Diag Duration=<Val>
storcli /cx set securitykey keyid=xxx
storcli /cx compare securitykey=xxxxxxxxxx
storcli /cx set termlog[=on|off|offthisboot]
storcli /cx show termlog [type=config|contents]
storcli /cx delete termlog
storcli /cx Compare factorysettings file=<filepath>
storcli /cx Compare factorysettings raw file=<filepath>
storcli /cx set securitykey=xxxxxxxx oldsecuritykey=xxxxxxxx
{passphrase=xxxx} {keyid=xxx}
storcli /cx/dx show
storcli /cx/dall show cachecade
storcli /cx/dx show all
storcli /cx show freespace
storcli /cx/fall show [all] [securityKey = xxx]
storcli /cx/fall show [all] [securityKey = xxx]
storcli /cx/fall del|delete [securityKey = xxx]
storcli /cx/fall del|delete [securityKey = xxx]
storcli /cx/fall import [preview] [securityKey = xxx]
storcli /cx/fall import [preview] [securityKey = xxx]
storcli /cx/vx set ssdcaching=on|off
storcli /cx/dx set security=on
storcli /cx/vx show expansion
storcli /cx show fshinting
storcli /cx/vx set fshinting=<value>
storcli /cx/vx expand Size=<xx> [expandarray]
storcli /cx[/ex]/sx show
storcli /cx[/ex]/sx show all
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
storcli /cx[/ex]/sx start copyback target=e:s
storcli /cx[/ex]/sx stop copyback
storcli /cx[/ex]/sx pause copyback
storcli /cx[/ex]/sx resume copyback
storcli /cx[/ex]/sx show copyback
storcli /cx[/ex]/sx start initialization
storcli /cx[/ex]/sx stop initialization
storcli /cx[/ex]/sx show initialization
storcli /cx[/ex]/sx start locate
storcli /cx[/ex]/sx stop locate
storcli /cx[/ex]/sx show securitykey keyid
storcli /cx[/ex]/sx add hotsparedrive [DGs=<N|0,1,2...>] [enclaffinity]
[nonrevertible]
storcli /cx[/ex]/sx delete hotsparedrive
storcli /cx[/ex]/sx spinup
storcli /cx[/ex]/sx spindown
storcli /cx[/ex]/sx set online
storcli /cx[/ex]/sx set offline
storcli /cx[/ex]/sx set missing
storcli /cx[/ex]/sx set jbod
storcli /cx[/ex]/sx set good [force]
storcli /cx[/ex]/sx insert dg=A array=B row=C
storcli /cx/vx set emulationType=0|1
storcli /cx/vx set wrcache=WT|WB|AWB
storcli /cx/vx set rdcache=RA|NoRA
storcli /cx/vx set iopolicy=Cached|Direct
storcli /cx/vx set accesspolicy=RW|RO|Blocked|RmvBlkd
storcli /cx/vx set pdcache=On|Off|Default
storcli /cx/vx set name=<NameString>
storcli /cx/vx set HostAccess=ExclusiveAccess|SharedAccess
storcli /cx/vx set ds=Default|Auto|None|Max|MaxNoCache
storcli /cx/vx set autobgi=On|Off
storcli /cx/vx set pi=Off
storcli /cx/vx show
storcli /cx/vx show all
storcli /cx/vx show init
storcli /cx/vx show cc
storcli /cx/vx show erase
storcli /cx/vx show migrate
storcli /cx/vx show bgi
storcli /cx/vx show autobgi
storcli /cx set consistencycheck|cc=[off|seq|conc] [delay=value]
starttime=yyyy/mm/dd hh] [excludevd=x-y,z]
storcli /cx show cc|consistencycheck
storcli /cx show ocr
storcli /cx set ocr=<on|off>
storcli /cx/vx start init[Full][Force]
storcli /cx/vx start erase [simple|normal|thorough][patternA=<val>]
[patternB=<val>]
storcli /cx/vx start cc[Force]
storcli /cx/vx start migrate type=raidx [option=add|remove
drives=[e:]s|[e:]s-x|[e:]s-x,y] [Force]
storcli /cx/vx stop init
storcli /cx/vx stop erase
storcli /cx/vx stop cc
storcli /cx/vx stop bgi
storcli /cx/vx pause cc
storcli /cx/vx pause bgi
storcli /cx/vx resume cc
storcli /cx/vx resume bgi
storcli /cx show
storcli /cx show all
storcli /cx show preservedcache
storcli /cx/vx delete preservedcache[force]
storcli /cx[/ex]/sx download src=<filepath> [satabridge]
storcli /cx/ex download src=<filepath> [forceActivate]
storcli /cx[/ex]/sx secureerase [force]
storcli /cx[/ex]/sx start erase [simple| normal| thorough | standard]
[patternA=<val>] [patternB=<val>]
storcli /cx[/ex]/sx stop erase
storcli /cx[/ex]/sx show erase
storcli /cx[/ex]/sx set bootdrive=<on|off>
storcli /cx/vx set bootdrive=<on|off>
storcli /cx show bootdrive
storcli /cx show bootwithpinnedcache
storcli /cx set bootwithpinnedcache=<on|off>
storcli /cx show activityforlocate
storcli /cx set activityforlocate=<on|off>
storcli /cx show copyback
storcli /cx set copyback=<on|off> type=smartssd|smarthdd|all
storcli /cx show jbod
storcli /cx set jbod=<on|off>
storcli /cx set autorebuild=<on|off>
storcli /cx show autorebuild
storcli /cx show cachebypass
storcli /cx set cachebypass=<on|off>
storcli /cx show usefdeonlyencrypt
storcli /cx set usefdeonlyencrypt=<on|off>
storcli /cx show prcorrectunconfiguredareas
storcli /cx set prcorrectunconfiguredareas=<on|off>
storcli /cx show batterywarning
storcli /cx set batterywarning=<on|off>
storcli /cx show abortcconerror
storcli /cx set abortcconerror=<on|off>
storcli /cx show ncq
storcli /cx set ncq=<on|off>
storcli /cx show maintainpdfailhistory
storcli /cx set maintainpdfailhistory=<on|off>
storcli /cx show restorehotspare
storcli /cx set restorehotspare=<on|off>
storcli /cx set bios [state=<on|off>] [Mode=<SOE|BE|HCOE|HSM>] [abs=<on|off>]
storcli /cx show bios
storcli /cx show alarm
storcli /cx set alarm=<on|off|silence>
storcli /cx show foreignautoimport
storcli /cx set foreignautoimport=<on|off>
storcli /cx show directpdmapping
storcli /cx set directpdmapping=<on|off>
storcli /cx show rebuildrate
storcli /cx set rebuildrate=<value>
storcli /cx show loadbalancemode
storcli /cx set loadbalancemode=<on|off>
storcli /cx show eghs
storcli /cx set eghs [state=<on|off>] [eug==<on|off>] [smarter==<on|off>]
storcli /cx show cacheflushint
storcli /cx set cacheflushint=<value>
storcli /cx show prrate
storcli /cx set prrate=<value>
storcli /cx show ccrate
storcli /cx set ccrate=<value>
storcli /cx show bgirate
storcli /cx set bgirate =<value>
storcli /cx show dpm
storcli /cx set dpm =<on|off>
storcli /cx show sgpioforce
storcli /cx set sgpioforce =<on|off>
storcli /cx set supportssdpatrolread =<on|off>
storcli /cx show migraterate
storcli /cx set migraterate=<value>
storcli /cx show spinupdrivecount
storcli /cx show wbsupport
storcli /cx set spinupdrivecount=<value>
storcli /cx show spinupdelay
storcli /cx set spinupdelay=<value>
storcli /cx show coercion
storcli /cx set coercion=<value>
storcli /cx show smartpollinterval
storcli /cx set smartpollinterval=<value>
storcli /cx show eccbucketsize
storcli /cx set eccbucketsize=<value>
storcli /cx show eccbucketleakrate
storcli /cx set eccbucketleakrate=<value>
storcli /cx show backplane
storcli /cx set backplane mode=<value> expose=<on/off>
storcli /cx show perfmode
storcli /cx set perfmode=<value> [maxflushlines=<value> numiostoorder=<value>]
storcli /cx show perfmodevalues
storcli /cx show pi
storcli /cx set pi [state=<on|off>] [import=<on|off>]
storcli /cx show time
storcli /cx set time=<yyyymmdd hh:mm:ss | systemtime>
storcli /cx show ds
storcli /cx set ds=OFF type=1|2|3|4
storcli /cx set ds=ON type=1|2 [properties]
storcli /cx set ds=ON type=3|4 DefaultLdType=<val> [properties]
storcli /cx set ds [properties]
storcli /cx show safeid
storcli /cx show rehostinfo
storcli /cx show pci
storcli /cx show ASO
storcli /cx set aso key=<key value> preview
storcli /cx set aso key=<key value>
storcli /cx set aso transfertovault
storcli /cx set aso rehostcomplete
storcli /cx set aso deactivatetrialkey
storcli /cx set factory defaults
storcli /cx download file=<filepath> [fwtype=<val>] [ResetNow] [nosigchk]
[noverchk]
storcli /cx flush|flushcache
storcli /cx/px show
storcli /cx/px show all
storcli /cx/px set linkspeed=0|1.5|3|6|12
storcli /cx/bbu show
storcli /cx/bbu show all
storcli /cx/bbu show status
storcli /cx/bbu show properties
storcli /cx/bbu show gasgauge Offset=xxxx Numbytes=n
storcli /cx/bbu start learn
storcli /cx/bbu show modes
storcli /cx/bbu set [ learnDelayInterval=<val> | bbuMode=<val>
| autolearnmode=<val> | powermode=sleep | writeaccess=sealed ]
storcli /cx/cv show
storcli /cx/cv show all
storcli /cx/cv show status
storcli /cx/cv start learn
storcli /cx/cv set [ learnDelayInterval=<val> | autolearnmode=<val>
| powermode=sleep | writeaccess=sealed ]
storcli /cx show securitykey keyid
storcli /cx start patrolread
storcli /cx stop patrolread
storcli /cx pause patrolread
storcli /cx resume patrolread
storcli /cx show patrolRead
storcli /cx set patrolread = {{on mode=<auto|manual> }|{off}}
storcli /cx set patrolread [starttime=< yyyy/mm/dd hh>]
[maxconcurrentpd =<value>] [includessds=<on|onlymixed|off>]
[uncfgareas=on|off]
storcli /cx set patrolread delay = <value>
storcli /cx[/ex]/sx show diag paniclog [Query] | [ExtractSlot=x] |
[EraseSlot=x] [file=filepath]

storcli /cx[/ex]/sx show diag smartlog [file=filepath]
storcli /cx del Nytrocache
storcli /cx show badblocks
storcli /cx flasherase
storcli /cx shutdown
storcli /cx/mx set mode=<Internal | External | Auto>
storcli /cx/mx show
storcli /cx transform iMR
storcli /cx restart
storcli /cx/vx show BBMT
storcli /cx/vx delete BBMT
storcli /xd add type=CacheDev
<devices=comma separated cache devices | ALL> [force]
storcli /xd add type=VirtualDrive
<devices=comma separated Virtual drives | ALL>
storcli /xd delete type=<CacheDev | VirtualDrive>
<devices=comma separated cache devices or
Virtual drives as applicable | ALL>
storcli /xd show type=<CacheDev | VirtualDrive> [state=<assigned|unassigned>]
storcli /xd show
storcli /xd show perfmon
storcli /xd/wd<X|ALL> show
storcli /xd/wd<X|ALL> show safeid
storcli /xd set online [Vds=comma separated VD ids]
storcli /xd/wdX apply key=value
 
Last edited:
  • Like
Reactions: tommy001

mobilenvidia

Moderator
Sep 25, 2011
1,956
212
63
New Zealand
MegaSCU SAS Customization Utility Ver 8.04.52 Aug 29, 2012

(c)Copyright 2011, LSI Corporation, All Rights Reserved.


NOTE: The following options may be given at the end of any command below:

[-Silent] [-AppLogFile filename] [-NoLog] [-page[N]]
[-] is optional.
N - Number of lines per page.

MegaSCU -v
MegaSCU -help|-h|?
MegaSCU -adpCount
MegaSCU -AdpSetProp {CacheFlushInterval -val} | { RebuildRate -val}
| {PatrolReadRate -val} | {BgiRate -val} | {CCRate -val}
| {ReconRate -val} | {SpinupDriveCount -val} | {SpinupDelay -val}
| {CoercionMode -val} | {ClusterEnable -val} | {PredFailPollInterval -val}
| {BatWarnDsbl -val} | {EccBucketSize -val} | {EccBucketLeakRate -val}
| {AbortCCOnError -val} | AlarmEnbl | AlarmDsbl | AlarmSilence
| {SMARTCpyBkEnbl -val} | {SSDSMARTCpyBkEnbl -val} | NCQEnbl | NCQDsbl
| {MaintainPdFailHistoryEnbl -val} | {RstrHotSpareOnInsert -val}
| {DisableOCR -val} | {BootWithPinnedCache -val} | {enblPI -val} | {PreventPIImport -val}
| {EnblSpinDownUnConfigDrvs -val} | {UseDiskActivityforLocate -val} -aN|-a0,1,2|-aALL
| AutoEnhancedImportEnbl | AutoEnhancedImportDsbl -aN|-a0,1,2|-aALL
| {ExposeEnclDevicesEnbl -val} -aN|-a0,1,2|-aALL
| {DsblSpinDownHsp -val} -aN|-a0,1,2|-aALL
| {SpinDownTime -val} | {Perfmode -val} -aN|-a0,1,2|-aALL
| {useDiskActivityForLocate -val} -aN|-a0,1,2|-aALL
| {SpinUpEncDrvCnt -val} -aN|-a0,1,2|-aALL
| {SpinUpEncDelay -val} -aN|-a0,1,2|-aALL
MegaSCU -AdpSetProp -AutoDetectBackPlaneDsbl -val -aN|-a0,1,2|-aALL
val - 0=Enable Auto Detect of SGPIO and i2c SEP.
1=Disable Auto Detect of SGPIO.
2=Disable Auto Detect of i2c SEP.
3=Disable Auto Detect of SGPIO and i2c SEP.
MegaSCU -AdpSetProp -CopyBackDsbl -val -aN|-a0,1,2|-aALL
val - 0=Enable Copyback.
1=Disable Copyback.
MegaSCU -AdpSetProp -EnableJBOD -val -aN|-a0,1,2|-aALL
val - 0=Disable JBOD mode.
1=Enable JBOD mode.
MegaSCU -AdpSetProp -DsblCacheBypass -val -aN|-a0,1,2|-aALL
val - 0=Enable Cache Bypass.
1=Disable Cache Bypass.
MegaSCU -AdpSetProp -LoadBalanceMode -val -aN|-a0,1,2|-aALL
val - 0=Auto Load balance mode.
1=Disable Load balance mode.
MegaSCU -AdpSetProp -UseFDEOnlyEncrypt -val -aN|-a0,1,2|-aALL
val - 0=FDE and controller encryption (if HW supports) is allowed.
1=Only support FDE encryption, disallow controller encryption.
MegaSCU -AdpSetProp -PrCorrectUncfgdAreas -val -aN|-a0,1,2|-aALL
val - 0= Correcting Media error during PR is disabled.
1=Correcting Media error during PR is allowed.
MegaSCU -AdpSetProp -DefaultSnapshotSpace -X% -aN|-a0,1,2|-aALL
where X is the percentage of the source VD size.
MegaSCU -AdpSetProp -DefaultViewSpace -X% -aN|-a0,1,2|-aALL
where X is the percentage of the source VD size.
MegaSCU -AdpSetProp -AutoSnapshotSpace -X% -aN|-a0,1,2|-aALL
where X is the percentage of the source VD size.
MegaSCU -AdpSetProp -DefaultLdPSPolicy -Automatic| -None | -Maximum| -MaximumWithoutCaching -aN|-a0,1,2|-aALL
MegaSCU -AdpSetProp -DisableLdPS -interval n1 -time n2 -aN|-a0,1,2|-aALL
where n1 is the number of hours beginning at time n2
where n2 is the number of minutes from 12:00am
MegaSCU -AdpSetProp -ENABLEEGHSP -val -aN|-a0,1,2|-aALL
val - 0= Disabled Emergency GHSP.
1= Enabled Emergency GHSP.
MegaSCU -AdpSetProp -ENABLEEUG -val -aN|-a0,1,2|-aALL
val - 0= Disabled Emergency UG as Spare.
1= Enabled Emergency UG as Spare.
MegaSCU -AdpSetProp -ENABLEESMARTER -val -aN|-a0,1,2|-aALL
val - 0= Disabled Emergency Spare as Smarter.
1= Enabled Emergency Spare as Smarter.
MegaSCU -AdpSetProp -DPMenable -val -aN|-a0,1,2|-aALL
val - 0=Disable Drive Performance Monitoring .
1=Enable Drive Performance Monitoring.
MegaSCU -AdpGetProp CacheFlushInterval | RebuildRate | PatrolReadRate
| BgiRate | CCRate | ReconRate | SpinupDriveCount | SpinupDelay
| CoercionMode | ClusterEnable | PredFailPollInterval | BatWarnDsbl
| EccBucketSize | EccBucketLeakRate | EccBucketCount | AbortCCOnError
| AlarmDsply | SMARTCpyBkEnbl | SSDSMARTCpyBkEnbl | NCQDsply
| MaintainPdFailHistoryEnbl | RstrHotSpareOnInsert
| EnblSpinDownUnConfigDrvs | DisableOCR
| BootWithPinnedCache |enblPI | PreventPIImport | AutoEnhancedImportDsply | AutoDetectBackPlaneDsbl
| CopyBackDsbl | LoadBalanceMode | UseFDEOnlyEncrypt | WBSupport | EnableJBOD
| DsblCacheBypass | ExposeEnclDevicesEnbl | DsblSpinDownHsp | SpinDownTime | useDiskActivityForLocate
| DefaultLdPSPolicy | DisableLdPsInterval | DisableLdPsTime | SpinUpEncDrvCnt | SpinUpEncDelay
| PrCorrectUncfgdAreas | ENABLEEGHSP | ENABLEEUG | ENABLEESMARTER -aN|-a0,1,2|-aALL
| -DPMenable -| Perfmode aN|-a0,1,2|-aALL
| DefaultSnapshotSpace -aN|-a0,1,2|-aALL
| DefaultViewSpace -aN|-a0,1,2|-aALL
| AutoSnapshotSpace -aN|-a0,1,2|-aALL
MegaSCU -AdpAllInfo -aN|-a0,1,2|-aALL
MegaSCU -AdpGetTime -aN|-a0,1,2|-aALL
MegaSCU -AdpSetTime yyyymmdd hh:mm:ss -aN
MegaSCU -AdpSetSASA xxxxxxxxxxxxxxxx -aN
MegaSCU -AdpBIOS -Enbl |-Dsbl | -SOE | -BE | EnblAutoSelectBootLd | DsblAutoSelectBootLd | -Dsply -aN|-a0,1,2|-aALL
MegaSCU -AdpBootDrive {-Set {-Lx | -physdrv[E0:S0]}} | {-Unset {-Lx | -physdrv[E0:S0]}} |-Get -aN|-a0,1,2|-aALL
MegaSCU -AdpAutoRbld -Enbl|-Dsbl|-Dsply -aN|-a0,1,2|-aALL
MegaSCU -AdpCacheFlush -aN|-a0,1,2|-aALL
MegaSCU -AdpPR -Dsbl|EnblAuto|EnblMan|Start|Suspend|Resume|Stop|Info
|{SetDelay Val}|{-SetStartTime yyyymmdd hh}|{maxConcurrentPD Val} -aN|-a0,1,2|-aALL
MegaSCU -AdpCcSched -Dsbl|-Info|{-ModeConc | -ModeSeq [-ExcludeLD -LN|-L0,1,2]
[-SetStartTime yyyymmdd hh ] [-SetDelay val ] } -aN|-a0,1,2|-aALL
MegaSCU -AdpCcSched -SetStartTime yyyymmdd hh -aN|-a0,1,2|-aALL
MegaSCU -AdpCcSched -SetDelay val -aN|-a0,1,2|-aALL
MegaSCU -FwTermLog -BBUoff|BBUoffTemp|BBUon|BBUGet|Dsply|Clear -aN|-a0,1,2|-aALL
MegaSCU -AdpAlILog -aN|-a0,1,2|-aALL
MegaSCU -AdpDiag [val] -aN|-a0,1,2|-aALL
val - Time in second.
MegaSCU -AdpBatTest -aN|-a0,1,2|-aALL
MegaSCU -AdpShutDown -aN|-a0,1,2|-aALL
MegaSCU -AdpCfgPage -read|-write <isPersistent> pagetype <val> <pagenumber> <pageaddress> -f <filename> -aN
MegaSCU -AdpHwDevice -read deviceType <val> [bus <val> slaveAddr <val>] [[start offset] sz size] -f <filename> -aN
MegaSCU -AdpHwDevice -write deviceType <val> [bus <val> slaveAddr <val>] [start offset] -f <filename> -aN
MegaSCU -PDList -aN|-a0,1,2|-aALL
MegaSCU -PDGetNum -aN|-a0,1,2|-aALL
MegaSCU -pdInfo -PhysDrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL
MegaSCU -PDDffDiag [-Diagunlock -Seckey sssssssssss -Level x] | [-DumpSmartlog] | [-DumpPaniclog [-Query | [-Extract -slot x] | [-Erase -slot x] ]-PhysDrv[E0:S0,E1:S1,...] -aN
MegaSCU -PDOnline -PhysDrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL
MegaSCU -PDOffline -PhysDrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL
MegaSCU -PDMakeGood -PhysDrv[E0:S0,E1:S1,...] | [-Force] -aN|-a0,1,2|-aALL
MegaSCU -PDMakeJBOD -PhysDrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL
MegaSCU -PDHSP {-Set [-Dedicated [-ArrayN|-Array0,1,2...]] [-EnclAffinity] [-nonRevertible]}
|-Rmv -PhysDrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL
MegaSCU -PDRbld -Start|-Stop|-Suspend|-Resume|-ShowProg |-ProgDsply
-PhysDrv [E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL
MegaSCU -PDClear -Start|-Stop|-ShowProg |-ProgDsply
-PhysDrv [E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL
MegaSCU -PdLocate {[-start] | -stop} -physdrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL
MegaSCU -PdMarkMissing -physdrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALL
MegaSCU -PdGetMissing -aN|-a0,1,2|-aALL
MegaSCU -PdReplaceMissing -physdrv[E0:S0] -arrayA, -rowB -aN
MegaSCU -PdPrpRmv [-UnDo] -physdrv[E0:S0] -aN|-a0,1,2|-aALL
MegaSCU -EncInfo -aN|-a0,1,2|-aALL
MegaSCU -EncStatus -aN|-a0,1,2|-aALL
MegaSCU -PhyInfo -phyM -aN|-a0,1,2|-aALL
MegaSCU -PhySetLinkSpeed -phyM -speed -aN|-a0,1,2|-aALL
MegaSCU -PdFwDownload [offline][ForceActivate] {[-SataBridge] -PhysDrv[0:1] }|{-EncdevId[devId1]} -f <filename> -aN|-a0,1,2|-aALL
MegaSCU -PdFwDownload [offline][ForceActivate] {[-SataBridge] -PhysDrv[0:1]}|{-EncdevId[devId1]} -f <filename> mode 5 -aN|-a0,1,2|-aALL
MegaSCU -LDInfo -Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALL
MegaSCU -LDSetProp {-Name LdNamestring} | -RW|RO|Blocked|RemoveBlocked | WT|WB|ForcedWB [-Immediate]|RA|NORA | DsblPI
| Cached|Direct | -EnDskCache|DisDskCache | CachedBadBBU|NoCachedBadBBU
-Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALL
MegaSCU -LDSetPowerPolicy -Default| -Automatic| -None| -Maximum| -MaximumWithoutCaching
-Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALL
MegaSCU -LDGetProp -Cache | -Access | -Name | -DskCache | -PSPolicy | Consistency -Lx|-L0,1,2|-LALL
-aN|-a0,1,2|-aALL
MegaSCU -LDInit {-Start [-full]}|-Abort|-ShowProg|-ProgDsply -Lx|-L0,1,2|-LALL -aN|-a0,1,2|-aALL
MegaSCU -LDCC -Start|-Abort|-Suspend|-Resume|-ShowProg|-ProgDsply -Lx|-L0,1,2|-LALL -aN|-a0,1,2|-aALL
MegaSCU -LDBI -Enbl|-Dsbl|-getSetting|-Abort|-Suspend|-Resume|-ShowProg|-ProgDsply -Lx|-L0,1,2|-LALL -aN|-a0,1,2|-aALL
MegaSCU -LDRecon {-Start -rX [{-Add | -Rmv} -Physdrv[E0:S0,...]]}|-ShowProg|-ProgDsply
-Lx -aN
MegaSCU -LdPdInfo -aN|-a0,1,2|-aALL
MegaSCU -LDGetNum -aN|-a0,1,2|-aALL
MegaSCU -LDBBMClr -Lx|-L0,1,2,...|-Lall -aN|-a0,1,2|-aALL
MegaSCU -getLdExpansionInfo -Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALL
MegaSCU -LdExpansion -pN -dontExpandArray -Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALL
MegaSCU -GetBbtEntries -Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALL
MegaSCU -Cachecade -assign|-remove -Lx|-L0,1,2|-LALL -aN|-a0,1,2|-aALL
MegaSCU -CfgLdAdd -rX[E0:S0,E1:S1,...] [WT|WB] [NORA|RA] [Direct|Cached]
[CachedBadBBU|NoCachedBadBBU] [-szXXX [-szYYY ...]]
[-strpszM] [-Hsp[E0:S0,...]] [-AfterLdX] [-Force]|[FDE|CtrlBased]
[-Default| -Automatic| -None| -Maximum| -MaximumWithoutCaching] [-Cache] [-enblPI] -aN
MegaSCU -CfgCacheCadeAdd [-rX] -Physdrv[E0:S0,...] {-Name LdNamestring} [WT|WB|ForcedWB] [-assign -LX|L0,2,5..|LALL] -aN|-a0,1,2|-aALL
MegaSCU -CfgEachDskRaid0 [WT|WB] [NORA|RA] [Direct|Cached] [-enblPI]
[CachedBadBBU|NoCachedBadBBU] [-strpszM]|[FDE|CtrlBased] [-Default| -Automatic| -None| -Maximum| -MaximumWithoutCaching] [-Cache] -[enblPI] -aN|-a0,1,2|-aALL
MegaSCU -CfgClr [-Force] -aN|-a0,1,2|-aALL
MegaSCU -CfgDsply -aN|-a0,1,2|-aALL
MegaSCU -CfgCacheCadeDsply -aN|-a0,1,2|-aALL
MegaSCU -CfgLdDel -LX|-L0,2,5...|-LALL [-Force] -aN|-a0,1,2|-aALL
MegaSCU -CfgCacheCadeDel -LX|-L0,2,5...|-LALL -aN|-a0,1,2|-aALL
MegaSCU -CfgFreeSpaceinfo -aN|-a0,1,2|-aALL
MegaSCU -CfgSpanAdd -r10 -Array0[E0:S0,E1:S1] -Array1[E0:S0,E1:S1] [-ArrayX[E0:S0,E1:S1] ...]
[WT|WB] [NORA|RA] [Direct|Cached] [CachedBadBBU|NoCachedBadBBU]
[-szXXX[-szYYY ...]][-strpszM][-AfterLdX][-Force]|[FDE|CtrlBased]
[-Default| -Automatic| -None| -Maximum| -MaximumWithoutCaching] [-Cache] [-enblPI] -aN
MegaSCU -CfgSpanAdd -r50 -Array0[E0:S0,E1:S1,E2:S2,...] -Array1[E0:S0,E1:S1,E2:S2,...]
[-ArrayX[E0:S0,E1:S1,E2:S2,...] ...][WT|WB][NORA|RA] [Direct|Cached]
[CachedBadBBU|NoCachedBadBBU][-szXXX[-szYYY ...]][-strpszM][-AfterLdX][-Force]|
[FDE|CtrlBased]
[-Default| -Automatic| -None| -Maximum| -MaximumWithoutCaching] [-Cache] [-enblPI] -aN
MegaSCU -CfgSpanAdd -r60 -Array0[E0:S0,E1:S1,E2:S2,E3,S3...] -Array1[E0:S0,E1:S1,E2:S2,E3,S3...]
[-ArrayX[E0:S0,E1:S1,E2:S2,E3,S3...] ...][WT|WB][NORA|RA] [Direct|Cached]
[CachedBadBBU|NoCachedBadBBU][-szXXX[-szYYY ...]][-strpszM][-AfterLdX][-Force]|
[FDE|CtrlBased]
[-Default| -Automatic| -None| -Maximum| -MaximumWithoutCaching] [-Cache] [-enblPI] -aN
MegaSCU -CfgAllFreeDrv -rX [-SATAOnly] [-SpanCount XXX] [WT|WB] [NORA|RA]
[Direct|Cached] [CachedBadBBU|NoCachedBadBBU] [-strpszM]
[-HspCount XX [-HspType -Dedicated|-EnclAffinity|-nonRevertible]] |
[FDE|CtrlBased]
[-Default| -Automatic| -None| -Maximum| -MaximumWithoutCaching] [-Cache] [-enblPI] -aN
MegaSCU -CfgSave -f filename -aN
MegaSCU -CfgRestore -f filename -aN
MegaSCU -CfgForeign -Scan | [-SecurityKey sssssssssss] -aN|-a0,1,2|-aALL
MegaSCU -CfgForeign -Dsply [x] | [-SecurityKey sssssssssss] -aN|-a0,1,2|-aALL
MegaSCU -CfgForeign -Preview [x] | [-SecurityKey sssssssssss] -aN|-a0,1,2|-aALL
MegaSCU -CfgForeign -Import [x] | [-SecurityKey sssssssssss] -aN|-a0,1,2|-aALL
MegaSCU -CfgForeign -Clear [x]|[-SecurityKey sssssssssss] -aN|-a0,1,2|-aALL
x - index of foreign configurations. Optional. All by default.
MegaSCU -AdpEventLog -GetEventLogInfo -aN|-a0,1,2|-aALL
MegaSCU -AdpEventLog -GetEvents {-info -warning -critical -fatal} {-f <fileName>} -aN|-a0,1,2|-aALL
MegaSCU -AdpEventLog -GetSinceShutdown {-info -warning -critical -fatal} {-f <fileName>} -aN|-a0,1,2|-aALL
MegaSCU -AdpEventLog -GetSinceReboot {-info -warning -critical -fatal} {-f <fileName>} -aN|-a0,1,2|-aALL
MegaSCU -AdpEventLog -IncludeDeleted {-info -warning -critical -fatal} {-f <fileName>} -aN|-a0,1,2|-aALL
MegaSCU -AdpEventLog -GetLatest n {-info -warning -critical -fatal} {-f <fileName>} -aN|-a0,1,2|-aALL
MegaSCU -AdpEventLog -GetCCIncon -f <fileName> -LX|-L0,2,5...|-LALL -aN|-a0,1,2|-aALL
MegaSCU -AdpEventLog -Clear -aN|-a0,1,2|-aALL
MegaSCU -AdpBbuCmd -aN|-a0,1,2|-aALL
MegaSCU -AdpBbuCmd -GetBbuStatus -aN|-a0,1,2|-aALL
MegaSCU -AdpBbuCmd -GetBbuCapacityInfo -aN|-a0,1,2|-aALL
MegaSCU -AdpBbuCmd -GetBbuDesignInfo -aN|-a0,1,2|-aALL
MegaSCU -AdpBbuCmd -GetBbuProperties -aN|-a0,1,2|-aALL
MegaSCU -AdpBbuCmd -BbuLearn -aN|-a0,1,2|-aALL
MegaSCU -AdpBbuCmd -BbuMfgSleep -aN|-a0,1,2|-aALL
MegaSCU -AdpBbuCmd -BbuMfgSeal -aN|-a0,1,2|-aALL
MegaSCU -AdpBbuCmd -getBbumodes -aN|-a0,1,2|-aALL
MegaSCU -AdpBbuCmd -SetBbuProperties -f <fileName> -aN|-a0,1,2|-aALL
MegaSCU -AdpBbuCmd -ScheduleLearn -Dsbl|-Info|[-STARTTIME DDD hh] -aN|-a0,1,2|-aALL
MegaSCU -AdpFacDefSet -aN
MegaSCU -AdpFactorySettings [-SetPciData|-SetMfgData|-SetMfcData|-SetSasAddress]
-f FileName -aN
-SetPciData reads INI file and sets FW PCI related data like Vendor
ID, Device ID etc.
-SetMfgData reads INI file and updates FW manufacturing data like
manufacturing data, revision, etc.
-SetMfcData reads INI file and updates FW manufacturing structure
-SetSasAddress reads INI file and updates SAS Address
MegaSCU -AdpSetSubOEMId XX -aN
XX - sub-OEM ID in Hexadecimal.
MegaSCU -AdpGetSubOEMId -aN
MegaSCU -AdpSettings Read | Write -f FileName -aN
-Read - reads INI file, forms MFC_DEFAULT structure and sends it to the FW.
-Write - reads MFC_DEFAULT structure and creates an INI file
MegaSCU -AdpSetVerify -f fileName -aN|-a0,1,2|-aALL
MegaSCU -AdpSetVerifyRaw -f fileName -aN|-a0,1,2|-aALL
MegaSCU -adpUpdatePersistentPage -f filename - aN
MegaSCU -AdpFwFlash -f filename [-NoSigChk] [-NoVerChk] [-FWTYPE n] -aN|-a0,1,2|-aALL
MegaSCU -BBUMfgSet -f filename -aN|-a0,1,2|-aALL
MegaSCU -AdpGetConnectorMode -ConnectorN|-Connector0,1|-ConnectorAll -aN|-a0,1,2|-aALL
MegaSCU -AdpSetConnectorMode -Internal|-External|-Auto -ConnectorN|-Connector0,1|-ConnectorAll -aN|-a0,1,2|-aALL
MegaSCU -PhyErrorCounters -aN|-a0,1,2|-aALL
MegaSCU -DirectPdMapping -Enbl|-Dsbl|-Dsply -aN|-a0,1,2|-aALL
MegaSCU -PDCpyBk -Start -PhysDrv[E0:S0,E1:S1] -aN|-a0,1,2|-aALL
MegaSCU -PDCpyBk -Stop|-Suspend|-Resume|-ShowProg|-ProgDsply -PhysDrv[E0:S0] -aN|-a0,1,2|-aALL
MegaSCU -PDInstantSecureErase -PhysDrv[E0:S0,E1:S1,...] | [-Force] -aN|-a0,1,2|-aALL
MegaSCU -CfgSpanAdd -rX -array0[E0:S1,E1:S1.....] array1[E0:S1,E1:S1.....] -szxxx -enblPI -aN|-a0,1,2|-aALL
MegaSCU -LDMakeSecure -Lx|-L0,1,2,...|-Lall -aN|-a0,1,2|-aALL
MegaSCU -Version -Cli|-Ctrl|-Driver|-Pd -aN|-a0,1,2|-aALL
MegaSCU -DestroySecurityKey | [-Force] -aN
MegaSCU -CreateSecurityKey -SecurityKey sssssssssss | [-Passphrase sssssssssss] |[-KeyID kkkkkkkkkkk] -aN
MegaSCU -CreateSecurityKey useEKMS -aN
MegaSCU -ChangeSecurityKey -OldSecurityKey sssssssssss | -SecurityKey sssssssssss|
[-Passphrase sssssssssss] | [-KeyID kkkkkkkkkkk] -aN
MegaSCU -ChangeSecurityKey -SecurityKey sssssssssss|
[-Passphrase sssssssssss] | [-KeyID kkkkkkkkkkk] -aN
MegaSCU -ChangeSecurityKey useEKMS -OldSecurityKey sssssssssss -aN
MegaSCU -ChangeSecurityKey -useEKMS -aN
MegaSCU -GetKeyID [-PhysDrv[E0:S0]] -aN
MegaSCU -SetKeyID -KeyID kkkkkkkkkkk -aN
MegaSCU -VerifySecurityKey -SecurityKey sssssssssss -aN

sssssssssss - It must be between eight and thirty-two
characters and contain at least one number,
one lowercase letter, one uppercase
letter and one non-alphanumeric character.
kkkkkkkkkkk - Must be less than 256 characters.
MegaSCU -GetPreservedCacheList -aN|-a0,1,2|-aALL
MegaSCU -DiscardPreservedCache -Lx|-L0,1,2|-Lall -force -aN|-a0,1,2|-aALL
MegaSCU -AdpInfoCompare {-checkFw <string> | -checkID -hex | -checkBatt -val | -checkDimm -val} -aN|-a0,1,2|-aALL
MegaSCU -AdpNameRtn -aN|-a0,1,2|-aALL
MegaSCU -Snapshot -Enbl -szXXX SnapshotRepositoryLD N [-AutoSnapshot] [-AutoDeleteOldestSnapshot] -Lx -aN|-a0,1,2|-aALL
MegaSCU -Snapshot -Setprop {-AutoSnapshot -val} | {-AutoDeleteOldestSnapshot -val} -Lx -aN|-a0,1,2|-aALL
MegaSCU -Snapshot -Dsbl -Lx -aN|-a0,1,2|-aALL
MegaSCU -Snapshot -TakeSnapshot [-SnapshotName NameString] [-CreateView [-viewName NameString] [-RW|RO|Blocked] -szXXX] -Lx|-L0,1,2 -aN|-a0,1,2|-aALL
MegaSCU -Snapshot -DeleteSnapshot -SnapshotTime yyyymmdd hh:mm:ss | -all [-Force|-Y] -Lx|L0,1,2 -aN|-a0,1,2|-aALL
MegaSCU -Snapshot -CreateView -SnapshotTime yyyymmdd hh:mm:ss [-viewName NameString] [-RW|RO|Blocked] -szXXX -Lx -aN|-a0,1,2|-aALL
MegaSCU -Snapshot -DeleteView [-SnapshotTime yyyymmdd hh:mm:ss] -Lx -aN|-a0,1,2|-aALL
MegaSCU -Snapshot -Info [-SnapshotTime yyyymmdd hh:mm:ss | -ViewTime yyyymmdd hh:mm:ss] -Lx -aN|-a0,1,2|-aALL
MegaSCU -Snapshot -Clean -Lx -aN|-a0,1,2|-aALL
MegaSCU -Snapshot -GetViewInfo [-ViewTargetId N ] -aN|-a0,1,2|-aALL
MegaSCU -ShowSummary [-f filename] -aN
MegaSCU -ELF -GetSafeId -aN|-a0,1,2|-aALL
MegaSCU -ELF -ControllerFeatures -aN|-a0,1,2|-aALL
MegaSCU -ELF -Applykey key <val> [Preview] -aN|-a0,1,2|-aALL
MegaSCU -ELF -TransferToVault -aN|-a0,1,2|-aALL
MegaSCU -ELF -DeactivateTrialKey -aN|-a0,1,2|-aALL
MegaSCU -ELF -ReHostInfo -aN|-a0,1,2|-aALL
MegaSCU -ELF -ReHostComplete -aN|-a0,1,2|-aALL
MegaSCU -LDViewMirror -Lx|-L0,1,2,...|-Lall -aN|-a0,1,2|-aALL
MegaSCU -LDJoinMirror -DataSrc <val>[-force] -Lx|-L0,1,2,...|-Lall -aN|-a0,1,2|-aALL
MegaSCU -SecureErase
Start[
Simple|
[Normal [ |ErasePattern ErasePatternA|ErasePattern ErasePatternA ErasePattern ErasePatternB]]|
[Thorough [ |ErasePattern ErasePatternA|ErasePattern ErasePatternA ErasePattern ErasePatternB]]]
[Standard [ |ErasePattern ErasePatternA|ErasePattern ErasePatternA ErasePattern ErasePatternB]]]
| Stop
| ShowProg
| ProgDsply
[-PhysDrv [E0:S0,E1:S1,...] | -Lx|-L0,1,2|-LALL] -aN|-a0,1,2|-aALL
MegaSCU -Perfmon {-start -interval <val>} | {stop} | {-getresults -f <Filename>} -aN
MegaSCU -AdpGetVPD [-f filename] -aN|-a0,1,2
MegaSCU -AdpSetVPD -f filename -aN|-a0,1,2
MegaSCU -DpmStat -Dsply {lct | hist | ra | ext } [-physdrv[E0:S0]] -aN|-a0,1,2|-aALL
MegaSCU -DpmStat -Clear {lct | hist | ra | ext } -aN|-a0,1,2|-aALL

Note: The directly connected drives can be specified as [:S]

Wildcard '?' can be used to specify the enclosure ID for the drive in the
only enclosure without direct connected device or the direct connected
drives with no enclosure in the system.

Note:[-aALL] option assumes that the parameters specified are valid
for all the Adapters.

The following options may be given at the end of any command above:

[-Silent] [-AppLogFile filename] [-NoLog] [-page[N]]
[-] is optional.
N - Number of lines per page.
 
Last edited:

mobilenvidia

Moderator
Sep 25, 2011
1,956
212
63
New Zealand
MegaREC, the very useful app for flashing LSI 9240/926x cards, and writing different SBRs

MegaRAID HWR Contoller Recovery tool. Version 01.02-007 August 03, 2011
Copyright (c) 2006-2010 LSI Corp.
Supports 1078 controller and its Successors.
Usage:
MegaRec -help : Display the list of options
MegaRec -adpList : Display identified MR controller(s)
MegaRec -corruptInfo : Display corruption information of controller
MegaRec -m0flash <n> <image> : Flash controller
: where <n> is the controller index
: and <image> is the image file to flash
MegaRec -cleanflash <n> <image>: Erase Flash. Programs if image is Provided.
: where <n> is the controller index
: and <image> is the image file to flash
MegaRec -readspd <n> <image> : Read controller SPD to specified file
: where <n> is the controller index
: and <image> is the specified file name
MegaRec -writespd <n> <image> : Write controller SPD from specified file
: where <n> is the controller index
: and <image> is the specified file name
MegaRec -readsbr <n> <image> [<byteCount>] : Read controller SBR to specified
: file where <n> is the controller index,
: <byteCount> is the number of bytes of SBR
: to be read and is optional to specify
: and <image> is the specified file name
MegaRec -writesbr <n> <image> : Write controller SBR from specified file
: where <n> is the controller index
: and <image> is the specified file name
MegaRec -m0flash <n> <image> <-i2o/-fusion> : Flash controller in I2O/FUSION mode
MegaRec -cleanflash <n> <image> <-i2o/-fusion> : Erase Flash. Programs if image is Provided in I2O/FUSION mode.
MegaRec -readspd <n> <image> <-i2o/-fusion> : Read controller SPD to specified file in I2O/FUSION mode
MegaRec -writespd <n> <image> <-i2o/-fusion> : Write controller SPD from specified file in I2O/FUSION mode
MegaRec -readsbr <n> <image> [<byteCount>] <-i2o/-fusion> : Read controller SBR to specified file in I2O/FUSION mode
MegaRec -writesbr <n> <image> <-i2o/-fusion> : Write controller SBR from specified file in I2O/FUSION mode



Handy little app for extracting the Setting from Firmware then editing it to write it back again.

MegaOEM Ver 8.00.23 May 17, 2010

(c)Copyright 2010, LSI Corporation, All Rights Reserved.


NOTE: The following options may be given at the end of any command below:

[-Silent] [-AppLogFile filename] [-NoLog] [-page[N]]
[-] is optional.
N - Number of lines per page.

MegaOEM -v
MegaOEM -help|-h|?
MegaOEM -adpCount
MegaOEM -AdpAllInfo -aN|-a0,1,2|-aALL
MegaOEM -AdpSetSASA xxxxxxxxxxxxxxxx -aN
MegaOEM -AdpSettings Read | Write -f FileName -aN
-Read - reads INI file, forms MFC_DEFAULT structure and sends it to the FW.
-Write - reads MFC_DEFAULT structure and creates an INI file
MegaOEM -AdpMfgSet -f fileName -aN
MegaOEM -AdpSetVerify -f fileName -aN|-a0,1,2|-aALL
MegaOEM -AdpSetVerifyRaw -f fileName -aN|-a0,1,2|-aALL
MegaOEM -AdpSetSubOEMId XX -aN
XX - sub-OEM ID in Hexadecimal.
MegaOEM -AdpGetSubOEMId -aN
MegaOEM -adpUpdatePersistentPage -f filename - aN
MegaOEM -AdpNVRAM {-Read | -Write -f FileName}|-Clear
[-StartOffset 0xXXXX ] [-EndOffset 0xXXXX] -aN

Note:[-aALL] option assumes that the parameters specified are valid
for all the Adapters.

The following options may be given at the end of any command above:

[-Silent] [-AppLogFile filename] [-NoLog] [-page[N]]
[-] is optional.
N - Number of lines per page.
 
Last edited:

mobilenvidia

Moderator
Sep 25, 2011
1,956
212
63
New Zealand
This is essential app for cross flashing the LSI9240 Based OEM cards.

LSI Corporation SAS2 Flash Utility
Version 15.00.00.00 (2012.11.06)
Copyright (c) 2008-2012 LSI Corporation. All rights reserved

No LSI SAS adapters found! Limited Command Set Available!
Advanced Mode Set

-h / -help / -?: Display the help

-o: Enables Advanced Mode

-c x: Choose adapter by index
x = index of the adapter to choose (in hexadecimal)

-cpci x: Choose adapter by PCI Address
x = string indicating PCI Address
Must be in format segment:bus:dev:func (segment optional)

-s: Set output to silent mode

-l x: Log all output to file
x = the name of the log file

-f x: Flash firmware image
x = the firmware file to flash

-fwall x: Flash firmware image to all adapters
x = the firmware file to flash


Press ENTER To Continue. Q to quit... -b x: Flash BIOS image
x = the BIOS image to flash

-biosall x: Flash BIOS image to all adapters
x = the bios image to flash

-listall: List information on all LSI SAS Controllers found

-list: List detailed information about the selected SAS controller

-debug: Enable debug prints in the tool

-ufirmware x: Upload the current firmware to file x

-ubios x: Upload the bios area to file x

-ver: Display the version information for SASFlash

-umpb x: Upload the current Mfg Parameter Block to file x

-listsasadd: List the SAS address for the selected SAS controller


Press ENTER To Continue. Q to quit... -testssid x: Verify adapter by SSVID and SSDID
x = string indicating SSVID and SSDID
Must be in format SSVID:SSDID

-e x: Erase selected controller's flash region
x = Segment(s) of flash to erase
1 . . . Erase NVSRAM
2 . . . Erase Backup Firmware
3 . . . Erase Persistent Pages including Manufacturing Pages
4 . . . Manufacturing Parameter Block
5 . . . Boot Services
6 . . . Clean Flash (erase all except Manufacturing Parameter Block)
7 . . . Erase Complete Flash
8 . . . Erase MegaRAID Firmware

-vpd x: Program the selected controller with VPD
x = VPD file to parse

-showvpd: Displays contents of the Vital Product Data for the
selected SAS controller


Press ENTER To Continue. Q to quit... -eth x: Program the selected controller's Ethernet page
x = Ethernet file to parse

-showeth: Displays contents of the Ethernet Page Data for the
selected SAS controller

-sasadd x: Program the selected controller with a SAS Address
x = SAS Address to program

-devicename: Set the flag to program Device Name
This flag will be used in conjuction with
sasadd/sasaddhi command

-scanchar x: Define character to denote start of a valid SAS Address
x = the final character preceeding the SAS Address

-sasaddhi x: Program selected controller with partial SAS Address
x = First 7 bytes of the SAS Address to program
User will be prompted for remaining SAS Address

-assem x: Program the selected controller with an assembly value
x = Assembly value


Press ENTER To Continue. Q to quit... -tracer x: Program the selected controller with a board tracer
x = Tracer value

-unvdata x: Upload the current nvdata to file x

-ufwbackup x: Upload the backup fw area to file x

-uflash x: Upload the entire flash contents to file x

-reset: Reset selected adapter

-resetall: Reset all adapters

-testfw x: Test firmware version
x = Firmware version to test in xx.xx.xx.xx format

-testbios x: Test bios version
x = BIOS version to test in xx.xx.xx.xx format


Press ENTER To Continue. Q to quit... -testls x y: Test link status of a specific PHY
x = PHY number to test
y = Link status value
Valid Link status values are:
0 - Link Down
1 - 1.5 Gbps
2 - 3.0 Gbps
3 - 6.0 Gbps

-testlsall: List link state on all PHY's on selected controller

-testprodid x: Test selected controller's product id against input
x = Product Id to test in 0x0000 format

-testnvram size: Test selected controller's NVRAM for given size
size = NVRAM size to test

-dflash x y: Download complete flash on selected controller
x = Complete flash image file to be flashed
y = Valid firmware file to be used to flash

-noreset: Skip reset of the selected adapter


Press ENTER To Continue. Q to quit... -method: Set SAS Address Programming Method.
Supported Values are 'port'.Used in Conjunction with
sasadd/sasaddhi commands

Finished Processing Commands Successfully.
Exiting SAS2Flash.
 
Last edited:

mobilenvidia

Moderator
Sep 25, 2011
1,956
212
63
New Zealand
Added a link to the utilites, one for DOS and one for Windows, happy tweaking

Updated MegaCLi and StorCLi to latest versions
 
Last edited:

mattr

Member
Aug 1, 2013
120
11
18
I keep getting this error when trying to run MegaCLI. I'm trying to get the SAS Address so is there any way to get MegaCLI working or another command line util to get the SAS Address?

 

mattr

Member
Aug 1, 2013
120
11
18
It's a Dell H200 which is a 9210 if I recall correctly. I tried it with no card and with a H310. I get the same result.