UTH

UTH is a simple utility for creating time histogram plots, based on the JAS plotting widget. It is designed to read its input from a OS dependent command, such as ping or iostat.  UTH can be configured using an XML configuration file.

UTH is written in Java so should run on any platform which supports Java.

This is an example configuration file:

<UTHPlotter x="10%" y="10%" width="50%" height="40%" title="Ping Plot">
  <label axis="x">Time (seconds)</label>
  <label axis="y">Ping (ms)</label>
  <axis position="y" min="1" max="1000" logarithmic="true"/>
  <command command="ping -t www.cern.ch">
    <re match="time(.*)ms" fail="timed out">
      <data color="blue" symbol="none" bins="120">
        <legend>www.cern.ch</legend>
      </data>
    </re>
  </command>
  <command command="ping -t www.slac.stanford.edu">
    <re match="time(.*)ms" fail="timed out">
      <data color="green" symbol="circle" size="2">
         <legend>www.slac.stanford.edu</legend>
      </data>
    </re>
  </command>
</UTHPlotter>

Configuration File Syntax

UTHPlotter tag

Must be the first tag in the XML file.

Attributes:

Contained Tags:

label tag

Defines an axis label

Attributes:

Contained Tags:

Text:

axis tag

Defines attributes for an axis

Attributes:

Contained Tags:

command tag

Specify a command from which data will be read. Each command tag should contain one or more re tags, used to extract information from the command output and generate a plot.

Attributes:

Contained Tags:

re tag

Used to specify a regular expression which will be used to extract information from the output of a command.

Attributes:

Contained Tags:

data tag

Defines a data series. Each regular expression (re tag) should have one or more data series associated with it.

Attributes:

Contained Tags:

legend tag

Defines the text to be used in the legend for a particular data series.

Attributes:

Contained Tags:

Text:

How to specify colors

You can specify colors using common names, e.g. blue, red, green etc, or as RGB values using the syntax (rrr,ggg,bbb) where rrr etc =0 to 255.

Download

The latest version is 0.1.2, downloadable from here.

Feedback

Please send feedback/suggestions/bugs/complaints to tonyj@slac.stanford.edu.