How to know if several tapes are expired on TSM

Hi everyone,
                        i have several tapes outside the library and i need to know which one already expired in order to check them in as scratch. Is there any command available to know this?

Thanks in advance.
Santiago videlaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

brutal answer would be:

query drmedia * wherestate=vaultretrieve

but you must understand what is underwear ...

First of all you can do import/export of tapes by using TSM DR scripts.
You may as well do it "manually".

Whatever you do, you need to keep in mind that as soon as you export a tape from library to put it in a vault (or anywhere you like, i.e. under your pillow) you'd set tape status from "mountable" to "vault".
They remain in "vault status" until, after reclamation processes on the copypool, some of them becomes empty (empty ... not scratch !). At this point they are set on "vaultretrieve" status, waiting to be inserted into library.

So, if the query:
query drmedia * wherestate=vaultretrieve
outputs some tapes, then you will need to run a commando to change status of your tapes. It might be something like this:
move drmedia * wherestate=vaultretr tostate=onsiteretr remove=no source=dbs

and finally you can insert your tapes.

Please note that DR procedures is no doubt the most difficult part of TSM ... be careful and aware of it !

hope this helps

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Santiago videlaAuthor Commented:
Thanks max!!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
TSM Tivoli Storage Manager

From novice to tech pro — start learning today.