Unsolved
This post is more than 5 years old
1 Rookie
•
5 Posts
0
704
May 28th, 2008 12:00
Script to label recycle volumes
Is it possible to create a batch job that runs daily to check for recyclable volumes of a certain pool and automatically labels them to a specific pool when it is expired?
No Events found!


ble1
6 Operator
•
14.4K Posts
•
56.2K Points
0
May 28th, 2008 12:00
ttruong3
1 Rookie
•
5 Posts
0
May 28th, 2008 12:00
Would a nsr_label work? Or is there a better way/
ttruong3
1 Rookie
•
5 Posts
0
May 28th, 2008 12:00
ble1
6 Operator
•
14.4K Posts
•
56.2K Points
0
May 28th, 2008 12:00
- list (all) volumes which are recycable (use mminfo for that)
- (re)label them (nsrjb)
You have two variations here with same end result; one where you would list all volumes and then relabel them based on their earlier pool assigment (requires parsing data from mmino query) or by doing query for each pool you have and then relabel it back to that pool based on list of volumes obtained by mminfo query.
There other approaches like deleting expired media and having them handled further by auto media management (certain risk present as always when dealing with auto media management) or simply by list all expired volume and having them labeled to scratch pool and recycled immediately. Thus they would take no space and would be available to be relabeled by NW in case you allow recycle to for scratch pool and recycle from for other production pools. I'm quite sure there are other approaches too.
ble1
6 Operator
•
14.4K Posts
•
56.2K Points
0
May 28th, 2008 13:00
ble1
6 Operator
•
14.4K Posts
•
56.2K Points
0
May 29th, 2008 04:00
ttruong3
1 Rookie
•
5 Posts
0
May 29th, 2008 04:00