From: Kasemir, K. <kas...@or...> - 2012-01-20 14:58:55
|
Hello: >1. Configuring the alarm system >In the document "Control System Studio Guide" says that >using alarm system, the user "alarm_config" can edit the >alarm system configuration and "For initial tests, you can >configure CSS authentication and authorization to use a >'dummy' mode". > >http://cs-studio.sourceforge.net/docbook/ch13.html#id422044 > >But, when I logged in as "alarm_config", I cannot configure >any alarm system configuration. How can I configure the alarm >system? > >I also use the LDAP for authentication, but in vain. Authentication and Authorization is more complicated than it needs to me. For example, we use JAAS, but it's wrapped a couple more times instead of using plain JAAS. For starters, you should build a product that has 'dummy' authentication and authorization built in. For that you do need to build your own product, or you can try the new NSRRC product, which is basically the "Basic EPICS" product + alarm system GUI + dummy auth & auth + dummy logbook (writes to /tmp/logbook.txt) To add dummy auth & auth to your own product, see 8_AuthAuth.ppt <https://ics-web.sns.ornl.gov/kasemir/CSS/Training/NSRRC/8_AuthAuth.ppt>: Include plugins in CSS product: org.csstudio.platform.jaasAuthentication org.csstudio.platform.jaasAuthentication.ui org.csstudio.sns.dummyAuthorization Configure like this in plugin_customization.ini of CSS product: # Select 'Dummy' JAAS Authentication org.csstudio.platform.jaasAuthentication/jaas_config_source=File org.csstudio.platform.jaasAuthentication/jaas_config_file_entry=Dummy Now any user and password will work. You still need to log on, though, but any user name and password will be accepted. >2. Web Reports >It seems that there are JSP-based web reports that can make >reports from the RDB storeing alarm configuration and states. >Although I accessed the source repository on SourceForge, >I cannot find the source code. Where can I get them? Yes, these are SNS reports that include some useful archive and alarm reports, but also a lot more that is specific to the SNS. It shows that it is very easy to create a bunch of JSP reports, but harder to create a setup that is portable to other labs. You can get a snapshot on Reports.tgz <https://ics-web.sns.ornl.gov/css/Reports.tgz> See Readme.txt in there >3. Table composition of Logbook >I tried to use Logbook, but there is no information about >the teable composition of the RDB. CSS includes a plugin that defines the API for making logbook entries. You will have to implement the glue code to use that with the logbook that you have at your site. The org.csstudio.logbook.sns plugin is such a glue code for the SNS logbook, but you cannot use the SNS logbook at other sites because it is highly connected to the rest of SNS, for example the system that knows who is working on what group, responsible for what etc. You can look at org.csstudio.logbook.olog, a new logbook system developed by FRIB and BNL. Maybe that is something that you can use at your site. Otherwise, the NSRRC product contains a very primitive logbook, just meant to "enable" the logbook functionality in CSS so you can try it out without a real logbook. Thanks, Kay |