Project

General

Profile

NetDRMS User Guide » History » Version 9

Pablo Alingery, 01/02/2017 10:59

1 1 Herve Ballans
{{toc}}
2 1 Herve Ballans
3 1 Herve Ballans
h1. NetDRMS User Guide
4 1 Herve Ballans
5 1 Herve Ballans
h2. NetDRMS Start script
6 1 Herve Ballans
7 1 Herve Ballans
<pre>
8 5 Herve Ballans
$ sum_start.NetDRMS
9 1 Herve Ballans
</pre>
10 2 Herve Ballans
11 9 Pablo Alingery
A faire demander pour le fichier de config sum_rm.cfg
12 9 Pablo Alingery
<pre>
13 9 Pablo Alingery
production@sdo3:/usr/local/netdrms_current/base/drms/replication/etc$ netdrms 
14 9 Pablo Alingery
production@sdo3:/usr/local/netdrms_current$ sum_start.NetDRMS 
15 9 Pablo Alingery
Number of SUM process sets to spawn = 1
16 9 Pablo Alingery
Max number of SUM process can spawn = 8
17 9 Pablo Alingery
SUMSERVER is sdo3
18 9 Pablo Alingery
SUMS_MANAGER is production
19 9 Pablo Alingery
SUMS db is ias_sdo_sums
20 9 Pablo Alingery
SUMS log dir is /usr/local/netdrms_current/logs/SUM
21 9 Pablo Alingery
sum_start.NetDRMS at 2017.02.01_10:56:05
22 9 Pablo Alingery
23 9 Pablo Alingery
** Now starting SUMS on ias_sdo_sums
24 9 Pablo Alingery
SUM NetDRMS Start Complete
25 9 Pablo Alingery
production@sdo3:/usr/local/netdrms_current$ Running on SUMS-server host sdo3.
26 9 Pablo Alingery
Connection to SUMS DB ias_sdo_sums.
27 9 Pablo Alingery
Using SUMS-log file sum_svc_2017.02.01.105605.log.
28 9 Pablo Alingery
Using SUMS-rm-log file 2017.02.01.105605.log.
29 9 Pablo Alingery
Process sum_svc is not running.
30 9 Pablo Alingery
Starting process sum_svc.
31 9 Pablo Alingery
32 9 Pablo Alingery
Please wait for sum_svc and tape inventory (optional) to initialize...
33 9 Pablo Alingery
Can't open config file /usr/local/netdrms_current/logs/SUM/sum_rm.cfg. Using defaults...
34 9 Pablo Alingery
</pre>
35 9 Pablo Alingery
36 9 Pablo Alingery
37 9 Pablo Alingery
38 3 Herve Ballans
h2. Test show_info
39 2 Herve Ballans
40 2 Herve Ballans
<pre>
41 2 Herve Ballans
production@sdo3:~$ show_info -s hmi.sharp_720s_nrt
42 2 Herve Ballans
First Record: hmi.sharp_720s_nrt[476][2012.09.14_02:12:00_TAI], Recnum = 829707
43 2 Herve Ballans
Last Record:  hmi.sharp_720s_nrt[4943][2016.03.22_18:24:00_TAI], Recnum = 2015202
44 2 Herve Ballans
Last Recnum:  2015202
45 2 Herve Ballans
Has shadow table: no
46 2 Herve Ballans
</pre>
47 2 Herve Ballans
48 3 Herve Ballans
h2. Lancement de jetty
49 2 Herve Ballans
50 1 Herve Ballans
<pre>
51 1 Herve Ballans
$ jetty.sh start
52 3 Herve Ballans
</pre>
53 3 Herve Ballans
54 6 Herve Ballans
h2. Delete series
55 6 Herve Ballans
56 7 Herve Ballans
<pre>
57 7 Herve Ballans
delete_series -k hmi.sharp_720s_nrt JSOC_DBUSER=slony
58 7 Herve Ballans
</pre>
59 7 Herve Ballans
60 7 Herve Ballans
-k n 'efface pas les données 
61 6 Herve Ballans
62 3 Herve Ballans
h2. Subscribe series
63 3 Herve Ballans
64 8 Herve Ballans
Old way (before 8.10)
65 8 Herve Ballans
66 3 Herve Ballans
<pre>
67 4 Herve Ballans
$ cd /usr/local/netdrms_current/base/drms/replication/subscribe_series
68 4 Herve Ballans
$ ./subscribe_series ../etc/ias.repclient.cfg ../etc/ias.subscribe_list.cfg ~/.ssh-agent_rs -r
69 8 Herve Ballans
</pre>
70 8 Herve Ballans
71 8 Herve Ballans
New way :
72 8 Herve Ballans
<pre>
73 8 Herve Ballans
$ python3 base/drms/replication/subscribe_series/subscribe.py cfg=base/drms/replication/etc/ias.repclient.cfg reqtype=subscribe series=hmi.ic_nolimbdark_720s --loglevel=debug
74 2 Herve Ballans
</pre>