Networker

Re: [Networker] How to list with mminfo ALL the saveset of all the tapes(even those not browsable)

2002-11-04 10:39:15
Subject: Re: [Networker] How to list with mminfo ALL the saveset of all the tapes(even those not browsable)
From: Philippe Michel <Philippe.Michel AT THALES-IS DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Mon, 4 Nov 2002 16:26:43 +0100
"Paquet, Gilles" wrote:
>
> Hello,
>
> I want to have a list of all the saveset from every tapes of a networker 
> server.
>
> I try this :
>
> mminfo -a -r 
> volume,volid,client,ssbrowse,ssretent,sscomp,sumsize,level,name,ssid
>
> But this give me only the browsable save set, or I know there are several 
> other tapes with recoverable saveset on it.
>
> When I run this :
>
> mminfo -r 
> volume,volid,client,ssbrowse,ssretent,sscomp,sumsize,level,name,ssid -q 
> volume="media_not_browsable_but_recoverable"
>
> I have what I want but I must create a line for each tape. Annoying, there is 
> a LOT of recoverable tape.
>
> Is there somebody who knows how to do this ?

You can use mminfo to list all volumes, use this result to generate a list of 
queries, then pipe them to sh.

Something like :

mminfo -a -o t -r volume | sed 's/\(.*\)/mminfo -r volume,client,name,whatever 
-q volume=\1/' | sh

This technique (using the result of a command to create other commands to be 
fed to sh) is often handy in shell scripting.

--
Note: To sign off this list, send a "signoff" 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.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

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