Networker

Re: [Networker] Script to automatically detect a backup/recover and stop them?

2004-10-04 04:47:37
Subject: Re: [Networker] Script to automatically detect a backup/recover and stop them?
From: Allen West <awest AT RACKSPACE DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Mon, 4 Oct 2004 03:38:47 -0500
Manel,

You can look for active savegrp processes and if present run...

nsr_shutdown -c -s

This will stop all savegrp and nsrexec processes (-s option) and will save
the worklist of what savesets were active (-c option).  The "-c" option
should allow you to restart the savegrps where they left off.  These options
will *not* shutdown the networker deamons.

Not sure about detecting a recover unless it is local.  "recover" process or
"nwrecover" for the GUI.

I'm assuming UNIX is the platform.

Allen West
Rackspace Managed Hosting

-----Original Message-----
From: Legato NetWorker discussion [mailto:NETWORKER AT LISTMAIL.TEMPLE DOT EDU] 
On
Behalf Of Manel Rodero
Sent: Monday, October 04, 2004 2:43 AM
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Subject: [Networker] Script to automatically detect a backup/recover and
stop them?

Hello,

My company is in the process of implement an automatic shutdown system for
all the machines. This system needs to execute an script in every machine.
This script will be customized to stop the processes in the correct order
and then shutdown the machine.

I have an script that eject the tapes in the tape drives and then stops
NetWorker. After this I can shutdown the machine without problems. But now,
the question is: what's the easiest manner to see if the server is doing a
machine or recover and stop them?

After the backup/recover is stopped I can eject the tapes and shutdown
NetWorker in the same manner than before. Any idea about this?

Thank you very much!

_________________________________________________________________

 o o o  Manel Rodero                   | LCFIB - UPC
 o o o  Systems Manager & HelpDesk     | Campus Nord - Modul B6
 o o o  Laboratori de Calcul           | Jordi Girona, 1-3
 U P C  Facultat Informatica Barcelona | 08034 Barcelona (Spain)
                                       |
 Mail : manel AT fib.upc DOT es               | Tel: +00 34 93 401 6940
 Web  : http://www.fib.upc.es/~manel   | Fax: +00 34 93 401 7040
_________________________________________________________________

--
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. Questions regarding this list
should be sent to stan AT temple DOT edu
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

--
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. Questions regarding this list
should be sent to stan AT temple DOT edu
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

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