MegaCli64 Cheat Sheet

From AN!Wiki
Jump to: navigation, search

 AN!Wiki :: MegaCli64 Cheat Sheet

Template note icon.png
Note: All content here is "©2014 LSI Corporation. All rights reserved".

This copy is made of reference only and no claim is made by Alteeve's Niche! to any of the referenced material.

This page is a nearly direct copy of LSI/Avago reference page, as of July 26, 2014, for the MegaCli Linux command line tool.

This copy was made for two reasons;

  • The original article was formatted in such a way that the content was hard to read.
  • A copy of the content was desired in case of interruption in LSI/Avago's website.

Contents

General Commands

Command Syntax
View Version MegaCli64 v
Help MegaCli64 help|h|?

Set Adapter Properties

Command Syntax Example
Cache Flush Interval MegaCli64 AdpSetProp {CacheFlushInterval val} aN|a0,1,2|aALL MegaCli64 AdpSetProp CacheFlushInterval 2 a0
Rebuild Rate MegaCli64 AdpSetProp {RebuildRate val} aN|a0,1,2|aALL MegaCli64 AdpSetProp RebuildRate 75 a0
Patrol Read Rate MegaCli64 AdpSetProp {PatrolReadRate val} aN|a0,1,2|aALL MegaCli64 AdpSetProp PatrolReadRate 38 a0
BGI (BackGround Interval) Rate MegaCli64 AdpSetProp {BgiRate val} aN|a0,1,2|aALL MegaCli64 AdpSetProp BgiRate 92 a0
CC (Consistency Check) Rate MegaCli64 AdpSetProp {CCRate val} aN|a0,1,2|aALL MegaCli64 AdpSetProp CCRate 23 a0
Reconstruction Rate MegaCli64 AdpSetProp {ReconRate val} aN|a0,1,2|aALL MegaCli64 AdpSetProp ReconRate 15 a0
Spinup Drive Count MegaCli64 AdpSetProp {SpinupDriveCount val} aN|a0,1,2|aALL MegaCli64 AdpSetProp SpinupDriveCount 2 a0
Spinup Delay MegaCli64 AdpSetProp {SpinupDelay val} aN|a0,1,2|aALL MegaCli64 AdpSetProp SpinupDelay 10 a0
Coercion Mode MegaCli64 AdpSetProp {CoercionMode val} aN|a0,1,2|aALL MegaCli64 AdpSetProp CoercionMode 0 a0
Predictive Failure Poll Interval MegaCli64 AdpSetProp {PredFailPollInterval val} aN|a0,1,2|aALL MegaCli64 AdpSetProp PredFailPollInterval 20 a0
Battery Warning Enable/Disable MegaCli64 AdpSetProp {BatWarnDsbl val} aN|a0,1,2|aALL MegaCli64 AdpSetProp BatWarnDsbl 0 a0
ECC Bucket Size MegaCli64 AdpSetProp {EccBucketSize val} aN|a0,1,2|aALL MegaCli64 AdpSetProp EccBucketSize 128 a0
ECC Bucket Leak Rate MegaCli64 AdpSetProp {EccBucketLeakRate val} aN|a0,1,2|aALL MegaCli64 AdpSetProp EccBucketLeakRate 64 a0
Abort Check Consistency on Error MegaCli64 AdpSetProp {AbortCCOnError val} aN|a0,1,2|aALL MegaCli64 AdpSetProp AbortCCOnError 0 a0
Enable SMART Copyback MegaCli64 AdpSetProp {SMARTCpyBkEnbl val} aN|a0,1,2|aALL MegaCli64 AdpSetProp SMARTCpyBkEnbl 0 a0
Enable SSD SMART Copyback MegaCli64 AdpSetProp {SSDSMARTCpyBkEnbl val} aN|a0,1,2|aALL MegaCli64 AdpSetProp SSDSMARTCpyBkEnble 0 a0
Enable NCQ MegaCli64 AdpSetProp {NCQEnbl} aN|a0,1,2|aALL MegaCli64 AdpSetProp NCQEnbl a0
Disable NCQ MegaCli64 AdpSetProp {NCQDsbl} aN|a0,1,2|aALL MegaCli64 AdpSetProp NCQDsbl a0

