Presentation is loading. Please wait.

Presentation is loading. Please wait.

Jan. 30th, 2015KIT Seminar, Paul Scherrer Institute, Switzerland The electronic logbook ELOG and its utilization for accelerator operations Stefan Ritt.

Similar presentations


Presentation on theme: "Jan. 30th, 2015KIT Seminar, Paul Scherrer Institute, Switzerland The electronic logbook ELOG and its utilization for accelerator operations Stefan Ritt."— Presentation transcript:

1 Jan. 30th, 2015KIT Seminar, Paul Scherrer Institute, Switzerland The electronic logbook ELOG and its utilization for accelerator operations Stefan Ritt

2 2/23 Part 1 Quick demo Design principles of ELOG Advanced features: Automatic entries, Checklists, Mirroring Part 2 PSI for accelerator operation Agenda Jan. 30th, 2015KIT Seminar,

3 Stefan Ritt3/23 MIDAS DAQ system developed in Originally for PIBETA PSI First system with web interface Need for electronic logbook Searchable Easy to copy/distribute Remote access Birth of ELOG First was integral part of MIDAS system Standalone version in Releases – (current) (elog/doc/ChangeLog) A bit of history Jan. 30th, 2015KIT Seminar, Version 1.8.3, released August 8, Fixed problems occurring under Red Hat modified mserver.c to run under xinetd - put xinetd configuration info into INSTALL file - added /Custom tree in ODB for mhttpd to display user-specific pages - standalone elogd program included for offline logbook display - added mail notification in elog in mhttpd Version 1.8.3, released August 8, Fixed problems occurring under Red Hat modified mserver.c to run under xinetd - put xinetd configuration info into INSTALL file - added /Custom tree in ODB for mhttpd to display user-specific pages - standalone elogd program included for offline logbook display - added mail notification in elog in mhttpd

4 Stefan Ritt4/23 Web access Reachable from any computer with Web Browser Monolithic C(++) program Faster than interpreted languages Needs less memory, runs nicely on Raspberry PI Does not depend on Web servers No dependency of external libraries (except SSL and Kerberos) Simple to compile and install Recent extensions in JavaScript “Designed by user” Only contains features that are needed (Most) needed features are contained Configurable Can be electronic logbook, discussion forum, bug tracker, … Huge number of configuration options Some will be covered in this seminar Basic principles of ELOG Jan. 30th, 2015KIT Seminar,

5 Stefan Ritt5/23 Simple text database Relational databases (mySQL) were not available or were “heavy” back in 2001 Database cannot get corrupt Database can be edited with ASCII editor (by “experts”) Many people use scripting tools to analyze or modify ELOG databases Attachments as files Data storage with one file per day YYMMDDa.log Can make easy backups $ cp 14????a.log /backup Recent change with one subdirectory per year 2013/13*a.log 2014/14*a.log … ELOG Database Jan. 30th, 2015KIT Seminar, 1 Date: Thu Nov 08 18:37: Author: Stefan Ritt Type: Routine Category: General Subject: Welcome Attachment: Encoding: ELCode ======================================== [B]Congratulations for installing ELOG sucessfully! [/B] This is a demo entry to ensure the elogd server is working correctly. Click [I]"New"[/I] to add new pages and [I]"Delete"[/I] to delete this page. 1 Date: Thu Nov 08 18:37: Author: Stefan Ritt Type: Routine Category: General Subject: Welcome Attachment: Encoding: ELCode ======================================== [B]Congratulations for installing ELOG sucessfully! [/B] This is a demo entry to ensure the elogd server is working correctly. Click [I]"New"[/I] to add new pages and [I]"Delete"[/I] to delete this page.

6 Stefan Ritt6/23 Different “faces” Jan. 30th, 2015KIT Seminar,

7 Stefan Ritt7/23 Configuration via single text file, editable through web browser Total of 149 settings and 41 flags Documented on one huge page: Configuration Concepts Jan. 30th, 2015KIT Seminar, [global] port = 8080 [demo] Theme = default Comment = General Linux Tips & Tricks Attributes = Author, Type, Category, Subject Options Type = Routine, Problem Fixed, Configuration, Other Options Category = General, Hardware, Software, Network, Other Required Attributes = Author, Type Quick filter = Date, Type Reverse sort = 1... Server options valid for all logbooks Logbook Attributes Flag

8 Stefan Ritt8/23 Attributes are values common to all entries in a logbook, like “columns” in a relational database Defined via Attributes = Author, Type, Category Stored in header of text files Attribute sets are extendable Attributes Jan. 30th, 2015KIT Seminar, 1 Date: Thu Nov 08 18:37: Author: Stefan Ritt Type: Routine Category: General Subject: Welcome Attachment: Encoding: ELCode ======================================== [B]Congratulations for installing ELOG sucessfully! [/B] This is a demo entry to ensure the elogd server is working correctly. Click [I]"New"[/I] to add new pages and [I]"Delete"[/I] to delete this page. 1 Date: Thu Nov 08 18:37: Author: Stefan Ritt Type: Routine Category: General Subject: Welcome Attachment: Encoding: ELCode ======================================== [B]Congratulations for installing ELOG sucessfully! [/B] This is a demo entry to ensure the elogd server is working correctly. Click [I]"New"[/I] to add new pages and [I]"Delete"[/I] to delete this page.

9 Stefan Ritt9/23 Settings can depend on the value of an attribute Hide certain attributes on condition, different tooltips, logical or of conditions, … “Merge” different logbooks into one Conditional attributes Jan. 30th, 2015KIT Seminar, Attributes = PC Name, Operating System, Version Options Operating System = Linux{1}, Windows{2} {1} Options Version = 2.2, 2.4, 2.6 {2} Options Version = NT, XP, W7, W8

