You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Preliminary informations

These are the needed configuration files:

  • /u2/dcs/db/DBFiles_2/IPTable.DBFile

  • /u2/dcs/script_linux/.DCS_Environment_eth

On the web server, the IPTable.DBFile file is rsynced from crontab every 5 minutes.

devil_manager web application

To check the ethernet devil status or to restart them, you can use the devil_manager web application. This web app allows you to directly open a VNC session for every single ethernet devil (linux or windows) to check what is going on. It also check the state (alive) every 30 seconds and let you restart the devil in a very easy way. The web app uses a proxy script that check the passed parameters (semantic and syntactic) from the app and call the real reboot script on the remote host: devil_mngr.sh. This is the workflow:

Application Workflow
Web Application: http://danteweb.lnf.infn.it/devil_manager
	Proxy Script: /opt/web_devil_restart.sh <ip> <devil_number> [-f]
		SSH on remote host where the devil to be rebooted is running
			/u2/dcs/script_linux/devil_mngr.sh <restart|force_restart> <DEVIL NUMBER>

Those passages are completely transparent to the user (the security is granted thanks to sudoers usage and restriction rules for apache user).

devil_mngr.sh

This is the syntax of the script:

/u2/dcs/script_linux/devil_mngr.sh <start|restart|force_restart|stop> <devil_number|all>

The possible commands are start, restart, force_restart and stop, while the parameters to be passed to the script are the Devil number to be rebooted or all that launch the command on every configured devil on that host.

The script does not print anything on stdout, instead it logs everything in /u2/dcs/script_linux/logs/dcs_report.log. These are the workflows for every available command:

start

  • Start VNC display for the selected devil;

  • Start the devil on VNC started;

restart

  • Stop devil;

  • Start VNC display for the selected devil (if already started, it goes to the next step without errors);

  • Start the devil on VNC started;

force_restart

  • Stop devil;

  • Kill VNC display for the selected devil;

  • Start VNC display for the selected devil;

  • Start the devil on VNC started;

stop

  • Stop devil;


  • No labels