16516, MegaCLI commands

Expand / Collapse
 

16516, MegaCLI commands


MegaCLI commands

The MegaRAID SAS Software User Guide has the MegaCLI commands.

DimmerSwitch power savings commands:

Maintain PD Fail History.

 Command Syntax Proven
View Version   MegaCli v  MegaCli v
 Help  MegaCli help|h|?  MegaCli ?
 Set Adapter Properties
   
 Cache Flush Interval
 MegaCli AdpSetProp {CacheFlushInterval val} aN|a0,1,2|aALL  MegaCli AdpSetProp CacheFlushInterval 2 a0
 Rebuild Rate
 MegaCli AdpSetProp {RebuildRate val} aN|a0,1,2|aALL  MegaCli AdpSetProp RebuildRate 75 a0
 Patrol Read Rate
 MegaCli AdpSetProp {PatrolReadRate val} aN|a0,1,2|aALL  MegaCli AdpSetProp PatrolReadRate 38 a0
 BGI (BackGround Interval) Rate
 MegaCli AdpSetProp {BgiRate val} aN|a0,1,2|aALL  MegaCli AdpSetProp BgiRate 92 a0
 CC (Consistency Check) Rate
 MegaCli AdpSetProp {CCRate val} aN|a0,1,2|aALL  MegaCli AdpSetProp CCRate 23 a0  
 Reconstruction Rate
 MegaCli AdpSetProp {ReconRate val} aN|a0,1,2|aALL  MegaCli AdpSetProp ReconRate 15 a0  
 Spinup Drive Count
 MegaCli AdpSetProp {SpinupDriveCount val} aN|a0,1,2|aALL  MegaCli AdpSetProp SpinupDriveCount 2 a0
 
 Spinup Delay
 MegaCli AdpSetProp {SpinupDelay val} aN|a0,1,2|aALL MegaCli AdpSetProp SpinupDelay 10 a0 
 
 Coercion Mode
 MegaCli AdpSetProp {CoercionMode val} aN|a0,1,2|aALL MegaCli AdpSetProp CoercionMode 0 a0
 
 Predictive Failure Poll Interval  MegaCli AdpSetProp {PredFailPollInterval val}  aN|a0,1,2|aALL MegaCli AdpSetProp PredFailPollInterval 20  a0 
 
 Battery Warning Enable/Disable  MegaCli AdpSetProp {BatWarnDsbl val} aN|a0,1,2|aALL  MegaCli AdpSetProp BatWarnDsbl 0 a0  
 ECC Bucket Size  MegaCli AdpSetProp {EccBucketSize val} aN|a0,1,2|aALL  MegaCli AdpSetProp EccBucketSize 128 a0  
 ECC Bucket Leak Rate  MegaCli AdpSetProp {EccBucketLeakRate val} aN|a0,1,2|aALL  MegaCli AdpSetProp EccBucketLeakRate 64 a0  
