NetDRMS User Guide » History » Version 9
Version 8 (Herve Ballans, 08/09/2016 11:56) → Version 9/11 (Pablo Alingery, 01/02/2017 10:59)
{{toc}}
h1. NetDRMS User Guide
h2. NetDRMS Start script
<pre>
$ sum_start.NetDRMS
</pre>
A faire demander pour le fichier de config sum_rm.cfg
<pre>
production@sdo3:/usr/local/netdrms_current/base/drms/replication/etc$ netdrms
production@sdo3:/usr/local/netdrms_current$ sum_start.NetDRMS
Number of SUM process sets to spawn = 1
Max number of SUM process can spawn = 8
SUMSERVER is sdo3
SUMS_MANAGER is production
SUMS db is ias_sdo_sums
SUMS log dir is /usr/local/netdrms_current/logs/SUM
sum_start.NetDRMS at 2017.02.01_10:56:05
** Now starting SUMS on ias_sdo_sums
SUM NetDRMS Start Complete
production@sdo3:/usr/local/netdrms_current$ Running on SUMS-server host sdo3.
Connection to SUMS DB ias_sdo_sums.
Using SUMS-log file sum_svc_2017.02.01.105605.log.
Using SUMS-rm-log file 2017.02.01.105605.log.
Process sum_svc is not running.
Starting process sum_svc.
Please wait for sum_svc and tape inventory (optional) to initialize...
Can't open config file /usr/local/netdrms_current/logs/SUM/sum_rm.cfg. Using defaults...
</pre>
h2. Test show_info
<pre>
production@sdo3:~$ show_info -s hmi.sharp_720s_nrt
First Record: hmi.sharp_720s_nrt[476][2012.09.14_02:12:00_TAI], Recnum = 829707
Last Record: hmi.sharp_720s_nrt[4943][2016.03.22_18:24:00_TAI], Recnum = 2015202
Last Recnum: 2015202
Has shadow table: no
</pre>
h2. Lancement de jetty
<pre>
$ jetty.sh start
</pre>
h2. Delete series
<pre>
delete_series -k hmi.sharp_720s_nrt JSOC_DBUSER=slony
</pre>
-k n 'efface pas les données
h2. Subscribe series
Old way (before 8.10)
<pre>
$ cd /usr/local/netdrms_current/base/drms/replication/subscribe_series
$ ./subscribe_series ../etc/ias.repclient.cfg ../etc/ias.subscribe_list.cfg ~/.ssh-agent_rs -r
</pre>
New way :
<pre>
$ 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
</pre>
h1. NetDRMS User Guide
h2. NetDRMS Start script
<pre>
$ sum_start.NetDRMS
</pre>
A faire demander pour le fichier de config sum_rm.cfg
<pre>
production@sdo3:/usr/local/netdrms_current/base/drms/replication/etc$ netdrms
production@sdo3:/usr/local/netdrms_current$ sum_start.NetDRMS
Number of SUM process sets to spawn = 1
Max number of SUM process can spawn = 8
SUMSERVER is sdo3
SUMS_MANAGER is production
SUMS db is ias_sdo_sums
SUMS log dir is /usr/local/netdrms_current/logs/SUM
sum_start.NetDRMS at 2017.02.01_10:56:05
** Now starting SUMS on ias_sdo_sums
SUM NetDRMS Start Complete
production@sdo3:/usr/local/netdrms_current$ Running on SUMS-server host sdo3.
Connection to SUMS DB ias_sdo_sums.
Using SUMS-log file sum_svc_2017.02.01.105605.log.
Using SUMS-rm-log file 2017.02.01.105605.log.
Process sum_svc is not running.
Starting process sum_svc.
Please wait for sum_svc and tape inventory (optional) to initialize...
Can't open config file /usr/local/netdrms_current/logs/SUM/sum_rm.cfg. Using defaults...
</pre>
h2. Test show_info
<pre>
production@sdo3:~$ show_info -s hmi.sharp_720s_nrt
First Record: hmi.sharp_720s_nrt[476][2012.09.14_02:12:00_TAI], Recnum = 829707
Last Record: hmi.sharp_720s_nrt[4943][2016.03.22_18:24:00_TAI], Recnum = 2015202
Last Recnum: 2015202
Has shadow table: no
</pre>
h2. Lancement de jetty
<pre>
$ jetty.sh start
</pre>
h2. Delete series
<pre>
delete_series -k hmi.sharp_720s_nrt JSOC_DBUSER=slony
</pre>
-k n 'efface pas les données
h2. Subscribe series
Old way (before 8.10)
<pre>
$ cd /usr/local/netdrms_current/base/drms/replication/subscribe_series
$ ./subscribe_series ../etc/ias.repclient.cfg ../etc/ias.subscribe_list.cfg ~/.ssh-agent_rs -r
</pre>
New way :
<pre>
$ 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
</pre>