Jump to content
 English      
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
     Forums advanced search
HP.com Home
IT Resource Center Forums > HP-UX > ignite-ux

script to automatie Ignite..

» 

IT Resource Center

» Login
» Register
» My profile
» Search knowledge base
» Forums
» Patch database
» Download drivers, software and firmware
» Warranty check
» Support Case Manager
» Software Update Manager
» Training and Education
» More maintenance and support options
» Online help
» Site map

Member icons
 
 HP moderator  HP moderator
 Expert in this area  Expert in this area
Member status
ITRC Pro ITRC Pro
250 points
ITRC Graduate ITRC Graduate
500 points
ITRC Wizard ITRC Wizard
1000 points
ITRC Royalty ITRC Royalty
2500 points
ITRC Pharaoh ITRC Pharaoh
7500 points
Olympian Olympian
20000 points
1-Star Olympian 1-Star Olympian
40000 points
2-Star Olympian 2-Star Olympian
80000 points
»  How to earn points
»  Support forums FAQs
Question status
Magical answer Magical answer
Message with a response that solved the author's question
Favorites status
Add to my favorites Add to my favorites
Delete from my favorites Delete from my favorites
This thread has been closed Thread closed
 

Content starts here
   Create a new message    Receive e-mail notification if a new reply is posted  Reply to this message
Author Subject: script to automatie Ignite..      Add to my favorites
Puthan
Sep 29, 2009 11:38:01 GMT   

Hi All,

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


Sort Answers By: Date or Points
Shoghi Martinez G. This member has accumulated 2500 or more points
Sep 29, 2009 13:50:10 GMT    Unassigned

Perhaps you have better look at the HP-UX admin forum.

I am asking to move it there...
Gavin Clarke This member has accumulated 1000 or more points
Sep 29, 2009 14:53:10 GMT    Unassigned

This is what we use
(/opt/omni/lbin/uma comes with Data Protector).

createIgnite:
#!/bin/sh
/opt/omni/lbin/uma -ioctl /dev/rac/rob_arm -tty </home/user/umacmdfile >/home/user/umaoutput
sleep 60
/usr/bin/umask 022
/opt/ignite/bin/make_tape_recovery -x inc_entire=vg00 -I -v -a /dev/rmt/3mn
sleep 360
/opt/omni/lbin/uma -ioctl /dev/rac/rob_arm -tty </home/user/umacmdfile2 >/home/user/umaoutput2

umacmdfile:
move S29 D1

umacmdfile2:
move D1 S29

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:

tarDP:

/usr/bin/touch /etc/cmcluster/omnipkg/lockfile
/opt/omni/sbin/omnisv.sh stop
/usr/bin/tar -cvf /var/backup/omniback.tar /omni_shared
/opt/omni/sbin/omnisv.sh start
sleep 120
/usr/bin/rm /etc/cmcluster/omnipkg/lockfile


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.
Scot Bean Expert in this area This member has accumulated 2500 or more points
Sep 30, 2009 20:07:47 GMT    Unassigned

If it were me, cron would do it.

Put a make_tape_recovery command of your choice into cron, and cron sends all output to root email.
 
Create a new message    Receive e-mail notification if a new reply is posted   Reply to this message
 
 
Printable version
Privacy statement Using this site means you accept its terms
© 2009 Hewlett-Packard Development Company, L.P.