SES Alarm Log Browser - PowerPoint PPT Presentation

1 / 8
About This Presentation
Title:

SES Alarm Log Browser

Description:

End time defaults to last message in today's log file. Output is to terminal ... loc locator example: (loc == '023') attr attribute example: (attr != ' P5V' ... – PowerPoint PPT presentation

Number of Views:45
Avg rating:3.0/5.0
Slides: 9
Provided by: Bart72
Category:
Tags: ses | alarm | browser | locator | log | py

less

Transcript and Presenter's Notes

Title: SES Alarm Log Browser


1
SES Alarm Log Browser
  • J. Frederick Bartlett
  • Vladimir Sirotenko

2
Significant Event System
3
Invoking the sesBrowser
  • Command line
  • sesBrowser.py ltfilter-filegt ltstart-timegt
    ltend-timegt
  • Time format
  • yyyy-mm-dd hhmmss
  • Example 2003-05-18 120000
  • End time defaults to last message in todays log
    file
  • Output is to terminal
  • For output file add gtfilename to command line

4
Filter Definition
  • A filter definition file consists of a series of
    addFilter statements
  • Arguments all quoted strings
  • title text filter title for printing
  • filter text- Python boolean expression
  • action text
  • print() print filtered alarm messages
  • stat() print count by device name
  • hist( ) display histogram of count vs. time

5
Python Boolean Expression
  • Variable names
  • Device name (string)
  • Name example (name MUO_PDT_023/P5V)
  • Device name components (string)
  • det detector name example (det MUO)
  • devtype device type example (devtype !
    PDT)
  • loc locator example (loc 023)
  • attr attribute example (attr ! P5V)
  • Priority message priority (numeric)
  • priority example (priority gt 100)

6
Boolean Expression
  • Boolean term names
  • Severity message severity
  • severity example (severity major)
  • Major severity major
  • Minor severity minor
  • Invalid severity invalid
  • Boolean expression example
  • (dev MUO) and (devtype HVC) and
    (priority gt 100)
  • Warning
  • Quoted strings within quoted strings must use
    different quote characters

7
stat() Action Example
  • Filter for muon example
  • File name /online/config/muo/muo.bro
  • Command lines for example
  • setup d0online
  • sesBrowser.py muo.bro 2003-05-18 000000
    2003-05-18 180000 gtm.log

8
stat() Action Example
Write a Comment
User Comments (0)
About PowerShow.com