
\section{DIM Servers}

DIM Servers are monitored in the last line of smmon. If one of the
services is red, it should be restarted according to the instructions
in this chapter.

\subsection{DIM DNS}

The DIM name server is not monitored. To (re-)start, run as root on
trd01:

\begin{verbatim}
  /etc/init.d/dim-dns restart
\end{verbatim}


\subsection{InterCom Layer (ICL)}

The ICL should run in its own screen with the name \emph{icl}:

\begin{verbatim}
  ssh trd01
  screen -d -r icl
\end{verbatim}

If the session does not exist, create it and become root inside it:

\begin{verbatim}
  ssh trd01
  screen -S icl
  su -
\end{verbatim}

Once you are inside the screen and root, start the ICL:

\begin{verbatim}
  interComLayer
\end{verbatim}

You can leave the screen with Ctrl-a d.





\subsection{FedMsg Daemon (FEDMSG)}

\begin{verbatim}
  /etc/init.d/fedmsgd restart
\end{verbatim}





\subsection{DIM Archival Daemon (DIMARCH)}

The ICL should run in its own screen with the name \emph{dimarch}:

\begin{verbatim}
  ssh trd01
  screen -d -r dimarch
\end{verbatim}

If the session does not exist, create it:

\begin{verbatim}
  ssh trd01
  screen -S dimarch
\end{verbatim}

Once you are inside the screen, change to Tom's private directory and
start the dimarchd:

\begin{verbatim}
  cd /home/trd/dietel/dimarch/
  while true; do src/dimarchd; done
\end{verbatim}

The while loop ensures that the daemon is restarted in case of crashes
(which happen too often to neglect them and too rarely to debug them).

You can leave the screen with Ctrl-a d.


\subsection{Wiener PSU Monitoring (WIENER)}


\begin{verbatim}
  ssh trd01
  cd /home/trd/dietel/pvss_mockup
  wiener2dim/wiener2dim
\end{verbatim}



\subsection{Orbisphere (ORB510)}


\begin{verbatim}
  ssh daq00
  cd /home/trd/dietel/pvss_mockup
  ./orb510-dimsrv &
\end{verbatim}



\subsection{ADC Server (CHARLY)}

This server monitors values read out by the DCS board for monitoring
various slow control parameters.


\begin{verbatim}
  ssh charly
  adcserver_start 
\end{verbatim}


