Networker

[Networker] One command line contest?

2008-06-29 20:10:31
Subject: [Networker] One command line contest?
From: Peter Hand <Peter.Hand AT NT.GOV DOT AU>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Mon, 30 Jun 2008 09:27:44 +0930
Hi All,
      Our tape library is always full. The following one liner finds the best
candidates for manually recovering tapes. It lists the tapes in the library
(called LIBRARY) in order of number of valid savesets, from lowest to highest.

# for i in `mminfo -a -q 'family=tape,!volrecycle,location=LIBRARY' -r volume`;
do echo -n $i " ";mminfo -a -q "volume=$i,ssrecycle=false" -r ssid | wc -l; done
| sort -n -k 2 | less

Cheers,   Pete.
--
  Technical Team Lead: Unix
  DCS Midrange Services
  Phone: +61 (08) 8999 6605
  Fax: +61 (08) 8999 7493               Email requests to: dcs_service AT 
nt.gov DOT au
  e-Mail: peter.hand AT nt.gov DOT au            or at 
http://datacentre.nt.gov.au/

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

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