Clasweb: Difference between revisions

From CLONWiki
Jump to navigation Jump to search
Boiarino (talk | contribs)
No edit summary
No edit summary
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
'''clasweb''' (it is alias, canonic name is '''claspc28''') is official CLAS web server accessable from outside of JLAB. Several online-related services are running there, including logbook and online database interface for ''clasprod'' database on ''clondb1'' machine. Greg Riccardi is author and custodian for those two projects. Marty Wise from Computer Center is responsible for that machine, but Sergey Boyarinov has limited access to it as well. In particular he can restart ''apache'' and ''tomcat'' services using following commands:
'''clasweb''' is official CLAS web server accessable from outside of JLAB. Several online-related services are running there, including logbook and online database interface for ''clasprod'' database on ''clondb1'' machine. Greg Riccardi is author and custodian for those two projects. Marty Wise from Computer Center is responsible for that machine, but Sergey Boyarinov has limited access to it as well. In particular he can restart ''apache'' and ''tomcat'' services using following commands:


  ssh boiarino@claspc28
ssh boiarino@clasweb (from CUE machine !!!)
  claspc28> /apps/bin/sudo /etc/init.d/tomcat stop
/apps/bin/sudo /etc/init.d/tomcat stop
  claspc28> /apps/bin/sudo /etc/init.d/httpd stop
/apps/bin/sudo /etc/init.d/httpd stop
  claspc28> /apps/bin/sudo /etc/init.d/httpd start
/apps/bin/sudo /etc/init.d/httpd start
  claspc28> /apps/bin/sudo /etc/init.d/tomcat start
/apps/bin/sudo /etc/init.d/tomcat start


Restarting ''tomcat'' usually required in case if logbook is not working, and normally it is not necessary to restart ''httpd''.
Restarting ''tomcat'' usually required in case if logbook is not working, and normally it is not necessary to restart ''httpd''.


'''Slow control history''' software is located in ''/group/clas/www/clasweb/htbin/epics_history'' directory on claspc28. In particular script ''epics/pl'' displays main control GUI for the history graphs, and ''add_to_list.pl'' controls adding and deleting of items from the list. To work properly following attributes must be used (described in ''db_parms.pm'', which must be included into any scripts accessing database):
'''Slow control history''' software is located in ''/group/clas/www/clasweb/htbin/epics_history'' directory on claspc28. In particular script ''epics.pl'' displays main control GUI for the history graphs, and ''add_to_list.pl'' controls adding and deleting of items from the list. To work properly following attributes must be used (described in ''db_parms.pm'', which must be included into any scripts accessing database):


  $hostname = 'clondb1.jlab.org';
  $hostname = 'clondb1.jlab.org';
Line 16: Line 16:
  $database = 'epics';
  $database = 'epics';


User 'clasweb' from 'claspc28' can access 'epics' database on 'clondb1' making 'UPDATE', 'INSERT', 'DELETE' an 'SELECT'.
See 'clasweb' user privileges for 'clasweb' on 'clondb1' database server.
 
For '''CLAS Logbook''' information see [[Logbook]].

Latest revision as of 10:06, 1 February 2011

clasweb is official CLAS web server accessable from outside of JLAB. Several online-related services are running there, including logbook and online database interface for clasprod database on clondb1 machine. Greg Riccardi is author and custodian for those two projects. Marty Wise from Computer Center is responsible for that machine, but Sergey Boyarinov has limited access to it as well. In particular he can restart apache and tomcat services using following commands:

ssh boiarino@clasweb (from CUE machine !!!)
/apps/bin/sudo /etc/init.d/tomcat stop
/apps/bin/sudo /etc/init.d/httpd stop
/apps/bin/sudo /etc/init.d/httpd start
/apps/bin/sudo /etc/init.d/tomcat start

Restarting tomcat usually required in case if logbook is not working, and normally it is not necessary to restart httpd.

Slow control history software is located in /group/clas/www/clasweb/htbin/epics_history directory on claspc28. In particular script epics.pl displays main control GUI for the history graphs, and add_to_list.pl controls adding and deleting of items from the list. To work properly following attributes must be used (described in db_parms.pm, which must be included into any scripts accessing database):

$hostname = 'clondb1.jlab.org';
$user = 'clasweb';
$password = ;
$database = 'epics';

See 'clasweb' user privileges for 'clasweb' on 'clondb1' database server.

For CLAS Logbook information see Logbook.