MIDAS Clients Overview
From tigwiki
Contents |
[edit] Introduction and Background
This page describes how to start the various MIDAS system components for the main 8pi experiment. These instructions assume you are a little bit familiar with Linux and Midas. They have been adapted from those for TIGRESS.
[edit] MIDAS Components
The NEW system - USE THIS:
| Program Name | Type | Client Name[1] | Working Directory[2] | Compiles On[2] | Runs As User@Machine | Command Line (from working directory) |
|---|---|---|---|---|---|---|
| mserver | Server | grsmid00 | eightpi@grsmid00 | mserver | ||
| mhttpd | Client | mhttpd | grsmid00 | eightpi@grsmid00 | nice +8 mhttpd -p 8081 | |
| mlogger | Client | mlogger | grsmid00 | eightpi@grsmid00 | mlogger | |
| frontend | Client | 8pi | ~/online | lxdaq02 | eightpi@lxdaq02 | ./8pi |
| analyzer | Client | Analyzer | ~/online/analyzer | grsmid00 | eightpi@grsmid00 | nice +4 analyzer |
| fe_epics | Client | Epics | ~/online/fe_epics | grsmid00 | eightpi@grsmid00 | nice +4 fe_epics |
| roody | Aux. | GUI | ~/online | grsmid00 | eightpi@grsmid00 | roody -r setup.xml |
| DVM | Client | DVM | ~/online/DVM | lxdaq02 | eightpi@lxdaq02 | ./DVM |
| Striptool | Aux. | ssh -X 8pi@isacepics1 |
The OLD system - DONT USE THIS:
| Program Name | Type | Client Name[3] | Working Directory[2] | Compiles On[2] | Runs As User@Machine | Command Line (from working directory) |
|---|---|---|---|---|---|---|
| mserver | Server | isdaq08 | 8pi@isdaq08 | mserver | ||
| mhttpd | Client | mhttpd | isdaq08 | 8pi@isdaq08 | nice +8 mhttpd -p 8081 | |
| mlogger | Client | mlogger | isdaq08 | 8pi@isdaq08 | mlogger | |
| frontend | Client | 8pi | ~/online | lxdaq02 | 8pi@lxdaq02 | ./8pi |
| analyzer | Client | Analyzer | ~/online/analyzer | isdaq08 | 8pi@isdaq08 | nice +4 analyzer |
| GUI | Aux. | GUI | ~/online/GUI | isdaq08 | 8pi@isdaq08 | ./GUI |
| Striptool | Aux. | ssh -X 8pi@isacepics1 |
[edit] Detailed Description of Each Client
Detailed descriptions of each client or program are outlined in the following pages. Also see Killing Everything.
[edit] Setting up the Terminal Window
In order to give the on-call DAQ experts half a chance to diagnose things from home, all the MIDAS Components should be launched from interactive sessions on the main display of the MIDAS back-end server, grsmid00. This terminal window should already exist, unless the eightpi@grsmid00 account has been logged out for some reason (e.g. crash).
If you cannot find a terminal window with about 10 tabs in it, you will have to start a new one
[edit] Setting up a new terminal window from scratch
- Start a new Terminal window. Either a Konsole or a Terminal (/usr/bin/gnome-terminal) will work.
- For each Component in the MIDAS Components list in the order from Top to Bottom:
- Open a tab: Session → New Session
- Name the tab with the client name. Right-click on the tab at the bottom, select Rename Session, and type in the client name.
- ssh to the correct user@machine.
- If a working directory is specified, cd to it.
- Open more tabs:
- One called grsmid00: ssh to eightpi@grsmid00. This one will be used for compiling codes if needed.
- One called odbedit: cd to ~/online, and use this one to run odbedit sessions if needed.
- At least one more: for generic work.
[edit] Verify sessions
If the terminal window already exists, go through and verify that all the appropriate tabs exist, and that they are logged in to the correct machine and cd'd to the correct working directory.
[edit] Starting the Components
Go through the list of components from top to bottom, and do the following:
- Go to the tab on the main terminal window with the same name. Verify that you are logged into the same machine and cd'd to the correct working directory.
- Start the program using the listed command line.
[edit] Restarting individual clients
Occasionally, one or more clients will crash and will need to be restarted. Usually this is indicated by a red cell somewhere on the main status page. Other symptoms include things not working right. (This description sucks. Someone should fix it.)
To restart an individual client:
- Although it is not mandatory,it is recommended to stop the run now. You'll want to make an e-log entry anyway.
- Find the appropriate line for this client on the MIDAS Components list. Use the entries in this line for the "appropriate" Konsole window, machine, etc. as described below.
- If client is an auxilliary client, try to shut it down with "exit" from a pull-down menu.
- If client is a regular MIDAS client, try to stop client from within MIDAS.
- From the main control window, hit the Programs button.
- See if the client in question is on the Programs page.
- If it is, click the Stop client
- Find the appropriate Konsole window. If the program hasn't stopped yet, hit Ctrl-C twice.
- Do an ODB cleanup.
- Start odbedit on grsmid00.
- Type cleanup.
- Type quit.
- Go to the appropriate tab on the main Konsole window. Verify that you are still logged into the appropriate machine, user, and directory.
- Start the program using the listed command line.
[edit] Stopping all clients
If the DAQ crashed you may want to completely stop all components and then restart them all.
- Stop the run. If this fails, don't worry -- you're about to fix it.
- Shut down all the Auxilliary (Aux.) clients. First try it in an orderly fashion, either by selecting "exit" from a pull-down menu or by closing the window, if any. If this doesn't work, go to the tab where it is running, and hit Ctrl-C twice.
- Do an ODB cleanup.
- Start odbedit on grsmid00.
- Type shutdown all.
- Type cleanup.
- Type quit.
- For each component:
- Find a terminal tab logged in as the correct user on the correct machine. You might have to ssh.
- Do a killall component. Use the Program Filename for the component.
- Do a killall -9 component.
- Repeat the above ODB cleanup steps.