Abort Check Consistency on Error 
 MegaCli AdpSetProp {AbortCCOnError val} aN|a0,1,2|aALL  MegaCli AdpSetProp AbortCCOnError 0 a0  
 Enable SMART Copyback  MegaCli AdpSetProp {SMARTCpyBkEnbl val} aN|a0,1,2|aALL  MegaCli AdpSetProp SMARTCpyBkEnbl 0 a0  
 Enable SSD SMART Copyback  MegaCli AdpSetProp {SSDSMARTCpyBkEnbl val} aN|a0,1,2|aALL  MegaCLI AdpSetProp SSDSMARTCpyBkEnble 0 a0  
 Enable NCQ  MegaCli AdpSetProp {NCQEnbl} aN|a0,1,2|aALL  MegaCli AdpSetProp NCQEnbl a0  
 Disable NCQ  MegaCli AdpSetProp {NCQDsbl} aN|a0,1,2|aALL  MegaCli AdpSetProp NCQDsbl a0  
 
     
 Alarm Control      
 Alarm Enable  MegaCli AdpSetProp AlarmEnbl aN|a0,1,2|aALL  MegaCli AdpSetProp AlarmEnbl a0  
 Alarm Disable  MegaCli AdpSetProp AlarmDsbl aN|a0,1,2|aALL  MegaCli AdpSetProp AlarmDsbl a0  
 Alarm Silence  MegaCli AdpSetProp AlarmSilence aN|a0,1,2|aALL  MegaCli AdpSetProp NCQDsbl a0  
       
 View Adapter Properties      
 View number of adapters  MegaCli adpcount  MegaCli adpcount  
 Cache Flush Interval  MegaCli AdpGetProp CacheFlushInterval aN|a0,1,2|aALL  MegaCli AdpGetProp CacheFlushInterval a0  
 Rebuild Rate  MegaCli AdpGetProp RebuildRate aN|a0,1,2|aALL  MegaCli AdpGetProp RebuildRate a0  
 Patrol Read Rate  MegaCli AdpGetProp PatrolReadRate  aN|a0,1,2|aALL  MegaCli AdpGetProp PatrolReadRate  a0  
 BGI (BackGround Interval) Rate  MegaCli AdpGetProp BgiRate aN|a0,1,2|aALL  MegaCli AdpGetProp BgiRate a0  
 CC (Consistency Check) Rate
 MegaCli AdpGetProp CCRate aN|a0,1,2|aALL  MegaCli AdpGetProp CCRate a0  
 Reconstruction Rate  MegaCli AdpGetProp ReconRate aN|a0,1,2|aALL  MegaCli AdpGetProp ReconRate a0  
 Spinup Drive Count  MegaCli AdpGetProp SpinupDriveCount aN|a0,1,2|aALL MegaCli AdpGetProp SpinupDriveCount a0 
 
 Spinup Delay  MegaCli AdpGetProp SpinupDelay aN|a0,1,2|aALL  MegaCli AdpGetProp SpinupDelay a0  
 Coercion Mode  MegaCli AdpGetProp CoercionMode aN|a0,1,2|aALL  MegaCli AdpGetProp CoercionMode a0  
 Predictive Failure Poll Interval  MegaCli AdpGetProp PredFailPollInterval aN|a0,1,2|aALL  MegaCli AdpGetProp PredFailPollInterval a0  
 Battery Warning Enable/Disable  MegaCli AdpGetProp BatWarnDsbl aN|a0,1,2|aALL  MegaCli AdpGetProp BatWarnDsbl a0  
 ECC Bucket Size  MegaCli AdpGetProp EccBucketSize aN|a0,1,2|aALL  MegaCli AdpGetProp EccBucketSize a0  
 ECC Bucket Leak Rate  MegaCli AdpGetProp EccBucketLeakRate aN|a0,1,2|aALL  MegaCli AdpGetProp EccBucketLeakRate a0  
 Abort Check Consistency on Error  (CC)  MegaCli AdpGetProp AbortCCOnError aN|a0,1,2|aALL  MegaCli AdpGetProp AbortCCOnError a0  
Alarm Status (Enabled/Disabled/
Silenced)
 MegaCli AdpGetProp AlarmDsply aN|a0,1,2|aALL  MegaCli AdpGetProp AlarmDsply a0  
 All Adapter Information  MegaCli AdpAllInfo aN|a0,1,2|aALL  MegaCli AdpAllInfo a0  
 Get Adapter Time  MegaCli AdpGetTime aN|a0,1,2|aALL  MegaCli AdpGetTime a0  
 Set Adapter Time  MegaCli AdpSetTime yyyymmdd hh:mm:ss aN  MegaCli AdpSetTime 20071210 9:33:00 a0  
 Adapter Set Verify  MegaCli AdpSetTime yyyymmdd hh:mm:ss aN  MegaCli AdpSetTime 20071210 9:33:00 a0  
       
 Adapter BIOS State / Boot Options
     
 Enable BIOS
 MegaCli AdpBIOS Enbl aN|a0,1,2|aALL  MegaCli AdpBIOS Enbl a0  
 Disable BIOS  MegaCli AdpBIOS Dsbl aN|a0,1,2|aALL  MegaCli AdpBIOS Dsbl a0  
 Set BIOS to Stop on Error  MegaCli AdpBIOS SOE aN|a0,1,2|aALL  MegaCli AdpBIOS SOE a0  
 Set BIOS to Bypass Error  MegaCli AdpBIOS BE aN|a0,1,2|aALL  MegaCli AdpBIOS BE a0  
 Display BIOS State  MegaCli AdpBIOS Dsply aN|a0,1,2|aALL MegaCli AdpBIOS Dsply a0
 
