Short script I wrote before is just sample, and expire all the images on specified robot without any intervention.
This sample is dangerous in some sense.
I read "expire the images on VTL" and, I understood Steve want to expire all the images on VTL. It was better to write this sample with notice.
And, I tested this sample in my test environment(NB 6.5.4), and make sure copy 2 on other storage is kept.
"bpexpdate -m media_id" only expires the copy of images on the specified volume.
> That's quite a dangerous combination of command syntaxes, especially with the "-force" option and 2>/dev/null, I think.
Yes, it is better to be careful.
But I added "-force" to avoid any intervention, and "2>/dev/null" to hide "requested media id is not assigned to this host in the EMM database" message. bpexpdate shows this message for unassigned, empty volumes.