EMC NetWorker discussion <NETWORKER AT LISTSERV.TEMPLE DOT EDU> wrote on
06/09/2008 02:59:40 PM:
> There is no easy way.
> either u need to know the clients name or some criteria to get ssid. or
> atleast the creation date.
This is because, in NetWorker, you don't just mark the tape volume itself
as read-only; you have to mark the savesets that are on the volume as not
expiring, so you can keep them as well. And you mark the volumes as
read-only, so NetWorker won't try to add anything more to the tape.
> try some thing like this
>
> mminfo -r "ssid,sscreate" -q "savetim<dd/mm/yyyy"
>
> this will give list of ssids
>
> ripout the ssid's to a file
>
> for i in `cat filename` do
> nsrmm -w dd/mm/yyyy(new browsetime) -e dd/mm/yyyy (expiration time. or
you
> can use foreever)
That won't work in Windows, since there is no native "cat" command in
Windows.
This is close to an equivalent in Windows:
Make a text file of your volume names, one to a line. Then run this:
FOR /F "DELIMS=/" %%a IN (%nwpath%\tmp\Uniq-Daily-Volumes.txt) DO
(
@ECHO %%a
nsrmm -y -o readonly %%a
nsrmm -y -o manual %%a
)
Here, all the volumes listed in the file "Uniq-Daily-Volumes.txt" will be
marked read-only, and manual expiration. But you should also mark the
SSIDs as well, which would be another loop.
I have a Windows script that pretty much does this - finds all the SSIDs
are marks them, then marks the volumes as read-only and manual expiration.
Be happy to send it along, if you feel up to modifying it to your specific
needs. Mine takes 2 input files - one a list of the daily jobs, one a list
of the weekly jobs, along with a date range for each, and then finds all
the SSIDs in that range for the daily and weekly jobs, and sets the browse
and expiration dates. Then it marks the volumes that those SSIDs are on as
read-only.
It's what I do at month end.
>
> done.
>
> note in the above for loop -w is for how long you want to keep the
indexes
> online.
>
> -Venkat
>
> On Mon, Jun 9, 2008 at 2:43 PM, Alan Skinner <alan.skinner AT us.army DOT mil>
> wrote:
>
> > Windows Server 2003 Environment
> > Networker 7.2.1
> >
> > I have moved over to a new library. Need to mark old tapes as read
only
> > with a script. Labeled by Bar Codes. I have over 200. Be very
detailed,
> > don't use scripts that often. I am a windows guy, love those GUI's.
> >
> > Thanks
> >
> > 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
> >
>
>
>
> --
> Venkat Tudi
>
> 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
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
|