Networker

Re: [Networker] Need to create a report that tells me exactly what is on a tape

2004-10-06 14:38:57
Subject: Re: [Networker] Need to create a report that tells me exactly what is on a tape
From: Darren Dunham <ddunham AT TAOS DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Wed, 6 Oct 2004 11:56:22 -0700
> Here is what I use on windowz to report files on a specific volume:
> Pass it a volume name.  I keep these lisings along with the tapes at offsite
> in the rare event I couldn't get an index back, at least I would be able to
> tell which tape a file is on.
> -----------------------------------------------------
> md %1
> cd %1
> REM Dump the SSIDs of savesets on the given volume

> mminfo -av -r ssid -q volume=%1 > %1-ssids.txt
> REM for each ssid get the savetime and client
> for /F %%i in (%1-ssids.txt) do mminfo -av -q ssid=%%i -r "nsavetime,client"
>  >> %1-nsavetime-client.txt

I don't think you need two steps here.  Why don't you just do..

mminfo -av -q volume=%1 -r "nsavetime,client" >> %1-nsavetime-client.txt

> grep -v "save time client" %1-nsavetime-client.txt >
> %1-nsavetime-client-clean.txt
> for /F "tokens=1,2" %%i in (%1-nsavetime-client-clean.txt) do nsrinfo -V -t
> %%i %%j > %%j-%%i-fileinfo.txt

Your method will fall prey to the same problem my first suggestion did.
It will report files that are not necessarily on that volume, becuase
the save set may span volumes.  I hope that's not a big deal for you.



--
Darren Dunham                                           ddunham AT taos DOT com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

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