BLACK FRIDAY DEALS

Knowledge Base

Allows you to search a variety of questions and answers

Search

Search results

RAID

Simple script that runs the 3ware app and dumps it to a file, then mails it, then deletes it. and crontab to do it daily.

[root@vz1 ~]# more /root/raid.sh

/usr/local/sbin/tw_cli /c0/u0 show > /root/raidstatus.txt
/usr/local/sbin/tw_cli /c1/u0 show >> /root/raidstatus.txt
mail -s "DAILY RAID STATUS 1.1.1.1" [email protected] < /root/raidstatus.txt
rm -rfv /root/raidstatus.txt > /dev/null 2>&1


I have a root contrab to run it at midnight daily:

0 0 * * * /root/raid.sh > /dev/null 1>&1

Note: just be sure to set the correct /c0/u0 for your specific instance and change the IP as well as well as your email.

See What Our Customers Say

Leave review
A

Anonymous Customer

SA, Australia

Responded within 5 minutes. Great support.

Read full review
C

Cory

GA, United States

I have been with ayksolutions for around 5 years and have been thoroughly impressed with them. All s...

Read full review
B

Bruce L

MD, United States

We have been customers for several years. Just wanted to give a thumbs-up for their excellent respon...

Read full review
J

James

FL, United States

I have been using AYK for about 2 years now and they are always on top of any issues I have. They ha...

Read full review