>
> Hello everyone,
>
> I am using NetWorker 6.2, running on Windows 2000 server, and I am try to
> write a script which will gracefully close down NetWorker if the power fails
> and my server goes onto UPS power.
>
> What I want to do is issue a command to stop any running groups, unload the
> current volume, then stop the NetWorker service and finally shutdown my
> server.
>
> Unloading the tape I can achieve with nsrjb, stopping the service I can
> achieve with NET STOP, but how do I cancel any groups which may be running
> prior to this.
printf ". type:nsr group\nupdate stop now:true\n" | nsradmin -i -
(or some equivalent in whatever scripting language you can use on the
machine).
> I imagine that I cannot unload the tape while a group is running, and so
> that will cause my whole script to fail, and leave NetWorker running (and
> possible accessing the tape), when my UPS software shuts down the
> server.
Why do you want to unload the tapes first? Does the windows
installation have the equivalent of 'nsr_shutdown'? That's all I'd use
on UNIX if I had to go down fast.
--
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.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
|