Project

General

Profile

NetDRMS User Guide » History » Version 11

Pablo Alingery, 15/03/2017 15:39

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 10 Pablo Alingery
%{color:red}A faire demander pour le fichier de config sum_rm.cfg Art%
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 1 Herve Ballans
48 10 Pablo Alingery
h2. Test show-series
49 10 Pablo Alingery
50 10 Pablo Alingery
<pre>
51 10 Pablo Alingery
show_series
52 10 Pablo Alingery
</pre>
53 10 Pablo Alingery
54 11 Pablo Alingery
h2. Lancement du JMD
55 2 Herve Ballans
56 1 Herve Ballans
<pre>
57 11 Pablo Alingery
$ JMD.sh start
58 3 Herve Ballans
</pre>
59 3 Herve Ballans
60 6 Herve Ballans
h2. Delete series
61 6 Herve Ballans
62 7 Herve Ballans
<pre>
63 7 Herve Ballans
delete_series -k hmi.sharp_720s_nrt JSOC_DBUSER=slony
64 7 Herve Ballans
</pre>
65 7 Herve Ballans
66 7 Herve Ballans
-k n 'efface pas les données 
67 6 Herve Ballans
68 3 Herve Ballans
h2. Subscribe series
69 3 Herve Ballans
70 8 Herve Ballans
Old way (before 8.10)
71 8 Herve Ballans
72 3 Herve Ballans
<pre>
73 4 Herve Ballans
$ cd /usr/local/netdrms_current/base/drms/replication/subscribe_series
74 4 Herve Ballans
$ ./subscribe_series ../etc/ias.repclient.cfg ../etc/ias.subscribe_list.cfg ~/.ssh-agent_rs -r
75 8 Herve Ballans
</pre>
76 8 Herve Ballans
77 8 Herve Ballans
New way :
78 8 Herve Ballans
<pre>
79 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
80 1 Herve Ballans
</pre>
81 10 Pablo Alingery
82 10 Pablo Alingery
83 10 Pablo Alingery
%{color:red}A faire : envoyer suivant pour nettoyage Art%
84 10 Pablo Alingery
<pre>
85 10 Pablo Alingery
production@sdo3:/usr/local/netdrms_current$ show_series
86 10 Pablo Alingery
  drms.sites
87 10 Pablo Alingery
  hmi.bharp_720s_nrt
88 10 Pablo Alingery
  hmi.mharp_720s_nrt
89 10 Pablo Alingery
90 10 Pablo Alingery
production@sdo3:/usr/local/netdrms_current$ python3 base/drms/replication/subscribe_series/subscribe.py cfg=base/drms/replication/etc/ias.repclient.cfg reqtype=subscribe series=hmi.sharp_720s_nrt --loglevel=debug 
91 10 Pablo Alingery
Checking for existing request at server.
92 10 Pablo Alingery
You are already subscribed to hmi.sharp_720s_nrt. Please select a different series.
93 10 Pablo Alingery
production@sdo3:/usr/local/netdrms_current$ python3 base/drms/replication/subscribe_series/subscribe.py cfg=base/drms/replication/etc/ias.repclient.cfg reqtype=unsubscribe series=hmi.sharp_720s_nrt --loglevel=debug 
94 10 Pablo Alingery
Checking for existing request at server.
95 10 Pablo Alingery
hmi.sharp_720s_nrt does not exist locally. Please select a different series to which you would like to re-subscribe.
96 10 Pablo Alingery
production@sdo3:/usr/local/netdrms_current$ 
97 10 Pablo Alingery
 </pre>