Forum Discussion

smith_jones's avatar
9 years ago

Expiring tapes.

Hello All,

Can somebody please suggest how to expire multiple tapes at once. I am tired of expiring them one by one from commandline, when required.

 

Thanks.

  • A simple script

    • for /f %%i in (c:\temp\medialist) do bpexpdate -d 0 -m %%i

    Test it and make sure it works as expected, then append -force to the script to eliminate "do you really want to do this?" prompt.

    Hope your next thread is not "I accidentally expired a bunch of tapes..." surprise

13 Replies

  • Hi,

    Need  more clarity.  

    Where I have to run this command -  for /f %%i in (c:\temp\medialist) do bpexpdate -d 0 -m %%i ? As to run the command bpexpdate I think I should be at C:\Program Files\Veritas\NetBackup\bin\admincmd     right?

    Can you guide me stepwise.

     

    Thanks.

  • Thanks. I read to understand the for /f loop command and understood how it is working on tokens and delimits.

    Then I tested the command for bpexpdate and it worked.

    Thanks alot.