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!

deassign multiple tapes

Status
Not open for further replies.

turner7577

IS-IT--Management
Joined
Dec 1, 2004
Messages
6
Location
US
I have done my searches ... but I have a quick question

I understand that to deassign and expire the tape, i have to run a command line comman ... so i've written a VB script that asks me for "mediaID", i type it in and it does both at the same time for me ... as the command lines below state

vmquery -deassignbyid <mediaID> 1 0x0

bpexpdate -m <mediaID> -d 0 -force

my question is .... when i stock my tape loader for the month ... full of 30 to 40 tapes ... i have 30 or 40 tapes to expire and deassign and have to run the VB script for each tape. is there a way to expire and deassgin a group of tapes or multiple tapes at ONCE?!

thanks in advance for any help with this
 
Wait a second!
You don't want to use the command
vmquery -deassignbyid <mediaID> 1 0
It will cause you major headaches.
Just use the bpexpdate command and it will deassign the tape for you as part of its process. You can add a -force to bpexpdate and place it in a for loop with the media id's.

Bob Stump
Just because the VERITAS documentation states a certain thing does not make it a fact and thats the truth
 
..exactly what Bob said, and/or you could pull the list of tapes to expire, out of the available_media command or similar, obviously provided you could trust automating that part of it (ie pre-generate a list of tapes thus avoiding needing to reply to a script - populate a script with the required media id's then just let the script rip.

But also, why are you frequently needing to expire tapes ??..... what i mean is, if there's a pattern to this you could maybe automate this...
 
like changing the retention level?

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

Part and Inventory Search

Sponsor

Back
Top