Networker

Re: [Networker] Stopping Groups from the command line

2004-01-30 14:29:50
Subject: Re: [Networker] Stopping Groups from the command line
From: Davina Treiber <Treiber AT HOTPOP DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Fri, 30 Jan 2004 16:01:37 +0000
Paul Hansson wrote:
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.

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.

Has anyone got any ideas or pointers as to how I can achieve this?


You can do an nsradmin command such as:

print type:NSR group
update stop now: True

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