Networker

Re: [Networker] Command line for deleting file & media index entr ies

2004-02-02 20:50:25
Subject: Re: [Networker] Command line for deleting file & media index entr ies
From: "Herrmann, Dave" <daveh AT DELTAFAUCET DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Mon, 2 Feb 2004 20:35:13 -0500
The purpose is to remove the tapes from the file & media database. My server
also happens to run on Windows 2000 instead of Unix, although I haven't seen
that make too much difference at the Networker command line level.

Dave Herrmann


-----Original Message-----
From: Darren Dunham [mailto:ddunham AT TAOS DOT COM]
Sent: Monday, February 02, 2004 8:18 PM
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Subject: Re: [Networker] Command line for deleting file & media index
entries


> > OK, I know Networker has to have a command for this, but being more
> > of the GUI junkie, I can't seem to figure out what is the right
> > command, let alone the command line options. I want to create a file
> > with a list of the tape names, then run the command to read the list
> > and delete the tapes in the list.
>
> What do you mean by "delete the tapes"?  Do you just want to remove
> them (and any savesets on them) from the file and media databases?
>
>   for i in `cat tapelist`; do nsrmm -d $i ; done

Oops.  If you don't want nsrmm to prompt for confirmation of destructive
tasks, you'll need a '-y' on there as well..

   for i in `cat tapelist`; do nsrmm -y -d $i ; done

--
Darren Dunham                                           ddunham AT taos DOT com
Unix System Administrator                    Taos - The SysAdmin Company
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.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
Please note that any views or opinions presented in this email are solely
those of the author and do not necessarily represent those of the company.
Finally, the recipient should check this email and any attachments for the
presence of viruses. The company accepts no liability for any damage caused
by any virus transmitted by this email.

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

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