Alarm Control

Command Syntax Example
Alarm Enable MegaCli64 AdpSetProp AlarmEnbl aN|a0,1,2|aALL MegaCli64 AdpSetProp AlarmEnbl a0
Alarm Disable MegaCli64 AdpSetProp AlarmDsbl aN|a0,1,2|aALL MegaCli64 AdpSetProp AlarmDsbl a0
Alarm Silence MegaCli64 AdpSetProp AlarmSilence aN|a0,1,2|aALL MegaCli64 AdpSetProp NCQDsbl a0

View Adapter Properties

Command Syntax Example
View number of adapters MegaCli64 adpcount MegaCli64 adpcount
Cache Flush Interval MegaCli64 AdpGetProp CacheFlushInterval aN|a0,1,2|aALL MegaCli64 AdpGetProp CacheFlushInterval a0
Rebuild Rate MegaCli64 AdpGetProp RebuildRate aN|a0,1,2|aALL MegaCli64 AdpGetProp RebuildRate a0
Patrol Read Rate MegaCli64 AdpGetProp PatrolReadRate aN|a0,1,2|aALL MegaCli64 AdpGetProp PatrolReadRate a0
BGI (BackGround Interval) Rate MegaCli64 AdpGetProp BgiRate aN|a0,1,2|aALL MegaCli64 AdpGetProp BgiRate a0
CC (Consistency Check) Rate MegaCli64 AdpGetProp CCRate aN|a0,1,2|aALL MegaCli64 AdpGetProp CCRate a0
Reconstruction Rate MegaCli64 AdpGetProp ReconRate aN|a0,1,2|aALL MegaCli64 AdpGetProp ReconRate a0
Spinup Drive Count MegaCli64 AdpGetProp SpinupDriveCount aN|a0,1,2|aALL MegaCli64 AdpGetProp SpinupDriveCount a0
Spinup Delay MegaCli64 AdpGetProp SpinupDelay aN|a0,1,2|aALL MegaCli64 AdpGetProp SpinupDelay a0
Coercion Mode MegaCli64 AdpGetProp CoercionMode aN|a0,1,2|aALL MegaCli64 AdpGetProp CoercionMode a0
Predictive Failure Poll Interval MegaCli64 AdpGetProp PredFailPollInterval aN|a0,1,2|aALL MegaCli64 AdpGetProp PredFailPollInterval a0
Battery Warning Enable/Disable MegaCli64 AdpGetProp BatWarnDsbl aN|a0,1,2|aALL MegaCli64 AdpGetProp BatWarnDsbl a0
ECC Bucket Size MegaCli64 AdpGetProp EccBucketSize aN|a0,1,2|aALL MegaCli64 AdpGetProp EccBucketSize a0
ECC Bucket Leak Rate MegaCli64 AdpGetProp EccBucketLeakRate aN|a0,1,2|aALL MegaCli64 AdpGetProp EccBucketLeakRate a0
Abort Check Consistency on Error (CC) MegaCli64 AdpGetProp AbortCCOnError aN|a0,1,2|aALL MegaCli64 AdpGetProp AbortCCOnError a0
Alarm Status (Enabled/Disabled/Silenced) MegaCli64 AdpGetProp AlarmDsply aN|a0,1,2|aALL MegaCli64 AdpGetProp AlarmDsply a0
All Adapter Information MegaCli64 AdpAllInfo aN|a0,1,2|aALL MegaCli64 AdpAllInfo a0
Get Adapter Time MegaCli64 AdpGetTime aN|a0,1,2|aALL MegaCli64 AdpGetTime a0
Set Adapter Time MegaCli64 AdpSetTime yyyymmdd hh:mm:ss aN MegaCli64 AdpSetTime 20071210 9:33:00 a0
Adapter Set Verify MegaCli64 AdpSetTime yyyymmdd hh:mm:ss aN MegaCli64 AdpSetTime 20071210 9:33:00 a0

