|  | 70 | === Subscription at your site === | 
                          |  | 71 |  | 
                          |  | 72 | At your site will be a file named {{{ subscribe_series }}} - it will be in the same directory as the {{{ get_slony_logs.pl }}} script (at NSO it is in /datarea/production/subscribe_series). | 
                          |  | 73 |  | 
                          |  | 74 | To subscribe to a series you need to edit the config file - etc/subscribe_list.cfg at NSO - and then run it like so : | 
                          |  | 75 |  | 
                          |  | 76 | {{{ | 
                          |  | 77 | ./subscribe_series ./etc/repclient.live.cfg ./etc/subscribe_list.cfg ~/.ssh-agent_rs.sh | 
                          |  | 78 | }}} | 
                          |  | 79 |  | 
                          |  | 80 | The format of etc/subscribe_list.cfg is : | 
                          |  | 81 |  | 
                          |  | 82 | {{{ | 
                          |  | 83 | hmi.rdvflows_fd30_frame subscribe | 
                          |  | 84 | hmi.rdvflows_fd15_frame subscribe | 
                          |  | 85 | hmi.fsvbinned_nrt subscribe | 
                          |  | 86 | hmi.rdVfitsc_fd05 subscribe | 
                          |  | 87 | hmi.rdVfitsc_fd15 subscribe | 
                          |  | 88 | hmi.rdVfitsc_fd30 subscribe | 
                          |  | 89 | hmi.rdVfitsf_fd05 subscribe | 
                          |  | 90 | hmi.rdVfitsf_fd15 subscribe | 
                          |  | 91 | hmi.rdVfitsf_fd30 subscribe | 
                          |  | 92 | }}} | 
                          |  | 93 |  | 
                          |  | 94 | And at NSO the complete listing of ./etc/repclient.live.cfg is : | 
                          |  | 95 |  | 
                          |  | 96 | {{{ | 
                          |  | 97 | # This template file contains configurable parameters used by replication client code. The client | 
                          |  | 98 | # code includes subscribe_series, run_get_slony_logs.sh, and get_slony_logs.pl. | 
                          |  | 99 | # | 
                          |  | 100 | # Each NetDRMS site using the replication code should copy this file to a writeable location | 
                          |  | 101 | # and edit it as appropriate. Each of the client-side replication scripts sources this configuration | 
                          |  | 102 | # file to set environment variables needed by that script. | 
                          |  | 103 |  | 
                          |  | 104 | ####################################################### | 
                          |  | 105 | # client-side-wide configurable parameters | 
                          |  | 106 | ####################################################### | 
                          |  | 107 |  | 
                          |  | 108 | node=nso2 | 
                          |  | 109 |  | 
                          |  | 110 | # Client-server communication | 
                          |  | 111 | kRSServer=solarport.stanford.edu | 
                          |  | 112 | kRSTriggerDir=/data/pgsql/slon_logs/live/triggers | 
                          |  | 113 | kRSUser=jsocexp | 
                          |  | 114 | kRSPort=55000 | 
                          |  | 115 | ingestion_path=/home/production/subscribe_series/trigger | 
                          |  | 116 |  | 
                          |  | 117 | # Client database information | 
                          |  | 118 | pg_host=vso2.tuc.noao.edu | 
                          |  | 119 | pg_port=5432 | 
                          |  | 120 | pg_user=slony | 
                          |  | 121 | pg_dbname=nso_drms | 
                          |  | 122 | slony_cluster=jsoc | 
                          |  | 123 |  | 
                          |  | 124 |  | 
                          |  | 125 | ####################################################### | 
                          |  | 126 | # subscribe_series configurable parameters | 
                          |  | 127 | ####################################################### | 
                          |  | 128 |  | 
                          |  | 129 | # file paths | 
                          |  | 130 | kLocalLogDir=/home/production/subscribe_series/log | 
                          |  | 131 | kLocalWorkingDir=/home/production/subscribe_series/work | 
                          |  | 132 | kSQLIngestionProgram=/home/production/subscribe_series/bin/get_slony_logs.pl | 
                          |  | 133 | kDeleteSeriesProgram=/opt/drms/bin/linux_x86_64/delete_series | 
                          |  | 134 |  | 
                          |  | 135 | attempts=2000 | 
                          |  | 136 |  | 
                          |  | 137 | # XXX This is not correct - archive, retention, and tapegroup should be per-series, not global. | 
                          |  | 138 | archive=0 | 
                          |  | 139 | retention=21 | 
                          |  | 140 | tapegroup=1 | 
                          |  | 141 |  | 
                          |  | 142 |  | 
                          |  | 143 | ####################################################### | 
                          |  | 144 | # get_slony_logs.pl configurable parameters | 
                          |  | 145 | ####################################################### | 
                          |  | 146 |  | 
                          |  | 147 | scp_cmd=/usr/bin/scp | 
                          |  | 148 | ssh_cmd=/usr/bin/ssh | 
                          |  | 149 | rmt_slony_dir=/data/pgsql/slon_logs/live/site_logs | 
                          |  | 150 | slony_logs=/home/production/subscribe_series/slon_logs | 
                          |  | 151 | PSQL=/export/vso2.0/usr/bin/psql | 
                          |  | 152 | email_list=igor@noao.edu | 
                          |  | 153 |  | 
                          |  | 154 | }}} | 
                          |  | 155 |  |