HI Roger.
One of the things I have done in the past if I want to delete a jukebox is
an nsradmin scripts something similar to the following
. type: nsr device;parent jukebox: <jb name>
update comment: deleteme
. type: nsr jukebox;name: <jb name>
delete
. type: nsr jukebox;name: <jb name>
delete
. type: nsr device; comment: deleteme
delete
Obviously you want to check you have it's all correct before running it.
I'm doing this from memory so there could be mistakes.
You have to delete the jukebox twice as networker will request you to
confirm it.
I mainly use this strategy in a VTL environment where I keep having to add
devices to storage nodes and therefore delete devices and recreate the
jukebox.
If they aren't jukebox devices, you also have the option of using media type
e.g. . media type: LTO Ultrium. Beyond that, I'm not too sure whether
Cheers!
Brendan
On Sun, Mar 9, 2008 at 11:52 AM, Roger Penrose <lotro.sub01 AT gmail DOT com>
wrote:
> Hi,
>
> I know that I can do *most* things from the command line, but it has
> always
> been a problem to script the setting up or deletion of devices. I was
> hoping
> the list could help me find the optimal ways to do this?
>
> On *nix server there ARE ways, but they are clunky at best, for example
> here
> is a delete of "mydevice" using piped commands to nsradmin :
>
> ( echo ". type: NSR device; name: mydevice" ; echo "show name" ; print ;
> echo delete ) | /usr/sbin/nsradmin -i -
>
> My question is, what methods do users on the list use to create or destroy
> many devices in NetWorker so that this can be scripted most efficiently?
> Also, if possible, I would greatly appreciate methods on Windows as well
> as
> *nix?
>
> Regards,
>
> Roger.
>
> 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
|