Networker

Re: [Networker] Determine if a media drive is in use

2007-12-05 15:31:17
Subject: Re: [Networker] Determine if a media drive is in use
From: Tim Mooney <Tim.Mooney AT NDSU DOT EDU>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Wed, 5 Dec 2007 14:29:02 -0600
In regard to: Re: [Networker] Determine if a media drive is in use, Rebecca...:

Hmmm.  I'll have to look at that.  What I'm doing is just using mminfo to
check tapes eligible to be recycled then passing that info to nsrjb to get
all information I need to label the tape.

The nsrjb step may be completely unneeded.

Alter your mminfo query to generate a list of volume names that are
eligible for recycling (and present in your jukebox(es)).  Save that to
a file.

Loop over the volume names from the file, and use nsrjb to recycle the
volumes by name (note the -R option to nsrjb).  You don't need to know
what slots they're in, you just give it a volume name and nsrjb figures
it out.

As Fazil said, there's generally no need to tell nsrjb what drive to use
for the recycling either -- it will pick one.

Does that accomplish your ultimate goal?

Tim
--
Tim Mooney                                        Tim.Mooney AT ndsu DOT edu
Information Technology Services                   (701) 231-1076 (Voice)
Room 242-J6, IACC Building                        (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164

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