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

How to script removing tapes from the silo.

Status
Not open for further replies.

martidc1

Technical User
Joined
Dec 23, 2004
Messages
2
Location
US
I have to remove about 65 tapes from the silo between Monday - Wednesday, is there any way to take a list of tape numbers and enter them in a for loop to eject tapes from the silo?
 
No, I am not using vault. The company I work for has elected to make me the vault application.
 
Sorry to hear. You would assume if a company can afford a Silo they would be able to afford an automated way to duplicate and send offsite. Anyway, I have a few more questions:

What OS are you using on your master server?

What Version of Netbackup are you using?

Are you using ACSLS since you have a Silo?

What Make and Model of tape library are you using?


 
Comtec,

For some vaulting is just not needed. Its is an expensive solution to a simple problem. Netbackup needs to put more of these features in thier base product.
 
I had to do some ejects awhile ago and the command line I have writen down is this 'vmchange -api_eject -map 0,0,1 -w -res -ml 00001:00005 -rn 0 -rt acs -rh dl1-d6.

If you type vmchange it will explain what most of the above means. However I do remember it was a pain if the tapes were not in a strict order. Tapes in order would be ejected but you would have to remove them from the cap before it would move the next tapes. So the effect would be 1,2,3 empty cap, 6 empty cap, 9,10,11 empty cap.

This is of course UNIX.

 
what i do (under Unix) is have all of this automated. For instance for FULL tapes that need swapping out, there's a script using available_media to collate a list. This is all written to a file then mailed. see sample output -->

bash-2.03# more full_tapes.txt
A list of FULL UNIX NetBackup tapes to be removed from Tape Robot today -

Fri Jan 14 08:30:20 GMT 2005

[Remember to re-introduce tapes when expiration is up.]

Eject tapes via 'vmchange -res -multi_eject -w -verbose -rn 0 -rt tld -rh nthsunbackup -ml x:y:z'

Also, don't forget to resync the Robot Inventory via
'vmupdate -rt tld -rn 0 -use_barcode_rules -empty_map'
after any tapes are removed from/re-introduced to Tape Robot.


MediaID Type Robot Type/No Slot KBytes
------- ---- ------------- ---- ------
5697L1 HCART TLD 0 51 - 0 290747433 FULL/MPX
5704L1 HCART TLD 0 20 - 1 475379328 FULL
5706L1 HCART TLD 0 41 - 0 307336416 FULL/MPX
5747L1 HCART TLD 0 17 - 0 306749934 FULL/MPX
5839L1 HCART TLD 0 44 - 3 317398450 FULL/MPX
5854L1 HCART TLD 0 31 - 3 214998145 FULL/MPX
5866L1 HCART TLD 0 35 - 3 318626624 FULL/MPX

Total FULL Unix tapes to remove today =

7 tapes



To physically swap out the tapes we simply do some copy/pasting on the above. This of course could be further automated but with our setup being so highly automated you got to leave yourself some things to do manually or you forget how it all works !! :)


we don't have a silo, just a 60slot robot but i guess similar syntax/thinking could be used. As we expand our hardware/setup i simply scale up our processes to fit.

Rich
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top