Video Screencast Help

Eject tapes that expire in 2038

Created: 24 Oct 2012 • Updated: 30 Oct 2012 | 2 comments
This issue has been solved. See solution.

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

Comments 2 CommentsJump to latest comment

Will Restore's picture

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

 and feed media ids to vmchange

Will Restore -- where there is a Will there is a way

SOLUTION
magteix's picture

Thanks wr!

I used available_media instead bpmedialist

Thanks for your help!