In an engineering run, the actual dmt triggers are sent via a ligotools program SeqInsert via an http like process. This test exercises the method to make sure ldas is compatible with actual dmt process; the test objectives are the same as simulated DMT:
The LDAS APIs affected by this test are:
Choose a directory to install the tests scripts.
directory of dmt files - download
sample dmt files
into a directory and untar and unzip the files
SeqInsert - from ligotoolsinsertTrigs - main driver scripttar xvzf dmt-test.tar.gz
Remove the tar ball (.gz file) from the directory since only xml files can be used.
Note: The above files should be installed on your local platform which should also have ligotools installed already.
To setup the environment for ligotools, login on a sun workstation and
enter : eval `/ligoapps/ligotools/bin/use_ligotools`
Now cd to the scripts directory and run your test from this workstation..
db2 'connect to my_db' db2 -tf /ldas/doc/db2/doc/text/delall.sql cd <scripts directory> tclsh insertTrigs cit ldas_tst ../triggers2 >& cit.log &Usage:
tclsh insertTrigs [options] >& insertTrigs.log &
| Option | Description |
|---|---|
<site>
| ldas site [ dev | test | lho | llo | mit ] or <mycomputer>:10001 |
<dsname>
| database name at a site e.g. cit_test |
<dmt triggers directory>
| directory holding dmt triggers xml files e.g. /home/john/triggers2 |
All output from script SeqInsert is captured to stdout which can be redirected to a file at startup e.g. cit.log.
A putMetaData user command is generated for each of the dmt files and sent to the managerAPI. The insertions can be monitored via cmonClient for the number of jobs and the database insertions for the specified database.
When all the xmls are sent to LDAS, the logs can be extracted via cmonClient Log page; enter the gpstime ranges recorded in insertTrigs.log for logs in managerAPI, ligolwAPI and metadataAPI. Validate the following is true for successful insertions:
grep -c submit < insertTrigs log file >
use guild query
select count(*) from gds_trigger where process_id in
(select process_id from process where program
in ('glitchMon', 'PSLmon'))
to confirm this is the case.
Other records inserted include process and segments. Also confirm this number in the database is the same as in xml files.
If there is a discrepancy search the logs for red balls to account for missing records.
Also examine the ldas database web page for the number of processes, segments and gds_triggers inserted to make sure they match the expected number.
If all the process and trigger data are inserted, the test passes. If not, the test fails and the errors in the logs should account for all data received at LDAS.