Networker

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

2004-02-02 20:17:48
Subject: Re: [Networker] Command line for deleting file & media index entries
From: Darren Dunham <ddunham AT TAOS DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Mon, 2 Feb 2004 17:17:50 -0800
> > 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.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

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