10 Stefan Ritt10/23 Enable/Disable almost all features Default presets for most dialog boxes Select language (17 languages available) Flags Jan. 30th, 2015KIT Seminar,

11 Stefan Ritt11/23 notifications for certain processes New entry, modified entry to registered user(s) or external addresses Attributes have certain values (like new entry with system=DAQ & category=Error ) can contain summary, full entry, with/without attachments notifications Jan. 30th, 2015KIT Seminar,

12 Stefan Ritt12/23 Simple access control via read & write passwords (obsolete) User accounts with central password database (XML) and optional guest access Auto-logout, self register [with admin approval] Kerberos & LDAP support Access control Jan. 30th, 2015KIT Seminar, stefan GbnPpEbx9tFFQ/iUW3mU8Cmi/a.JXVwdmVk74jFt56C Stefan Ritt Thu Oct 23 09:37: Thu Oct 23 11:43: Online DAQ stefan GbnPpEbx9tFFQ/iUW3mU8Cmi/a.JXVwdmVk74jFt56C Stefan Ritt Thu Oct 23 09:37: Thu Oct 23 11:43: Online DAQ

13 Stefan Ritt13/23 Themes Jan. 30th, 2015KIT Seminar, CSS = /* default formatting */ body { margin:3px; color:black; background-color:white; font-family:verdana,tahoma,sans-serif; /* background-image:url(elog.gif); */ } /* standard link colors and decorations */ a:link { color:#0000FF; text-decoration:none } a:visited { color:#800080; text-decoration:none } a:hover { color:#0000FF; text-decoration:underline } a:active { color:#0000FF; text-decoration:underline } a:focus { color:#0000FF; text-decoration:underline } td { color:black; font-size:12px; }

14 Stefan Ritt14/23 Keep two or more logbooks in sync Synchronization works both ways Implementation using MD5 hash values Mirroring Jan. 30th, 2015KIT Seminar, ID 3MD5 ID 2MD5 ID 1MD5 ID 3MD5 ID 2MD5 ID 1MD5 Logbook 1Logbook 2 ID 3MD5 ID 2MD5 ID 1MD5 ID 3MD5 ID 2’MD5 ID 1MD5 ID 4MD5 ID 3MD5 ID 1MD5 ID 3MD5 ID 2’MD5 ID 1MD5 ID 4MD5 ID 2’ ID 4MD5 Mirror server = Mirror config = 0 | 1 Mirror cron = 0 3 * * * // every night at 3:00 Mirror server = Mirror config = 0 | 1 Mirror cron = 0 3 * * * // every night at 3:00

15 Stefan Ritt15/23 elog -h Host name of elog server [-p port] Port number, default 80 -l logbook Name of logbook -s Use SSL for communication [-v] For verbose output [-w password] Write password defined on server [-u username password] User name and password [-f ] Up to 50 attachments -a = Up to 50 attributes [-r ] Reply to existing message [-q] Quote original text on reply [-e ] Edit existing message [-x] Suppress notification [-n 0|1|2] Encoding: 0:ELcode,1:plain,2:HTML -m ] | Entry body “elog” utility Jan. 30th, 2015KIT Seminar, Command line utility to commit ELOG entries Scriptable “ cat text | elog –h … -l … ” Automatic entries e.g. accelerator status → next talk

16 Stefan Ritt16/23 Completely custom HTML hand crafted forms as input forms for logbooks Perfect for shift checks with tablet computers Shift Checklist Jan. 30th, 2015KIT Seminar, https://midas.psi.ch/elogs/Forum/66909

17 Stefan Ritt17/23 Check list table Jan. 30th, 2015KIT Seminar,

18 Stefan Ritt18/23 Search engine in Browser Jan. 30th, 2015KIT Seminar, Most browsers allow definition of custom search engines Define ELOG as a search engine with custom search string

19 Stefan Ritt19/23 Recent extension (Dario Milicic) allows Rich Editing, Drag & Drop of images and smartphone photo upload CKEditor Jan. 30th, 2015KIT Seminar,

20 Stefan Ritt20/23 Public GIT repository “make” “sudo make install” “sudo /etc/init.d/elogd start” “launchctl” under OSX Source code TAR ball Windows Binaries Linux Binaries (RPS) Debian Package Installation Jan. 30th, 2015KIT Seminar,

21 Stefan Ritt21/23 Use since 2001 for three large experiments with ~30 logbooks Reliable, easy to use “monit” tool to restart crashed server (couple of times per year on public server) In spite of vast usage (~10 labs, all LHC experiments) I get only ~few issues per month Logbook size fine to ~few 100’000 entries, search can get slow Personal experience with ELOG Jan. 30th, 2015KIT Seminar,

22 Stefan Ritt22/23 In case of questions … Jan. 30th, 2015KIT Seminar,

23 Stefan Ritt23/23 How to match existing functionality to accelerator operation needs? ELOG for accelerator operation Jan. 30th, 2015KIT Seminar, CSS Bookmarks Conditional Formatting Conditional Formatting Kerberos Mirror Servers Access Rules elog Command elog Command Forms Export Structured Information Structured Information Logbook Groups Calculated Fields Actions → Andreas Lüdeke


Download ppt "Jan. 30th, 2015KIT Seminar, Paul Scherrer Institute, Switzerland The electronic logbook ELOG and its utilization for accelerator operations Stefan Ritt."

Similar presentations


Ads by Google