cancel
Showing results for 
Search instead for 
Did you mean: 

bpmedialist command

The_Hammer
Level 2

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!

1 ACCEPTED SOLUTION

Accepted Solutions

Marianne
Level 6
Partner    VIP    Accredited Certified
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.

View solution in original post

5 REPLIES 5

Mark_Solutions
Level 6
Partner Accredited Certified

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

Marianne
Level 6
Partner    VIP    Accredited Certified
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_Hammer
Level 2

 

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

Marianne
Level 6
Partner    VIP    Accredited Certified