Quoting Adnan Rizvi <[email protected]>:

> When I give this command. It gives me no output.
>
> ./MegaCli64 -LdPdInfo -aAll

The commands I use (via cron) are:

MEGACLI=/opt/MegaRAID/MegaCli/MegaCli

$MEGACLI -AdpAllInfo -aALL > /tmp/AdpAllInfo.txt
a=`grep "Degraded" /tmp/AdpAllInfo.txt | grep -o "[0-9]"`
b=`grep "Failed Disks" /tmp/AdpAllInfo.txt | grep -o "[0-9]"`
if [ "$a" != "0" -o "$b" != "0" ] ; then
    $MEGACLI -LdPdInfo -aALL > /tmp/ldpd.txt
    mailx -s "Check RAID on `hostname`" root < /tmp/ldpd.txt
else
    cat /dev/null > $MEGAPATH/MegaSAS.log
fi

But, maybe if you don't get output from -LdPdInfo you won't get it any
from -AdpAllInfo also?

OMSA would be the other option...

-- 
Eric Rostetter
The Department of Physics
The University of Texas at Austin

Go Longhorns!

_______________________________________________
Linux-PowerEdge mailing list
[email protected]
https://lists.us.dell.com/mailman/listinfo/linux-poweredge
Please read the FAQ at http://lists.us.dell.com/faq

Reply via email to