Adapter BIOS State / Boot Options

Command Syntax Example
Enable BIOS MegaCli64 AdpBIOS Enbl aN|a0,1,2|aALL MegaCli64 AdpBIOS Enbl a0
Disable BIOS MegaCli64 AdpBIOS Dsbl aN|a0,1,2|aALL MegaCli64 AdpBIOS Dsbl a0
Set BIOS to Stop on Error MegaCli64 AdpBIOS SOE aN|a0,1,2|aALL MegaCli64 AdpBIOS SOE a0
Set BIOS to Bypass Error MegaCli64 AdpBIOS BE aN|a0,1,2|aALL MegaCli64 AdpBIOS BE a0
Display BIOS State MegaCli64 AdpBIOS Dsply aN|a0,1,2|aALL MegaCli64 AdpBIOS Dsply a0
Set Boot Drive MegaCli64 AdpBootDrive {Set Lx} aN|a0,1,2|aALL MegaCli64 AdpBIOS Dsply a0
Display Boot Drive MegaCli64 AdpBootDrive Get aN|a0,1,2|aALL MegaCli64 AdpBootDrive Get a0

Adapter's Auto Rebuild Settings

Template note icon.png
Note: This appears to be missing in the source document.

Command Type

These sections are broken out into sections based on the 'Command Type' column in the source document. This breakout was done to preserve horizontal screen real-estate and to make index navigation more useful.

Server / System

Command Description Syntax
Show system overview Displays a summary of all the controllers that are present in the server. MegaCli64 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. MegaCli64 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. MegaCli64 AdpM0Flash f filename

Patrol Read

Command Description Syntax
Show Patrol Read rate Displays patrolreadrate? MegaCli64 AdpGetProp PatrolReadRate aN|a0,1,2|aALL
Get Properties of Patrol Read Displays patrol read properties?? MegaCli64 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). MegaCli64 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.

MegaCli64 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

Command Description Syntax
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. MegaCli64 AdpBootDrive {Set {Lx | physdrv[E0:S0]}} aN|a0,1,2|aALL
Show Bootable Virtual Disk ID Displays the bootable virtual disk ID. MegaCli64 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. MegaCli64 AdpBIOS Enbl | Dsbl | Dsply | SOE | BE aN|a0,1,2|aALL

BBU

Command Description Syntax
Display BBU Information Displays complete information about the BBU, such as status, capacity information, design information, and properties. MegaCli64 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. MegaCli64 AdpBbuCmd GetBbuProperties aN|a0,1,2|aALL
Display BBU Status Information Displays complete information about the BBU status, such as the temperature and voltage. MegaCli64 AdpBbuCmd GetBbuStatus aN|a0,1,2|aALL
Display BBU Capacity Displays BBU capacity information. See Note (6). MegaCli64 AdpBbuCmd GetBbuCapacityInfo aN|a0,1,2|aALL
Set BBU Learn Delay interval Sets BBU Property of Learn Delay Interval MegaCli64 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. MegaCli64 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. MegaCli64 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. MegaCli64 AdpBbuCmd BbuMfgSeal aN|a0,1,2|aALL

Configuration Related

Command Description Syntax
Add RAID 0,1,5, or 6 Configuration Adds a RAID level 0, 1, 5, or 6 configuration to a specified adapter. MegaCli64 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. MegaCli64 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. MegaCli64 CfgClr aN|a0,1,2|aALL
Save Configuration Saves the configuration for the selected adapter(s) to the given filename. MegaCli64 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). MegaCli64 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. MegaCli64 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). MegaCli64 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. MegaCli64 CfgFreeSpaceInfo aN|a0,1,2|aALL

