Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

bplabel script?

Status
Not open for further replies.

jsept

IS-IT--Management
Jun 10, 2003
11
US
Hi,

I use the bplabel command to label tapes every day on stand-alone dlt tape drives. Is there a batch file or script that can be run as a scheduled task on each server that will label the tape and increment the numbering. The naming convention is R00035, so I would want the next days to be R00036, etc. I can run a batch file that would label the tape but I don't know how to change the label daily.

I don't have much experience with scripts so I appreciate any help.

Thank you,
 
You could try something simple
for i in Tape_number Tape_number
do
/usr/openv/netbackup/bin/admincmd/bplabel -m {$i} <other options to your command>
done

you can string as many volumes as you want and just change the tape numbers.

I am not much of a script writer but this works in a pinch.
 
the option -o will allow it to automatically override the yes/no question

Bob Stump
Just because the Veritas documentation states a certain thing does not make it a fact
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top