Hello Nicolai,
Thank you for your response, here in summary about this topic:
We have an archiving process, since we need the information to be deleted when the backup is finished, for this a script (bat) is created and it is working without problems, but this images must be duplicated to tape.
This information is stored in a Flex Appliance with WORM, but due to a defect in version 10.1.1 (indicated by Veritas support and supposedly corrected in version 10.2) when the backup ends it does not apply the WORM locks and the image cannot be be duplicated or replicated, the only way is to wait for an image cleanup to be executed or execute the indicated command (bpimage -cleanup -allclients), there the pending WORM locks are applied.
At the moment we cannot update to version 10.2 so we need to somehow automate this issue as a workaround.
Waiting your comments.
Regards