Hello,
I'm in the process of automating the shutdown of all our host in
emergency cases and I've arrived to our legato server and library.
I've created a shutdown script for legato that does, basically, the
following (is a Windows 2008 server with Legato 7.4.4):
nsrjb -HH (reset)
nsrjb -u -v (unload tapes)
net stop xxx (stop services)
***
shutdown
but, I would like to include a line *** to stop the library. I've tried
to use 'curl' to simulate the use of the web interface, something like:
curl -c cookies.txt http://library
curl -c cookies.txt -d
"CheckForOthers=1&LDAPDomain=&username=username&password=password&use_ldap=on"
http://connor.fib.upc.es/index.htm
curl -c cookies.txt -d controlCommand=stop
http://connor.fib.upc.es/shutdown.htm
but it does nothing because of the lack of JavaScript support (or
something related that I don't know because I'm not a web developer).
Does someone have an script for shutdown this library? (instead of use
the web interface or the panel in the library?).
Thank you very much!
--
Manel Rodero Blánquez
o o o IT Systems Manager
o o o Laboratori de Càlcul
o o o Facultat d'Informàtica de Barcelona
U P C Universitat Politècnica de Catalunya - Barcelona Tech
E-mail : manel AT fib.upc DOT edu
Tel. : +34 93 401 0847
Web : http://www.fib.upc.edu/
======================================================================
Abans d'imprimir aquest missatge, si us plau, assegureu-vos que sigui
necessari. El medi ambient és cosa de tots.
--[ http://www.fib.upc.edu/disclaimer/ ]------------------------------
ADVERTIMENT / TEXT LEGAL: Aquest missatge pot contenir informació
confidencial o legalment protegida i està exclusivament adreçat a la
persona o entitat destinatària. Si vosté no es el destinatari final o
persona encarregada de recollir-lo, no està autoritzat a llegir-lo,
retenir-lo, modificar-lo, distribuir-lo, copiar-lo ni a revelar el seu
contingut. Si ha rebut aquest correu electrònic per error, li preguem
que informi al remitent i elimini del seu sistema el missatge i el
material annex que pugui contenir. Gràcies per la seva col·laboració.
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
|