Networker

Re: [Networker] Script to stop a Networker server?

2005-07-13 07:30:09
Subject: Re: [Networker] Script to stop a Networker server?
From: Manel Rodero <manel AT FIB.UPC DOT EDU>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Wed, 13 Jul 2005 13:26:01 +0200
Hello again,

First of all sorry for not answering your messages sent some weeks ago (I've
been at home due to the birth of my daughter ;-).

Ok, I'll try to clarify a little the reason because I want to write an
script to shutdown our Networker server. I need an script because this
script will be called by a centralized shutdown process for all the machines
in our computer center.

We have a very heterogeneus environment with more than 300 servers (Windows,
Solaris, Linux, ...) and sometimes we need to stop them before a concrete
day/time (for example, stop all the machines 30 minutes before a programmed
power shutdown in all buildings).

Some years ago, this process was done manually; two or more people went to
the computer room and started to stop the machines (login using admin/root
passwords, shutting down, etc.). This was a problem because is SLOW as the
user need to know the password, login and execute the correct command to
shutdown the machine (differente in every environment).

So, the past week we created a centralised method to launch a remote
shutdown of every machine in the computer room. This process can stop all
the machines in a controlled manner (i.e. respecting dependencies, mount
points, dns dependencies, clusters, disks, etc.) in +/- 20 minutes. The
process is monitored and we can see a graphic with the state of the machines
and see how they are stopped. The program is complex than this explanation
as it controls the UPS too and all the communication is secured by SSH/SSL
but more or less this is the idea.

What's the problem with the Legato server? First of all, we need to stop it
without having operations running (backups, restores, etc.). Legato is
version 7.1.3 and is running under Windows 2000. In the jukebox we need to
eject all tapes because we will poweroff it and we don't want to have tapes
inside the drives -because possibly damage-. So, the script that will be
called from a central location need to do this:

1) Stop all operations in Legato (running backups, running restores)
accesing tapes
2) Eject all tapes in the drives
3) Stop Networker services
4) Shutdown Windows

Then, our centralized process will detect that the Legato server is shutdown
and it will poweroff the jukebox (by using a managed outlet).

I hope this explanation will help in having ideas about what's the best
method to do this script.

Thank you very much again.


> -----Original Message-----
> From: Legato NetWorker discussion 
> [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On Behalf Of Stan Horwitz
> Sent: Friday, June 17, 2005 3:17 PM
> To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
> Subject: Re: [Networker] Script to stop a Networker server?
> 
> 
> ---- Original message ----
> >Date: Fri, 17 Jun 2005 14:42:43 +0200
> >From: Manel Rodero <manel AT FIB.UPC DOT EDU>  
> >Subject: [Networker] Script to stop a Networker server?  
> >To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
> >
> >Hello,
> >
> >I'm creating an script to stop our networker server. This 
> script will be
> >integrated in our automatic shutdown system of machine in case of
> emergency.
> 
> You didn't indicate which version of NetWorker you are using and 
> which OS your NetWorker server runs on. Also, may I ask why you
> are doing this? If on a Unix platform, why not just use "nsr_shutdown"
> and leave it at that? This way, your backups that were in 
> progress will
> resume when your NetWorker server is returned to service, 
> provided that
> you are using a relatively recent NetWorker version. Actually, all of
> the backups may not resume, but you'll have to see this from 
> experience.
> 
> --
> Note: To sign off this list, send a "signoff networker" 
> command via email
> to listserv AT listserv.temple DOT edu or visit the list's Web site at
> http://listserv.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 listserv.temple DOT edu or visit the list's Web site at
http://listserv.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>
  • Re: [Networker] Script to stop a Networker server?, Manel Rodero <=