Set Boot Drive
 MegaCli AdpBootDrive {Set Lx} aN|a0,1,2|aALL MegaCli AdpBIOS Dsply a0
 
 Display Boot Drive  MegaCli AdpBootDrive Get aN|a0,1,2|aALL  MegaCli AdpBootDrive Get a0  
       
 Adapter's Auto Rebuild Settings
     
       


Command Type    Description MegaCLI Command
Server / System Show system  overview Displays a summary of all the controllers that are present in the server. MegaCLI adpCount
  Download firmware CLI will attempt to download fw to all compatible controllers that supports the image. By default CLI with check signature and version. MegaCli AdpFwFlash f filename [NoSigChk] [NoVerChk] aN|a0,1,2|aALL  
  Flash FW in Mode 0 with ROM file Flashes the firmware in Mode 0 with the ROM file listed.  For Mode 0 flash, the adapter number
is not valid.
MegaCli AdpM0Flash f filename
Controller Display Controller / Adapter Properties Displays information about the adapter, such as cluster state, BIOS, alarm, firmware
version, etc.
MegaCli AdpAllInfo aN|a0,1,2|aALL  
  Set Controller / Adapter Properties Sets the properties on the selected adapter(s). See note below. MegaCli AdpSetProp {CacheFlushInterval val} | { RebuildRate val} | {PatrolReadRate val} | {BgiRate val} | {CCRate val}| {ReconRate val} | | {CoercionMode |  {ClusterEnable val} | {PredFailPollInterval val} | {BatWarnDsbl val} | {EccBucketSize val} | {EccBucketLeakRate val} val} | {AbortCCOnError val} | AlarmEnbl | AlarmDsbl | AlarmSilence | {SMARTCpyBkEnbl val} | {SSDSMARTCpyBkEnbl val} | NCQEnbl | NCQDsbl | {MaintainPdFailHistoryEnbl val} | {RstrHotSpareOnInsert val} | {SpinupDriveCount val} | {SpinupDelay val} | {EnblSpinDownUnConfigDrvs val} | {EnblSSDPatrolRead val} | {DisableOCR val} | {BootWithPinnedCache val}| AutoEnhancedImportEnbl | AutoEnhancedImportDsbl | {ExposeEnclDevicesEnbl val} | {SpinDownTime val} aN|a0,1,2|aALL  
  Display Specfied Controller / Adapter Properties Displays the specified properties on the selected adapter(s).
For MegaRAID command, see Note (2) below for specific parameters. 
MegaCli AdpGetProp CacheFlushInterval | RebuildRate | PatrolReadRate|
BgiRate | CCRate | ReconRate | SpinupDriveCount | SpinupDelay |
CoercionMode | PredFailPollInterval | ClusterEnable | BatWarnDsbl |
EccBucketSize | EccBucketLeakRate | EccBucketCount | AlarmDsply aN|
a0,1,2|aALL
  Flash Firmware If issued at server level without controller option, cli will attempt to
download fw to all compatible controllers that supports the image
MegaCli AdpFwFlash f filename [NoSigChk] [NoVerChk] aN|a0,1,2|aALL  
  Set Factory Defaults Sets the factory defaults on the selected controller/adapter. MegaCli AdpFacDefSet aN
  Set SAS Address Sets the adapters SAS address. This string must be a 64digit hexadecimal number. MegaCli AdpSetSASA str[064] aN
  Set Time and Date Sets the time and date on the adapter. See note 3 below. AdpSetTime yyyymmdd HH:mm:ss aN|a0,1,2|aALL
  Display Time and Date Displays the time and date on the adapter.   AdpGetTime aN
