Forum Discussion

The_Hammer's avatar
The_Hammer
Level 2
13 years ago
Solved

bpmedialist command

Hello,

I am trying to use bpmedialist within a script to find tapes to label with bplabel.

I am using "bpmedialist -mlist -l". It shows me the tapes of interest but only when they are not expired.

What I need is a list of media with 0 unexpired images that have been previously used at least once.

Can anyone offer a solution?

Thanks in advance!

  • As you have noticed, bpmedialist only shows assigned media with valid images (the only exeption to this rule are Frozen tapes that does not expire like other tapes). Mark's suggestion is best. Command line alternative is 'vmquery -a -bx' and look for tapes with no Assign Time. Any particular reason why you need to re-label tapes? VTL not automatically reclaiming space? If this is the case, keep an eye on Media Summary report (in Verbose mode) to keep track of future expiry dates.
  • The easiest way, without using the command line is to go to the Admin Console - Media and Device management section and select the Media Section

    At this top level is shows all tapes which you can sort by time assigned

    Anything that does not have a time assigned has no valid images on it

    If you also confirm that the number of mounts is above zero you know if has been used

    In the Windows Admin Console you can highlight them all, Ctl-C and then paste your list straight into excel

    Hope this helps

  • As you have noticed, bpmedialist only shows assigned media with valid images (the only exeption to this rule are Frozen tapes that does not expire like other tapes). Mark's suggestion is best. Command line alternative is 'vmquery -a -bx' and look for tapes with no Assign Time. Any particular reason why you need to re-label tapes? VTL not automatically reclaiming space? If this is the case, keep an eye on Media Summary report (in Verbose mode) to keep track of future expiry dates.
  •  

    Thanks for the help! This has to be scripted so asking about CLI. GUI is too time consuming in large environment. VTL device not in sync with NBU unless bplabel forces the VTL to free up the data.

    I will try 'vmquery -a -bx' command.

    The Hammer