Virtual Drive

Command Description Syntax
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. MegaCli64 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. MegaCli64 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). MegaCli64 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). MegaCli64 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). MegaCli64 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. MegaCli64 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. MegaCli64 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). MegaCli64 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). MegaCli64 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. MegaCli64 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. MegaCli64 LDCC ProgDsply Lx|L0,1,2|Lall aN|a0,1,2|aALL
Manage Background Initialization Enable or disable background initialization MegaCli64 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. MegaCli64 LDBI GetSetting Lx|L0,1,2|Lall aN|a0,1,2|aALL
Get Current Progress value Displays the current progress value. MegaCli64 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). MegaCli64 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. MegaCli64 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. MegaCli64 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. MegaCli64 LDGetNum aN|a0,1,2|aALL

Physical Drive

Command Description Syntax
Show PD Properties of PD Displays physical disk information. MegaCli64 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. MegaCli64 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. MegaCli64 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). MegaCli64 PdMarkMissing physdrv[E0:S0,E1:S1,...] aN|a0,1,2|aALL
Show Missing PDs Displays the physical disk drive(s) in missing status. MegaCli64 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. MegaCli64 PdReplaceMissing physdrv[E0:S0] arrayA, rowB aN
Show Rebuilds Display rebuilds of PDs. MegaCli64 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. MegaCli64 PDOnline PhysDrv[E0:S0,E1:S1....] aN|a0,1,2
Set PD State Offline Changes the physcial disk drive state to Offline. MegaCli64 PDOffline PhysDrv[E0:S0,E1:S1....] aN|a0,1,2|aALL
Change PD State to UnconfiguredGood Change PD State from UnconfiguredBad to UnconfiguredGood. MegaCli64 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. MegaCli64 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. MegaCli64 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. MegaCli64 PDLocate PhysDrv[E0:S0,E1:S1....] aN|a0,1,2|aALL
Prepare PD for Removal Prepares unconfigured physical drive(s) for removal. MegaCli64 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. MegaCli64 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. MegaCli64 PDList aN|a0,1..|aAll

EnclosureRelated

Command Description Syntax
Show Enclosure Information Displays information about the enclosure for the selected adapter(s). MegaCli64 EncInfo aN|a0,1,2|aALL

SAS Topolgy

Command Description Syntax
Show Phy Info Displays PHY connection information for physical PHY M on the adapter(s). MegaCli64 PHYInfo phyM aN|a0,1,2|aALL

Alarm

Command Description Syntax
Show Controller Alarm Displays controller alarm properties. MegaCli64 AdpGetProp AlarmDsply aN|a0,1,2|aALL
Control Controller Alarm Currently MegaCli does not support Test. Is this required? MegaCli64 AdpSetProp AlarmEnbl | AlarmDsbl | AlarmSilence aN|a0,1,2|aALL

Event and Logs

Command Description Syntax
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 MegaCli64 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. MegaCli64 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 MegaCli64 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). MegaCli64 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. MegaCli64 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. MegaCli64 FwTermLog BbuoffTemp aN| a0,1,2|aALL
Turns on BBU lermianl logging. Turns on BBU for TTY (firmware terminal) logging. MegaCli64 FwTermLog Bbuon aN| a0,1,2|aALL
Show BBU settings for logging Displays current BBU settings for TTY logging. MegaCli64 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. MegaCli64 FwTermLog Dsply aN| a0,1,2|aALL
Clear BBU terminal log. Clears the TTY firmware terminal log. MegaCli64 FwTermLog Clear aN| a0,1,2|aALL

Diagnostic Related

Command Description Syntax
Start Diagnostics Setting Sets the amount of time for the adapter diagnostic to run. MegaCli64 AdpDiag [val] aN|a0,1,2|aALL
Starts Battery Test Requires turning off power to system, and then powering on and rebooting system. MegaCli64 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. MegaCli64 AdpNVRAM {Read|Write ffilename}|Clear

