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

Eject media after session from certain pool

Status
Not open for further replies.

n3tw0rkadm1n1strat0r

IS-IT--Management
Aug 29, 2006
119
US
I am using DP 5.5 on windows 2003. I have been trying to make a script to eject the tape automatically after the job finishes. I have a pool called "IDB" that only has 2 tapes in it. There is always only 1 tape in at a time, the other is stored in a safe. I know how to eject a tape specifying the slot number, but I cannot figure out how to eject the tape from just specifying the pool without the slot number. Does anyone know how to do this? Right now im using three batch files:

1) call script
2) barcode scan
3) eject media

Here is what the eject batch file looks like:

omnimm -eject "HP:MSL6000 Series_servername" 56

If anyone can help I would appreciate it, thanks.
 
Here is what it would look like with UNIX:

#!/usr/bin/sh
export PATH=$PATH:/opt/omni/bin/
for slot in `omnimm -list_pool MyPool | \
grep "Library Name" | \
cut -f 2 -d: | \
cut -f 1 -d"]" `
do
echo $slot
omnimm -eject "Library Name" $slot
done


All I need is the same thing for windows!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top