Networker

Re: [Networker] How to specify slot number of a library in a report?

2007-11-06 10:13:01
Subject: Re: [Networker] How to specify slot number of a library in a report?
From: Stan Horwitz <stan AT TEMPLE DOT EDU>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Tue, 6 Nov 2007 10:04:32 -0500
On Nov 6, 2007, at 8:22 AM, MIchael Leone wrote:

Stan Horwitz <stan AT temple DOT edu> wrote on 11/05/2007 03:22:46 PM:


On Nov 5, 2007, at 3:12 PM, MIchael Leone wrote:

So I have this little script I run daily at a remote site:


mminfo -avot -q "near,savetime > 1 day ago" -r
"pool,volume,volaccess(22)"

It shows me the tape that was written to most recently. I email
that to me
and the texh who is responsible for that site. What I'd like to do,
tho,
is have the report list what slot in the autochanger today's tape
is in,
so he knows which slot to eject, without having to start Networker and
look.

For example, I get this right now:

 pool                            volume                         vol
access
642nBroad      642nBroad.Full.004    11/5/2007 10:01:21 AM

What I need is:

 pool                            volume
Slot            vol
access
642nBroad      642nBroad.Full.004    4        11/5/2007 10:01:21 AM

nsrjb will provide that information.

So I'd have to pipe the volume ID into nsrjb, get the slot number that
way, concat the the info with the previous report, and then email it out?

Yes, but the idea to just refer to the tapes volume name on an "nsrjb -w" command makes a lot more sense. That way, you allow NetWorker to figure out where the tape is by just giving nsrjb the name of the tape you want to remove from the tape library.

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