Patrol Read Show Patrol Read rate Displays patrolreadrate? MegaCli AdpGetProp PatrolReadRate aN|a0,1,2|aALL
  Get Properties of Patrol Read Displays patrol read properties?? MegaCli AdpGetProp {PatrolReadRate val} aN|a0,1,2|aALL
  Get Status of Patrol Read Displays patrol read status. N/A
  Set Patrol Read Options Sets Patrol Read options on a single adapter, multiple adapters, or all adapters (X = single controller).  See Note (4). MegaCli AdpPR Dsbl|EnblAuto|EnblMan|Start|Stop|Info| SSDPatrolReadEnbl | SSDPatrolReadDsbl
|{SetDelay Val}|{SetStartTime yyyymmdd hh}|{maxConcurrentPD Val} aN|a0,1,2|aALL
  Start Patrol Read Specify start patrol read option. see above
  Stop Patrol Read Specify stop patrol read option. see above
  Set Patrol Read Delay Interval Sets the time between Patrol Read iterations on a single adapter, multiple adapters, or all adapters. AdpPRSetDelay Val aN|a0,1,2|aALL          Val: Sets delay time between Patrol Read iterations. The value is time of delay in hours. A value of zero means no delay and an immediate restart.
BIOS Related Set Bootable Virtual Disk ID Sets the virtual disk as bootable so that during the next reboot, the BIOS will look for a boot sector in the specified virtual disk. MegaCli AdpBootDrive {Set {Lx |    physdrv[E0:S0]}}  aN|a0,1,2|aALL  
  Show Bootable Virtual Disk ID Displays the bootable virtual disk ID. MegaCli AdpBootDrive  Get aN|a0,1,2|aALL 
  Set BIOS Status Options Sets BIOS options.  Enables, Disables, or display BIOS status, or stop on error during POST, or bypass errors during POST. MegaCli AdpBIOS Enbl | Dsbl | Dsply | SOE | BE aN|a0,1,2|aALL  
BBU Display BBU Information Displays complete information about the BBU, such as status, capacity information, design information, and properties. MegaCli AdpBbuCmd aN|a0,1,2|aALL  
  Display Current BBU Properties Displays current BBU properties of auto learn period, next learn time, learn delay interval, and autolearn mode. MegaCli AdpBbuCmd GetBbuProperties aN|a0,1,2|aALL  
  Display BBU Status Information Displays complete information about the BBU status, such as the temperature and voltage.
MegaCli AdpBbuCmd GetBbuStatus aN|a0,1,2|aALL  
  Display BBU Capacity Displays BBU capacity information. See Note (6). MegaCli AdpBbuCmd GetBbuCapacityInfo aN|a0,1,2|aALL  
  Set BBU Learn Delay interval Sets BBU Property of Learn Delay Interval MegaCli AdpBbuCmd SetBbuProperties f <fileName> aN|a0,1,2|aALL 
  Start BBU Learning Cycle Starts the learning cycle on the BBU. No parameter is needed for this option. MegaCli AdpBbuCmd BbuLearn aN|a0,1,2|aALL  
  Place Battery in LowPower Storage Mode Places the battery in LowPower Storage mode.  The battery automatically exits this state after 5 seconds. MegaCli AdpBbuCmd BbuMfgSleep aN|a0,1,2|aALL  
  Seal EEPROM Write ccess. Seal the gas guage EEPROM write access.  This opcode is should only be used at manufacturing time. MegaCli AdpBbuCmd BbuMfgSeal aN|a0,1,2|aALL  
Configuration Related Add RAID 0,1,5, or 6 Configuration Adds a RAID level 0, 1, 5, or 6 configuration to a specified adapter.   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
  Add RAID 10,50, or 60 Configuration Creates a RAID level 10, 50, or 60 (spanned) configuration from the specified arrays.  Multiple arrays are specified using the ArrayX[E0:S0,...] option. 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
  Add virtual drive for application type Add virtual drive by specifying application type and group ID N/A
  Create virtual drive and a new drive group User selects drives for each driveGroup / subgroup.  This option is for RAID10, RAID50, and RAID60 only. N/A
  Clear Existing Configuration Clears the existing configuration. MegaCli CfgClr aN|a0,1,2|aALL
  Save Configuration  Saves the configuration for the selected adapter(s) to the given filename. MegaCli CfgSave f FileName aN
  Restore Configuration Data from File Can store or restore all read and write adapter properties, all read and write properties for virtual disks, and the RAID configuration including hot spares (with some caveates).
MegaCli CfgRestore f FileName aN
  Manage Foreign Configuration Information Scans and displays available foreign configurations, provides a preview of the imported foreign configuration, displays, import, or clear a foreign configuration. MegaCli CfgForeign Scan | {Preview | Dsply| Import | Clear
[FID]} aN|a0,1,2|aALL
  Delete Specified Virtual Disk(s) Delete one virtual disk, multiple virtual disks, or all the selected virtual disks on selected adapter(s). MegaCli CfgLDDel Lx|L0,1,2|Lall aN|a0,1,2|aALL
  Display Free Space Displays all the free space available for configuration, includes the number of disk groups, the number of spans in each disk group, the number of free space slots in each disk group, the start block, and the size (in both blocks and megabytes) of each free space slot. MegaCli CfgFreeSpaceInfo aN|a0,1,2|aALL
Virtual Drive Get Virtual Drive Information Displays VD information; includes name, RAID level, RAID level qualifier, size in MBs, state, stripe size, number of drives, span depth, cache policy, access policy, and ongoing activity progress, if any, including initialization, background initialization, consistency check, and reconstruction.

MegaCli LDInfo Lx|L0,1,2|Lall aN|a0,1,2|aALL
  Change Virtual Drive Cache and Access Paramters Specifies: writethrough or writeback, cache policy, whether to use write cache when BBU is bad, access policy, enables or disable disk cache. 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
  Show Cache and Access Policies Displays the cache and access policies of the virtual drive(s). MegaCli LDGetProp Cache | Access | Name | DskCache Lx|L0,1,2|
Lall aN|a0,1,2|aALL
  Start Virtual Drive Initialization Starts the initialization (writing 0s) on the virtual disk(s). MegaCli LDInit Start [Fast|Full]  Lx|L0,1,2|Lall aN|a0,1,2|aALL
  Abort Virtual Drive Initialization Aborts the ongoing initialization on the LD(s). MegaCli LDInit Abort Lx|L0,1,2|Lall aN|a0,1,2|aALL
  Show Snapshot of Ongoing Initialization Displays the snapshot of the ongoing initialization, if any. MegaCli LDInit ShowProg Lx|L0,1,2|Lall aN|a0,1,2|aALL
  Show progress of Ongoing Initialization Displays the progress of the ongoing initialization. The routine continues to display the progress until at least one initialization is completed or a key is presssed. MegaCli LDInit ProgDsply Lx|L0,1,2|Lall aN|a0,1,2|aALL
  Start Virtual Drive Consistency Check Starts a consistency check (CC) on the virtual disk(s). MegaCli LDCC Start Lx|L0,1,2|Lall aN|a0,1,2|aALL
  Abort Virtual Drive Consistency Check Stops a consistency check (CC) on the virtual disk(s). MegaCli LDCC Abort Lx|L0,1,2|Lall aN|a0,1,2|aALL
  Show Snapshot of Ongoing Consistency Check Displays the snapshot of an ongoing CC. MegaCli LDCC ShowProg Lx|L0,1,2|Lall aN|a0,1,2|aALL
  Show progress of Ongoing Consistency Check Displays ongoing CC progress. The progress displays until at least
