Networker

Re: [Networker] List tapes available

2004-12-08 12:45:29
Subject: Re: [Networker] List tapes available
From: Matt Temple <mht AT RESEARCH.DFCI.HARVARD DOT EDU>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Wed, 8 Dec 2004 12:44:37 -0500
Philippe Michel wrote:
Ciolek, Ken wrote :

I need to list the available tapes each day that have space available and
can be used for backups.


You can use the following mminfo queries for instance :

Empty tapes :
mminfo -q "near,written=0,!volrecycle" -r volume,pool,barcode

Recyclable tapes :
mminfo -q "near,volrecycle" -r volume,pool,barcode

Partially filled tapes :
mminfo -q "near,!full,written>0" -r volume,pool,barcode,written

If you are interested in tapes that are not necessarily in your library,
you can remove the "near", and add "location" to the fields listed after
the -r.


And bash won't like the double quotes around a string with a "!"
in it so use single quotes.   And thanks; I should have known there were
batter ways for getting information via mminfo.

                                                       mht

--
=============================================================
Matthew Temple                Tel:    617/632-2597
Director, Research Computing  Fax:    617/582-7820
Dana-Farber Cancer Institute  mht AT research.dfci.harvard DOT edu
44 Binney Street, LG300/300   http://research.dfci.harvard.edu
Boston, MA 02115              Choice is the Choice!

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list. Questions regarding this list
should be sent to stan AT temple DOT edu
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

<Prev in Thread] Current Thread [Next in Thread>