cancel
Showing results for 
Search instead for 
Did you mean: 

Eject tapes that expire in 2038

magteix
Level 3

 

Hi all,

 
I want to write a script to eject the tapes that expire in 2038.
 
How can I put the Data Expiration in the script instead of MediaID?
 
vmchange -res -multi_eject -w -verbose -rn <robot number> -rt <robot type> -rh <robot control host> -ml <mediaid1:mediaid2:mediaid3:...>
 
 
Thanks!
 
PD: NetBackup v7.1.0.4
      Platform: Windows
1 ACCEPTED SOLUTION

Accepted Solutions

Will_Restore
Level 6

you can build a list using bpmedialist -summary | findstr 2038 

 and feed media ids to vmchange

View solution in original post

2 REPLIES 2

Will_Restore
Level 6

you can build a list using bpmedialist -summary | findstr 2038 

 and feed media ids to vmchange

magteix
Level 3

Thanks wr!

I used available_media instead bpmedialist

Thanks for your help!