one CC is completed or a key is pressed.
MegaCli LDCC  ProgDsply Lx|L0,1,2|Lall aN|a0,1,2|aALL
  Manage Background Initialization Enable or disable background initialization MegaCli LDBI Enbl|Dsbl Lx|L0,1,2|Lall aN|a0,1,2|aALL
  Get Progress of ongoing background initialization Displays an ongoing background initialization in a loop. This function completes only when all background initialization processes complete or you press a key to exit. MegaCli LDBI GetSetting Lx|L0,1,2|Lall aN|a0,1,2|aALL
  Get Current Progress value Displays the current progress value. MegaCli LDBI ProgDsply Lx|L0,1,2|Lall aN|a0,1,2|aALL
  Get Setting of Current Background Initialization Displays current background initialization setting (Enabled or
Disabled).
MegaCli LDBI ShowProg Lx|L0,1,2|Lall aN|a0,1,2|aALL
  Virtual Drive Reconstruction Perform reconstruction of the selected virtual disk to a new RAID level and display various progress and value. MegaCli LDRecon {Start Rx [Add | Rmv PhysDrv[E0:S0,E1:S1,...] ] } |ShowProg|ProgDsply Lx aN
  Show PDs under VD Displays information including number of VDs, RAID level of VDs, and physical drive size info (raw size, coerced size, uncoerced size), and SAS address. MegaCli LDPDInfo aN|a0,1,2|aALL
  Show Number of VDs Displays the number of virtual disks attached to the adapter. The return value is the number of virtual disks. MegaCli LDGetNum aN|a0,1,2|aALL
Physical Drive Show PD Properties of PD Displays physical disk information. MegaCli pdInfo PhysDrv[E0:S0,E1:S1,...] aN|a0,1,2|aALL
  Show PD Properties of PD in enclosure slot Displays info of physical disk drives connected to enclosure and adapter slot. MegaCli pdInfo PhysDrv[E0:S0,E1:S1,...] aN|a0,1,2|aALL
  Manages a physical disk rebuild or displays the rebuild progress Starts a rebuild or stops an ongoing rebuild, displays current progress percentage and time remaining for the
rebuild, or displays the ongoing rebuild progress.
MegaCli PDRbld Start|Stop|ShowProg |ProgDsply PhysDrv [E0:S0,E1:S1,...] aN|a0,1,2|aALL 
  Stop Rebuild on PD Stops an ongoing rebuild. see above
  Show Missing PDs Marks the configured physical disk drive as missing for the selected adapter(s). MegaCli PdMarkMissing physdrv[E0:S0,E1:S1,...] aN|a0,1,2|aALL
  Show Missing PDs Displays the physical disk drive(s) in missing status. MegaCli PdGetMissing aN|a0,1,2|aALL 
  Replace Missing PDs Replaces the configured physical disk drives that are identified as missing and then starts an automatic rebuild. MegaCli PdReplaceMissing physdrv[E0:S0] arrayA, rowB aN 
  Show Rebuilds Display rebuilds of PDs. MegaCli PDRbld Start|Stop|ShowProg |ProgDsply PhysDrv [E0:S0,E1:S1,...] aN|a0,1,2|aALL 
  Set PD State Online Changes the physcial disk drive state to Online. MegaCli PDOnline PhysDrv[E0:S0,E1:S1....] aN|a0,1,2
  Set PD State Offline Changes the physcial disk drive state to Offline. MegaCli PDOffline PhysDrv[E0:S0,E1:S1....] aN|a0,1,2|aALL
  Change PD State to UnconfiguredGood Change PD State from UnconfiguredBad to UnconfiguredGood. MegaCli PDMakeGood PhysDrv[E0:S0,E1:S1....] aN|a0,1,2|aALL
  Make/Delete Hot Spare Changes the physical disk drive state (as it relates to hot spares) and associates the drive to an enclosure and virtual disk. MegaCli PDHSP {Set [{Dedicated ArrayN |Array0,1...}] [
EnclAffinity] [nonRevertible] } | Rmv PhysDrv[E0:S0,E1:S1,...]
aN|a0,1,2|aALL
  Erase PD (Manage PD Initialization) Starts and Stops initialization, displays the current progress percentage and time remaining for the
