Is there a way to take a automatic ignite backup through script i.e,
We have MSL Tape libarary and xp12000SAN , I need a script to take ignite backup using the MSL Tape Libarary & after completion of the task(successful/unsuccessful) it should mail to root account.
Note: If you are the author of this question and wish to assign points to any of the answers, please login first.For more information on assigning points ,click
here
Basically it moves the tape from slot 29 to drive 1, waits, Ignites it, waits and moves it back again.
From the man page for uma: _______________ 3. To let uma execute a batch script of its own commands, simply redirect its stdin to a file containing a list of uma commands separated with newlines:
cat >/tmp/cmdFile
inq
addrstat
<ctrl-D>
uma -ioctl /dev/spt/sctl0 </tmp/cmdFile >/tmp/outFile
_______________
If you want to E-mail the result of the Ignite you might like to use the recovery log:
/var/opt/ignite/recovery/latest/recovery.log
You might also want the DP database if you're using Data Protector:
We're running MC Service guard, if you aren't then you can do without touching/removing the lockfiles.
If you do decide to use this, please test it to your own satisfaction. I'm just telling you what works for us. I probably cobbled most of this together from the forums so you'll be able to find similar information by searching.