WIB Monitoring

WIB HTML Monitoring

From a web browser on a np04-srv-0XX machine (see below for how to use VNC to get there), go here to see the WIB HTML Monitoring

To start the server:

ssh np04daq@np04-srv-012
cd /nfs/sw/wib/WIB_HTML
nohup ./run.sh >& /dev/null &

To kill the server, run ps -fA | grep wib to find the process that says something like python wib_html.py and kill that one.

WIB DIM Monitoring

The WIB DIM server polls all of the WIBs and creates metrics for each register with the appropriate tag in the WIB address table.

Running the Producton WIB DIM Server

The following command starts a new instance of the DIM server:

ssh np04daq@np04-srv-012
cd /nfs/sw/wib/WIB_DIM
nohup ./run.sh >& /dev/null &

To stop all WIB DIM servers, run killall -s SIGINT WIB_DIM.exe

Debugging the WIB DIM

You can start a second DIM server with these commands:

ssh np04daq@np04-srv-012
cd /nfs/sw/wib/WIB_DIM
./run_debug.sh

Looking at DIM metrics

From CERN

One can look at DIM info by logging into np04daq@np04-srv-010 and execting

export DIM_DNS_NODE=np04-srv-010
did

Remotely (away from CERN)

You can then look at the metrics that are being reported by:

ssh np04-srv-012
vncserver

A line like:

New 'np04-srv-013:1 (hennessy)' desktop is np04-srv-013:1

will be displayed. Take note of the last number after the colon, that is your VNC session number. When you are done, you can kill the VNC server with:

vncserver -kill :1

where you should replace the 1 with your session number.

In a new terminal on your local computer run:

ssh -N -C -f -L 5901:np04-srv-012:5901 <your username>@lxplus.cern.ch

Where you replace 5901 with 5900+your session number.

Then use your favorite VNC client (I have good success with TigerVNC) to localhost: e.g. localhost:5901

From the terminal in the VNC session, run:

export DIM_DNS_NODE=np04-srv-010
did

and then click on View -> All Servers

You should see WIBS_DCS in there.

Configuring the VNC Remote Desktop

Before starting the vncserver, you can configure the session to load the simple openbox desktop. Just make ~/.vnc/xstartup look like this:

#!/bin/bash

unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
exec openbox-session

In openbox, just right click on the desktop to display a menu with applications like terminal, web browser, etc.

Adding Registers to DIM Monitoring

Marking a WIB address table entry for DIM monitoring

WIB DIM Metric Naming Scheme

You shouldn't have to recompile anything after changing these tables, just restart the WIB DIM server

-- JustinHugon1 - 2018-05-02

Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r8 - 2018-08-16 - JustinHugon1
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CENF All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback