"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.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
|