17
Controls Group Controls Group November 19-22, 2002 EPICS Collaboration Jefferson Lab Electronic Logbook Theo Larrieu Theo Mcguckin Michelle Joyce

Jefferson Lab Electronic LogbookNovember 19-22, 2002 Controls Group EPICS Collaboration History ¾First instituted at the lab in 1996. ¾Variously used ∗Record of Operations for

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Jefferson Lab Electronic LogbookNovember 19-22, 2002 Controls Group EPICS Collaboration History ¾First instituted at the lab in 1996. ¾Variously used ∗Record of Operations for

Controls GroupControls GroupNovember 19-22, 2002

EPICS Collaboration

Jefferson Lab Electronic Logbook

Theo LarrieuTheo McguckinMichelle Joyce

Page 2: Jefferson Lab Electronic LogbookNovember 19-22, 2002 Controls Group EPICS Collaboration History ¾First instituted at the lab in 1996. ¾Variously used ∗Record of Operations for

Controls GroupControls GroupNovember 19-22, 2002

EPICS Collaboration

History

First instituted at the lab in 1996.Variously used∗ Record of Operations for DOE∗ Knowledge repository∗ Bulletin board to pass info among shifts/teams

Heavily Used∗ ~35,000 entries/year in main ops logbook ∗ 400 MB/year in main ops logbook∗ Other logbooks for Software, FEL, etc.

Page 3: Jefferson Lab Electronic LogbookNovember 19-22, 2002 Controls Group EPICS Collaboration History ¾First instituted at the lab in 1996. ¾Variously used ∗Record of Operations for

Controls GroupControls GroupNovember 19-22, 2002

EPICS Collaboration

Old logbook “home page”

Page 4: Jefferson Lab Electronic LogbookNovember 19-22, 2002 Controls Group EPICS Collaboration History ¾First instituted at the lab in 1996. ¾Variously used ∗Record of Operations for

Controls GroupControls GroupNovember 19-22, 2002

EPICS Collaboration

Old log entry

Page 5: Jefferson Lab Electronic LogbookNovember 19-22, 2002 Controls Group EPICS Collaboration History ¾First instituted at the lab in 1996. ¾Variously used ∗Record of Operations for

Controls GroupControls GroupNovember 19-22, 2002

EPICS Collaboration

Shortcomings

Reliance on static html files – 100,000’s∗ Sheer number a headache to manage∗ The html mingling of content and formatting

makes data searching and extraction difficult

Every program (60+ of them) responsible for number assignment, content formatting, not clobbering other entries. Little consistency.

Page 6: Jefferson Lab Electronic LogbookNovember 19-22, 2002 Controls Group EPICS Collaboration History ¾First instituted at the lab in 1996. ¾Variously used ∗Record of Operations for

Controls GroupControls GroupNovember 19-22, 2002

EPICS Collaboration

Components of an Entry

Required∗ Keywords/Title, Timestamps (create, commit),

Logbook(s), Entry-typeOptional∗ Attachment(s) (screenshots, documents, etc.)∗ Downtime information∗ References to other logs (backward/forward)∗ Problem-Tracking History

Page 7: Jefferson Lab Electronic LogbookNovember 19-22, 2002 Controls Group EPICS Collaboration History ¾First instituted at the lab in 1996. ¾Variously used ∗Record of Operations for

Controls GroupControls GroupNovember 19-22, 2002

EPICS Collaboration

New Version

Summer 2002.Addresses shortcomings∗ RDBMS replaces files.∗ Dynamic Scripting replaces static HTML∗ APIs shield apps from entry-making details

New Features∗ Integrated problem tracking∗ Threaded/linked entries

Page 8: Jefferson Lab Electronic LogbookNovember 19-22, 2002 Controls Group EPICS Collaboration History ¾First instituted at the lab in 1996. ¾Variously used ∗Record of Operations for

Controls GroupControls GroupNovember 19-22, 2002

