Networker

Re: [Networker] How best to script re-labeling tapes ...

2007-10-01 03:39:36
Subject: Re: [Networker] How best to script re-labeling tapes ...
From: Davina Treiber <Davina.Treiber AT PEEVRO.CO DOT UK>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Mon, 1 Oct 2007 08:34:12 +0100
A Darren Dunham wrote:
> On Sun, Sep 30, 2007 at 11:03:18PM +0100, Davina Treiber wrote:
>> MIchael Leone wrote:
>>> I run NW 7.3.2jumbo on Win2003, with a HP SDLT320 tape library (48 slots, 
>>> 4 drives). I'd like to write a script to re-label only certain tapes 
>>> (i.e., if a tape in any slot is in pool CLONE and the mode is RECYCLEABLE, 
>>> I want to re-label that tape, keeping it in the same pool. But not 
>>> re-label a tape in pool CLONE that is APPENDABLE).
>>>
>>> I've searched, but don't seem to see a way to automate this, because I 
>>> would need to query NetWorker for the mode and pool of each tape in each 
>>> slot, so there would be no user interaction required. Can anyone provide 
>>> clues or pointers to how I might be able to accomplish this? (if it can be 
>>> done, that is)
>> Why would you want to do this? The recyclable tapes will be relabelled
>> when they are needed, there is no need to do this manaully.
> 
> I've had sites do this before to create a 'scratch' pool.  It wasn't
> directly useful for Networker's behavior, but they liked being able to
> see all expired tapes appear in a single pool rather than scattered.  Of
> course you lose the ability to read from the tape later (this can be
> good or bad).  
> 

I often use the scratch pool concept myself. I label NEW tapes into a
scratch pool and make them recyclable. After a while the scratch tapes
all get recycled into other pools and never need to be labelled into the
scratch pool.

However I can't see any sense in doing this on an ongoing basis, it just
makes more work. It is of course trivial to write an mminfo query to
tell how many recyclable tapes are available in all pools.

In this case the OP said that he was planning to relabel recyclable
tapes into the same pool, which to me seems to be like a broken pencil -
pointless.

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the body of the email. Please write to 
networker-request AT listserv.temple DOT edu if you have any problems with this 
list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER