VTL tape Quick Erase Question
I am running a Windows 2008 R2 Enterprise OS with Veritas 6.5.6 x64 installed. This Veritas Master server is configured with a Physical Tape Library access via Oracle’s LibAttach software and a VTL environment that is directly connected to the Veritas Master server.
Since VTL does not automatically release the ‘data’ on expired tapes I need to run a program that will automatically cause the VTL tapes to show no data usage for those tapes located in the Scratch pool.
I have created the following script. However this script includes the physical scratch tapes as well as the VTL scratch tapes in its output. I would like to limit the output in the scratchlist.txt file to just the VTL tapes in the Scratch pool. The pertinent volume group for the VTL environment is 000_00001_TLD, robot type is TLD, robot number is 1 and media numbers all begin with the letter Z.
vmquery -pn Scratch -l>c:\scratchlist.txt
for /f %a in (c:\scratchlist.txt) do bplabel -m %a -d hcart -o -p Scratch -host gsslz103 -erase
However whenever I try to modify the vmquery statement to include these elements, vmquery –v 000_00001_TLD –rt TLD –rn 1 -pn Scratch -l>c:\scratchlist.txt it results in an error and I get the Usage help page as shown below.
Usage: vmquery [-h <EMM_server> | <volume_database_host>,...,
-h <EMM_server> | <volume_database_host>]
[-b | -w | -W | -l]
-m <media_id> |
-v <volume_group> |
-rn <robot_number> |
-rt <robot_type> |
-mt <media_type> |
-p <pool_number> |
-pn <pool_name> |
-vltcid <vault_container_id> |
-res <robot_type> <robot_number> <robot_control_host>
<robot_coord1> <robot_coord2> |
-assignbyid <media_id> <media_type> <pool_number> <status>
-deassignbyid <media_id> <pool_number> <status>
Any assistance you can provide to help me modify the above statement correctly to just include the VTL tapes.