Re: [Networker] Command line for deleting file & media index entries
2004-02-02 20:15:32
>
> 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
or do you want to mark the tapes recyclable?
for i in `cat tapelist`; do nsrmm -o recyclable $i ; done
or do you want to actually relabel the volume?
for i in `cat tapelist`; do nsrjb -LR -Y $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.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
|
|
|