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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I eject multiple media from the command line? 1

Status
Not open for further replies.

djbrow3

Technical User
Aug 10, 2001
4
0
0
US
I'm currently running Veritas Netbackup 3.2 in a Sun 2.6 environment. I have a storagetek 9740 tape library that is almost always full.
When I do weekly tape management, it seems to take hours to remove 14 tapes at a time to the tape door, using the GUI, one tape at a time.

Is there a way I can write a script or use a command line option to list 14 tapes at a time to eject to the door instead of picking the tapes one at a time through the GUI?

Thanks!
 
First step is to know which medias you want to export.

You could use:

vmquery -pn pool_name_to_export > medias.txt

Then filter by robot slot (NT: find / UNIX cat | grep).
Once you know all tape locations you can create a script
called "export" with this (robtest syntax) syntax:

m sfirst_slot_number ifirst_io_port_slot
m ssecond_slot_number isecond_io_port_slot
m sthird_slot_numnber ithird_io_port_slot
--- ( depends on the number of IO slots)---
q

ex:

m s10 i1
m s12 i2
m s15 i3
q

then you should send this script to your robot management
command (if its a DLT tape library I think it is tldtest),
like that:

type export | tldtest -r \\.\Changer0 -d1 Tape0 -d2 Tape1

(You should specify the full SCSI path to the tldtest command, you could obtain it using robtest).

Don t forget to launch an inventory a the end with:

vmupdate -rn 0 -rt tld -use_barcode_rules -use_seed

where "rn" is robot number and "rt" the robot type.

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top