NetDRMS User Guide » History » Version 10
Version 9 (Pablo Alingery, 01/02/2017 10:59) → Version 10/11 (Pablo Alingery, 01/02/2017 11:25)
{{toc}}
h1. NetDRMS User Guide
h2. NetDRMS Start script
<pre>
$ sum_start.NetDRMS
</pre>
%{color:red}A A faire demander pour le fichier de config sum_rm.cfg Art%
<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. Test show-series
<pre>
show_series
</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>
%{color:red}A faire : envoyer suivant pour nettoyage Art%
<pre>
production@sdo3:/usr/local/netdrms_current$ show_series
drms.sites
hmi.bharp_720s_nrt
hmi.mharp_720s_nrt
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
Checking for existing request at server.
You are already subscribed to hmi.sharp_720s_nrt. Please select a different series.
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
Checking for existing request at server.
hmi.sharp_720s_nrt does not exist locally. Please select a different series to which you would like to re-subscribe.
production@sdo3:/usr/local/netdrms_current$
</pre>
h1. NetDRMS User Guide
h2. NetDRMS Start script
<pre>
$ sum_start.NetDRMS
</pre>
%{color:red}A A faire demander pour le fichier de config sum_rm.cfg Art%
<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. Test show-series
<pre>
show_series
</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>
%{color:red}A faire : envoyer suivant pour nettoyage Art%
<pre>
production@sdo3:/usr/local/netdrms_current$ show_series
drms.sites
hmi.bharp_720s_nrt
hmi.mharp_720s_nrt
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
Checking for existing request at server.
You are already subscribed to hmi.sharp_720s_nrt. Please select a different series.
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
Checking for existing request at server.
hmi.sharp_720s_nrt does not exist locally. Please select a different series to which you would like to re-subscribe.
production@sdo3:/usr/local/netdrms_current$
</pre>