[StartOffset 0xXXXX] [EndOffset 0xXXXX] aN

ELF

Command Description Syntax
Display safeID Displays selected controllers safeID MegaCli64 ELF GetSafeId a0
Controller Features Display the Premium features that are enabled on this controller MegaCli64 ELF ControllerFeatures a0
Activation Key preview Preview the trail or unlimited key of premium features MegaCli64 ELF Applykey key val preview a0
Activating preminum Key Activates the trail or unlimited key of premium features MegaCli64 ELF Applykey key val a0
Transfer to vault Transfers the featues to the Vault that are enabled on the controller MegaCli64 ELF TransferToVault a0
Deactivating Trails Deactivates the Features with trail keys on the controller MegaCli64 ELF DeactivateTrialKey a0
Rehost information Gives the information of rehost MegaCli64 ELF ReHostInfo a0
Status of rehost MegaCli64 ELF ReHostComplete a0

BreakMirror

Command Description Syntax
Breakmirror Breaks the Mirror Virtual Disk MegaCli64 ldbreakmirror L0 a0
Join Mirror Joins the Mirror Virtual Disk MegaCli64 ldjoinmirror DataSrc val<0/1> force L0 a0
View Mirror information Lists the information of the Virtualdisk which has got broke using Breakmirror MegaCli64 ldviewmirror L0 a0

Snapshot

Command Description Syntax
Adapters Snapshot Properties Gets the Controller default snapshot space and auto snap shot space information MegaCli64 adpgetprop defaultsnapshotspace | autosnapshotspace a0
Setting Adapter properties Sets the Controller default snapshot space and auto snap shot space information MegaCli64 adpsetprop defaultsnapshotspace | autosnapshotspace 12% a0
Enable Snapshot Enable or disable Snapshot on a VD MegaCli64 snapshot enbl|dsbl sz500 snapshotrepositoryld 0 l0 a0
Take Snapshot Creating a snapshot and a view with a specific size on a Virtual Disk MegaCli64 snapshot takesnapshot snapshotname snap_1 createview viewname view_1 RW sz500 L0 a0
Snapshot properties Setting snapshot properties after it gets created MegaCli64 Snapshot SetProp autosnapshot |AutoDeleteOldestSnapshot 1 L0 a0
Delete all Snapshot Deleting all snapshot MegaCli64 Snapshot DeleteSnapshot all L0 a0
Delete Snapshot Deleting a specific snapshot based on its creation time MegaCli64 Snapshot DeleteSnapshot [SnapshotTime= yyyymmdd hh:mm:ss] force L0 a0
View Creation Creatiion of view on the existing snapshot MegaCli64 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 MegaCli64 Snapshot DeleteView [SnapshotTime yyyymmdd hh:mm:ss] Lx a0
Rollback Rolling back the configuration to a state that a specific snapshot MegaCli64 Snapshot Rollback SnapshotTime 20110715 14:41:18 L0 a0
Clean Cleans up all snapshots that are created MegaCli64 Snapshot Clean L0 a0
Shapshot information Lists all the views information that belongs to this snapshot MegaCli64 snapshot info L0 a0
Snapshot View information Gives information of a specfic View MegaCli64 Snapshot GetViewInfo a0

Miscellaneous

Command Description Syntax
Help show version Displays version information. MegaCli64 v
Help for show command Shows help for all show cmds at server level MegaCli64 help|h|?
Help for controller level show command Shows help for all show cmds at controller level N/A
Template note icon.png
Note: The "Notes" mentioned above were not found in the source document.

 

Any questions, feedback, advice, complaints or meanderings are welcome.
Us: Alteeve's Niche! Support: Mailing List IRC: #clusterlabs on Freenode   © Alteeve's Niche! Inc. 1997-2019
legal stuff: All info is provided "As-Is". Do not use anything here unless you are willing and able to take responsibility for your own actions.
Personal tools
Namespaces

Variants
Actions
Navigation
projects
Toolbox