initialization, or displays the ongoing clear progress.
MegaCli PDClear Start |Stop|ShowProg |ProgDsply
PhysDrv[E0:S0,E1:S1....] aN|a0,1,2|aALL
  Identify PD Locates the physical disk drive(s) and activates the physical disk activity LED. MegaCli  PDLocate PhysDrv[E0:S0,E1:S1....] aN|a0,1,2|aALL
  Prepare PD for Removal Prepares unconfigured physical drive(s) for removal. MegaCli  PDPrpRmv [Undo] PhysDrv[E0:S0,E1:S1....] aN|a0,1,2|aALL
  Show Number of PDs connected. Displays the total number of physical disk drives attached to an adapter.  Drives can be attached directly or through enclosures.  Return value is number of PDs. MegaCli  PDGetNum aN|a0,1,2|aALL
  List All PDs Displays information about all physical disk drives and other devices connected to the selected adapter(s); includes drive type, size, serial number, and firmware version. For SAS devices: includes SAS address.  For SAS expanders: includes number of drives connected to expander. MegaCli  PDList aN|a0,1..|aAll
EnclosureRelated Show Enclosure Information Displays information about the enclosure for the selected adapter(s). MegaCli  EncInfo aN|a0,1,2|aALL
SAS Topolgy Show Phy Info Displays PHY connection information for physical PHY M on the adapter(s). MegaCli PHYInfo phyM aN|a0,1,2|aALL
Alarm Show Controller Alarm  Displays controller alarm properties. MegaCli AdpGetProp AlarmDsply aN|a0,1,2|aALL
  Control Controller Alarm Currently MegaCLI does not support Test. Is this required? MegaCli AdpSetProp AlarmEnbl | AlarmDsbl | AlarmSilence aN|a0,1,2|aALL
Event and Logs Get overall event inforamtion. Displays total number of events, newest and oldest seq num, shutdown sequence number, reboot sequence number, clear sequence number, and 10 (TBD) most recent event MegaCli AdpEventLog GetEventLogInfo aN|a0,1,2|aALL 
  Get event log entry details. The information shown consists of total number of entries available at firmware side since last clear and details of each entries of error log. MegaCli AdpEventLog GetEvents {info warning critical fatal} {f <fileName>} aN|a0,1,2|aALL 
  Get event log entries with filter. gives count of events starting from specified seqNum and matching category and severity 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
  Clear Event Log Clears the event log for the selected adapter(s). MegaCli AdpEventLog Clear aN|a0,1,2|aALL
  Turn off BBU terminal logging. Turns off BBU for firmware terminal logging.  Must shut down or turn off power to system after running command. MegaCli FwTermLog Bbuoff aN| a0,1,2|aALL
  Temporarily turn off BBU terminal logging. Temporarily turn off BBU firmware logging.  Battery will be turned on after next reboot. MegaCli FwTermLog BbuoffTemp aN| a0,1,2|aALL
  Turns on BBU lermianl logging. Turns on BBU for TTY (firmware terminal) logging. MegaCli FwTermLog Bbuon aN| a0,1,2|aALL
  Show BBU settings for logging Displays current BBU settings for TTY logging. MegaCli FwTermLog BbuGet aN| a0,1,2|aALL
  Show BBU log entries with details on specified controller. Dispalys TTY firmware terminal log entries with details on given adapter(s).  The information shown consists of total number of entries available on firmware side. MegaCli FwTermLog Dsply aN| a0,1,2|aALL
  Clear BBU terminal log. Clears the TTY firmware terminal log. MegaCli FwTermLog Clear aN| a0,1,2|aALL
 
Diagnostic Related Start Diagnostics Setting Sets the amount of time for the adapter diagnostic to run. MegaCli AdpDiag [val] aN|a0,1,2|aALL
  Starts Battery Test Requires turning off power to system, and then powering on and rebooting system. MegaCli AdpBatTest aN|a0,1,2|aALL
  Starts R/W NVRAM diagnostic. Read: Reads the content in NVRAM and writes the data to filename. Write: Reads data from file filename and writes to NVRAM. Clear: Writes 0 to NVRAM at specified range from start offset to end offset. MegaCli AdpNVRAM {Read|Write ffilename}|Clear
