Here are some quick commands that I have to use on a daily basis for RAID automation issues. You can either keep -aall in there or if you have more then one adapter you can replace -aall with the actual adapter number such as -a0 and you could replace -lall with you actual logical drive number like -l0. Get basic adapter information including Adapter#

MegaCli -adpallinfo -aall

List all physical disk information

MegaCli -pdlist -aall

Show information about a particular disk
(replace 252 with you enclosure ID and 4 with the drive ID)

MegaCli -pdinfo -physdrv [252:4] -aall

Show logical drive information and status

Megacli -ldinfo -lall -aall

Start logical drive consistency check

MegaCli -ldcc -start -lall -aall

View progress of consistency check

MegaCli -ldcc -showprog -lall -aall

Get SAS Enclosure information

MegaCli -encinfo -aall

Show all BBU information

MegaCli -adpbbucmd -aall

Show patrol read information

MegaCli -adppr -info -aall

Start a patrol read

MegaCli -adppr -start -aall

View progress of patrol read

Megacli -adppr -info -aall

Enable/Disable alarm

MegaCli -adpsetprop alarmdsbl -aall
MegaCli -adpsetprop alarmenbl -aall

View current log

MegaCli -fwtermlog -dsply -aall

Dump event log to file for checking

MegaCli -adpeventlog -getevents -f /tmp/event.log -a0