EPICS Collaboration

Underpinnings

Relational Database (Oracle)Web Application Server (Apache + PHP)Libraries for programs that make entries∗ Tcl Package∗ Perl Module∗ C++ Library∗ HTTP API

Page 9: Jefferson Lab Electronic LogbookNovember 19-22, 2002 Controls Group EPICS Collaboration History ¾First instituted at the lab in 1996. ¾Variously used ∗Record of Operations for

Controls GroupControls GroupNovember 19-22, 2002

EPICS Collaboration

Make an Entry - Tcl

package require logXml…

set logXml(logbooks) {elog slog} set logXml(entry_type) "LOGENTRY" set logXml(title) "A brief log message"

logXml_write logXml

Page 10: Jefferson Lab Electronic LogbookNovember 19-22, 2002 Controls Group EPICS Collaboration History ¾First instituted at the lab in 1996. ¾Variously used ∗Record of Operations for

Controls GroupControls GroupNovember 19-22, 2002

EPICS Collaboration

Make an Entry - perl

use Jlab::logXml; …@logbooks = qw(elog slog);$logXml{'logbooks'} = \@logbooks; $logXml{'entry_type'} = "LOGENTRY";$logXml{'title'} = "A brief log entry";

logXml_write(\%logXml);

Page 11: Jefferson Lab Electronic LogbookNovember 19-22, 2002 Controls Group EPICS Collaboration History ¾First instituted at the lab in 1996. ¾Variously used ∗Record of Operations for

Controls GroupControls GroupNovember 19-22, 2002

EPICS Collaboration

New logbook “home page”

Page 12: Jefferson Lab Electronic LogbookNovember 19-22, 2002 Controls Group EPICS Collaboration History ¾First instituted at the lab in 1996. ¾Variously used ∗Record of Operations for

Controls GroupControls GroupNovember 19-22, 2002

EPICS Collaboration

Alternative Look

Page 13: Jefferson Lab Electronic LogbookNovember 19-22, 2002 Controls Group EPICS Collaboration History ¾First instituted at the lab in 1996. ¾Variously used ∗Record of Operations for

Controls GroupControls GroupNovember 19-22, 2002

EPICS Collaboration

New trouble report entry

Page 14: Jefferson Lab Electronic LogbookNovember 19-22, 2002 Controls Group EPICS Collaboration History ¾First instituted at the lab in 1996. ¾Variously used ∗Record of Operations for

Controls GroupControls GroupNovember 19-22, 2002

EPICS Collaboration

Logs can be queried

Page 15: Jefferson Lab Electronic LogbookNovember 19-22, 2002 Controls Group EPICS Collaboration History ¾First instituted at the lab in 1996. ¾Variously used ∗Record of Operations for

Controls GroupControls GroupNovember 19-22, 2002

EPICS Collaboration

Browser is not only interface

Page 16: Jefferson Lab Electronic LogbookNovember 19-22, 2002 Controls Group EPICS Collaboration History ¾First instituted at the lab in 1996. ¾Variously used ∗Record of Operations for

Controls GroupControls GroupNovember 19-22, 2002

EPICS Collaboration

Logbook Comparison

Accessible from scripts, browsers,spreadsheets.

Web browser only interface

Authenticated entriesUnauthenticated entries

Integrated downtime & problem tracking

Separate downtime & problem tracking

RDBMS (Oracle)Files (one per record)

New LogbookOld Logbook

Page 17: Jefferson Lab Electronic LogbookNovember 19-22, 2002 Controls Group EPICS Collaboration History ¾First instituted at the lab in 1996. ¾Variously used ∗Record of Operations for

Controls GroupControls GroupNovember 19-22, 2002

EPICS Collaboration

Future Direction

Enhance Problem-Tracking∗ Track problems with specific hardware.

Enhance Query/Search Tools∗ Oracle Intermedia to search attachments such

as PDF, Word documents.Integrate with Maintenance/Repair Scheduling.