[StartOffset 0xXXXX] [EndOffset 0xXXXX] aN 
ELF Display safeID Displays selected controllers safeID MegaCli ELF GetSafeId a0
Controller Features Display the Premium features that are enabled on this controller MegaCli ELF ControllerFeatures a0
Activation Key preview Preview the trail or unlimited key of premium features MegaCli ELF Applykey key val  preview a0
Activating preminum Key Activates the trail or unlimited key of premium features MegaCli ELF Applykey key val   a0
Transfer to vault Transfers the featues to the Vault that are enabled on the controller MegaCli ELF  TransferToVault  a0
Deactivating Trails Deactivates the Features with trail keys on the controller MegaCli ELF DeactivateTrialKey a0
Rehost information Gives the information of rehost MegaCli ELF ReHostInfo  a0
Status of rehost MegaCli ELF ReHostComplete  a0
BreakMirror Breakmirror Breaks the Mirror Virtual Disk MegaCli ldbreakmirror L0  a0
Join Mirror Joins the Mirror Virtual Disk MegaCli ldjoinmirror DataSrc  val<0/1> force  L0  a0
View Mirror information Lists the information of the Virtualdisk which has got broke using Breakmirror MegaCli ldviewmirror L0  a0
Snapshot Adapters Snapshot Properties Gets the Controller default snapshot space and auto snap shot space information MegaCli adpgetprop defaultsnapshotspace | autosnapshotspace a0
  Setting Adapter properties Sets the Controller default snapshot space and auto snap shot space information MegaCli adpsetprop defaultsnapshotspace | autosnapshotspace 12% a0
  Enable Snapshot Enable or disable Snapshot on a VD MegaCli snapshot enbl|dsbl sz500 snapshotrepositoryld 0 l0 a0
  Take Snapshot Creating a snapshot and a view  with a specific size on a Virtual Disk MegaCli snapshot takesnapshot snapshotname snap_1 createview viewname view_1 RW sz500 L0 a0
  Snapshot properties Setting snapshot properties after it gets created MegaCli Snapshot SetProp autosnapshot |AutoDeleteOldestSnapshot 1 L0 a0
  Delete all Snapshot Deleting all snapshot MegaCli Snapshot DeleteSnapshot  all  L0 a0
  Delete Snapshot Deleting a specific snapshot based on its creation time MegaCli Snapshot DeleteSnapshot  [SnapshotTime= yyyymmdd hh:mm:ss] force L0 a0
  View Creation Creatiion of view on the existing snapshot MegaCli Snapshot CreateView SnapshotTime 20110715 14:41:18 viewname view_2 RW sz500 L0 a0
  Delete view Deleting the views that belongs to a specifc snapshot MegaCli Snapshot DeleteView [SnapshotTime yyyymmdd hh:mm:ss] Lx a0
  Rollback Rolling back the configuration to a state that a specific snapshot MegaCli Snapshot Rollback SnapshotTime 20110715 14:41:18  L0 a0
  Clean Cleans up all snapshots that are created MegaCli Snapshot Clean  L0 a0
  Shapshot information Lists all the views information that belongs to this snapshot MegaCli snapshot info L0 a0
  Snapshot View information Gives information of a specfic View  MegaCli Snapshot GetViewInfo  a0
Miscellaneous Help show version Displays version information. MegaCli v
  Help for show command Shows help for all show cmds at server level MegaCLI help|h|?
  Help for controller level show command Shows help for all show cmds at controller level N/A




Rate this Article:
     

Attachments



Add Your Comments


Comment require login or registration.

Details
Last Modified:Friday, September 09, 2011
Last Modified By: Administrator
Type: FAQ
Rated 2 stars based on 4 votes.
Article has been viewed 12,378 times.
Created:Tuesday, June 07, 2011
Options