Starting and Stopping the MIDAS Clients
From tigwiki
Contents |
[edit] Introduction and Background
This page describes how to start the various MIDAS system components for the main TIGRESS experiment. These instructions assume you are a little bit familiar with Linux and Midas.
[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, midtig02. This terminal window should already exist, unless the tigress@midtig02 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 midtig01: ssh to tigress@midtig01. This one will be used for compiling codes if needed.
- One called odbedit: cd to /home/tigress/tigcol2/frontend, and use this one to run odbedit sessions if needed.
- At least one more: for generic work.
[edit] Starting Konsole using a profile
If a single Konsole window already exists somewhere, you can launch a new Konsole session using the --profile option:
- konsole --vt_sz 192x48 --profile daq-gh &
The daq-gh may not be the most up-to-date. Make sure you verify all sessions.
[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 midtig02.
- 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 midtig02.
- 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.
[edit] SHEREKHAN MIDAS Components
| Program Name | Type | Client Name[1] | Working Directory[2] | Compiles On[2] | Runs As User@Machine | Command Line (from working directory) |
|---|---|---|---|---|---|---|
| mserver | Server | sherekhan@midtig06 | mserver | |||
| mhttpd | Client | mhttpd | sherekhan@midtig06 | mhttpd -p 8081 | ||
| mlogger | Client | mlogger | sherekhan@midtig06 | mlogger | ||
| fetigcol | Client | FeTigCol | /home/sherekhan/tigcol3/frontend | lxdaq17 | sherekhan@lxdaq17 | ./fetigcol -i 1 |
| analyzer | Client | Analyzer | /home/sherekhan/tigcol3/iAnalyzer | midtig06, midtig04, or mastodon | sherekhan@midtig06 | ./analyzer -h midtig06 -e sherekhan -s 9091[3] |
| event builder | Client | event builder | /home/sherekhan/tigcol3/EventBuilder/src_cpp | midtig06 | sherekhan@midtig06 | ./eventbuilder |
| Masks | Script | tigenable | /home/sherekhan/tigcol3/frontend | midtig06 | sherekhan@midtig06 | ./tigenable 1 2 3 4 5 6 (7 8 9)[4] |
| fe_epics | Client | Epics | /home/sherekhan/tigcol3/epics[5] | midtig02 | tigress@midtig02 | ./fe_epics -h midtig06 -e sherekhan |
| femcs | Client | Femcs | /home/sherekhan/tigcol3/femcs | lxdaq19 | sherekhan@lxdaq19 | ./femcs -h midtig06 -e sherekhan |
| roody | Aux. | sherekhan@midtig04 | roody -H midtig06:9091[7] | |||
| Striptool | Aux. | ssh -X tigsebt3a@isacepics1 |
Notes:
- ↑ Only clients have names -- empty boxes correspond to programs that are not MIDAS clients
- ↑ 2.0 2.1 The production (i.e. working) version of any user-written software is normally in this working directory, and should be compiled while logged into the machine listed. Empty entries are not user-written, do not need to be compiled, and can be started in any directory.
- ↑ As of the 11Be run of 2011, the analyzer has been broken into four parts with different executable names: analyzer-w for waveforms, analyzer for hit patterns & raw charge, analyzer-a for analyzed spectra e.g. gain-corrected energies times and such. Replace 'analyzer' with 'analyzer-w' or 'analyzer-a' as needed. You can run these on any of our 64-bit machines -- in fact, that is encouraged. The final parameter specifies which port to use for the roody connection below. You need to use a unique port number for each running analyzer -- I recommend 9090 for analyzer-w, 9091 for analyzer, and 9092 for analyzer-a.
- ↑ The numbers correspond to the collector cards. 1 through 6 are Ge, 7 and 8 are Silicon, and 9 can be used for RF. To enable silicon only, use './tigenable 7 8'
- ↑ Make sure you log in as the correct user at the correct machine, and then cd to the correct path. The Isac-wide Epics system will only talk to specific accounts on specific machines. For this client it is common that the working directory is not the user account home directory.
- ↑ The working directory is normally set to the data directory where data is being logged and histograms are being saved.
- ↑ This example works with the analyzer example given above, which itself gives the "misc" and "charge" sets of spectra. Change the host (midtig06) and port (9090) to match how you launched the analyzer.See the roody page for more information.
[edit] TIGRESS MIDAS Components
| Program Name | Type | Client Name[8] | Working Directory[2] | Compiles On[2] | Runs As User@Machine | Command Line (from working directory) |
|---|---|---|---|---|---|---|
| mserver | Server | tigress@midtig06 | mserver | |||
| mhttpd | Client | mhttpd | tigress@midtig06 | mhttpd -p 8081 | ||
| mlogger | Client | mlogger | tigress@midtig06 | mlogger | ||
| fetigcol | Client | FeTigCol | /home/tigress/daq/frontend | lxdaq04 | tigress@lxdaq17 | ./fetigcol -h midtig06 -e tigress |
| analyzer | Client | Analyzer | /home/tigress/daq/shk_analyser | dixie | tigress@midtig06 | ./analyzer |
| fe_epics | Client | Epics | /home/tigress/tigcol2/epics | midtig06 | tigress@midtig06 | ./fe_epics -h midtig06 -e tigress |
| femcs | Client | Femcs | /home/tigress/tigcol2/femcs | laddvme02 | tigress@laddvme02 | ./femcs -h midtig06 -e tigress |
| roody | Aux. | tigress@midtig01 | roody[10] | |||
| Striptool | Aux. | ssh -X tigsebt3a@isacepics1 |
Notes:
- ↑ Only clients have names -- empty boxes correspond to programs that are not MIDAS clients
- ↑ 2.0 2.1 2.2 2.3 The production (i.e. working) version of any user-written software is normally in this working directory, and should be compiled while logged into the machine listed. Empty entries are not user-written, do not need to be compiled, and can be started in any directory.
- ↑ As of the 11Be run of 2011, the analyzer has been broken into four parts with different executable names: analyzer-w for waveforms, analyzer for hit patterns & raw charge, analyzer-a for analyzed spectra e.g. gain-corrected energies times and such. Replace 'analyzer' with 'analyzer-w' or 'analyzer-a' as needed. You can run these on any of our 64-bit machines -- in fact, that is encouraged. The final parameter specifies which port to use for the roody connection below. You need to use a unique port number for each running analyzer -- I recommend 9090 for analyzer-w, 9091 for analyzer, and 9092 for analyzer-a.
- ↑ The numbers correspond to the collector cards. 1 through 6 are Ge, 7 and 8 are Silicon, and 9 can be used for RF. To enable silicon only, use './tigenable 7 8'
- ↑ Make sure you log in as the correct user at the correct machine, and then cd to the correct path. The Isac-wide Epics system will only talk to specific accounts on specific machines. For this client it is common that the working directory is not the user account home directory.
- ↑ The working directory is normally set to the data directory where data is being logged and histograms are being saved.
- ↑ This example works with the analyzer example given above, which itself gives the "misc" and "charge" sets of spectra. Change the host (midtig06) and port (9090) to match how you launched the analyzer.See the roody page for more information.
- ↑ Only clients have names -- empty boxes correspond to programs that are not MIDAS clients
- ↑ The working directory is normally set to the data directory where data is being logged and histograms are being saved.
- ↑ After starting roody, click Files → Open Online, and give midtig02 as the connection. See the roody page for more information.

