Mhttpd

From MidasWiki
Revision as of 14:41, 17 December 2013 by Pierre (talk | contribs)
Jump to navigation Jump to search

Purpose

The mhttpd utility runs the MIDAS Web Server which allows the user to communicate with the experiment. It is used for run control.


Arguments

   -p port  : port number e.g. 8081 (no default)
  [-h] : connect to midas server (mserver) on given host
  [-e] : experiment to connect to
  [-v] : display verbose HTTP communication
  [-D] : starts program as a daemon
  [-E] : only display ELog system
  [-H] : only display history plots
  [-a] : only allow access for specific host(s). Several [-a Hostname] statements might be given
  [-help] : display usage information

Usage

  The TCP/IP port number is required as an argument in order to listen to the web-based request.
  mhttpd -p port [-h Hostname] [-e Experiment]  [-v] [-D] [-c] [-a Hostname]
  e.g.
  mhttpd -p 8081 -D

Features

As mentioned, mhttpd provide a mean for run control which include the monitoring of the run as well. The feature list is the following:

  • Transition the state of the run (stopped/running/paused), allows if setup to enter user running condition parameters at the start state.
  • Access the Online Database for data display and modification.
  • Display the Midas messages. These messages are generated by the Midas system as well as the user using cm_msg() functions.
  • Access to "ELOG" site. "Shortcut" switch to the predefined "electronic logbook" see...
  • Access the "Alarms" section for monitoring the different type of alarms (evaluated, programs, internals, periodics) see...

Multiple copies

Several copies of mhttpd can run on a single host, as long as they are started on different ports.

If more than one experiment runs on the same host, a server for each experiment must be started on a different port, e.g.

          mhttpd -e midas -p 8081 -D
          mhttpd -e midgas -p 8082 -D