diff --git a/CDB/README.md b/CDB/README.md new file mode 100644 index 0000000000000000000000000000000000000000..52a0b14ada80973a6b1dfc28eb217f832a384119 --- /dev/null +++ b/CDB/README.md @@ -0,0 +1,22 @@ +## Tango Configuration Database files + +The ConfigDb.json files in this directory are used to populate the Tango configuration Database for various scenarios. +To load a configuration file, use + +```bash +../sbin/update_ConfigDb.sh file.json +``` + +The following files are provided: + +| File | Description | Usage | +|--------------------------------------------|-------------------------------------------------------------|---------------------| +| `LOFAR_ConfigDb.json` | Generic base configuration, registering all of the devices. | Always | +| `tango-archiver-data/archiver-devices.json`| Archiver configuration for TimescaleDB | Always | +| `test_environment_ConfigDb.json` | Base delta for the unit- and integration test suites. | Tests & development | +| `stations/simulators_ConfigDb.json` | A "station" configuration that points to our simulators. | Tests & development | +| `stations/dummy_positions_ConfigDb.json` | An antenna configuration, just to have one (it's CS001). | Tests & development | +| `stations/LTS_ConfigDb.json` | The configuration for the Lab Test Station. | Load on LTS | +| `stations/DTS_ConfigDb.json` | The configuration for the Dwingeloo Test Station. | Load on DTS-lab | +| `stations/DTS_Outside_ConfigDb.json` | The configuration for the Dwingeloo Test Station Outside. | Load on DTS-outside | +| `integrations/` | Configurations required by the integration test suites. | Integration tests | diff --git a/CDB/default_ConfigDb.json b/CDB/default_ConfigDb.json deleted file mode 100644 index d5ace77f1b80d9999bb4fee7f868afc58797dbf8..0000000000000000000000000000000000000000 --- a/CDB/default_ConfigDb.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "servers": { - "DataBaseds": { - "2": { - "DataBase": { - "sys/database/2": {} - } - } - }, - "TangoAccessControl": { - "1": { - "TangoAccessControl": { - "sys/access_control/1": {} - } - } - }, - "TangoRestServer": { - "rest": { - "TangoRestServer": { - "sys/rest/0": {} - } - } - }, - "TangoTest": { - "test": { - "TangoTest": { - "sys/tg_test/1": {} - } - } - }, - "hdbppcm-srv": { - "01": { - "HdbConfigurationManager": { - "archiving/hdbppts/confmanager01": { - "properties": { - "ArchiverList": [ - "archiving/hdbppts/eventsubscriber01" - ], - "LibConfiguration": [ - "connect_string= user=postgres password=password host=archiver-timescale port=5432 dbname=hdb", - "host=archiver-timescale", - "libname=libhdb++timescale.so", - "dbname=hdb", - "port=5432", - "user=postgres", - "password=password" - ], - "MaxSearchSize": [ - "1000" - ] - } - } - } - } - }, - "hdbppes-srv": { - "01": { - "HdbEventSubscriber": { - "archiving/hdbppts/eventsubscriber01": { - "properties": { - "CheckPeriodicTimeoutDelay": [ - "5" - ], - "LibConfiguration": [ - "connect_string= user=postgres password=password host=archiver-timescale port=5432 dbname=hdb", - "host=archiver-timescale", - "libname=libhdb++timescale.so", - "dbname=hdb", - "port=5432", - "user=postgres", - "password=password" - ], - "PollingThreadPeriod": [ - "3" - ] - } - } - } - } - } - } -} diff --git a/CDB/jasper_ConfigDb.json b/CDB/jasper_ConfigDb.json deleted file mode 100644 index a156f34ce1e642da3637622439e1cc8f90b7bb4e..0000000000000000000000000000000000000000 --- a/CDB/jasper_ConfigDb.json +++ /dev/null @@ -1,816 +0,0 @@ -{ - "servers": { - "Femto": { - "CS999": { - "Femto": { - "opc-ua/test-femto/1": {} - } - } - }, - "observation_control": { - "STAT": { - "ObservationControl": { - "STAT/ObservationControl/1": {} - } - } - }, - "RECV": { - "STAT": { - "RECV": { - "STAT/RECV/1": { - "attribute_properties": { - "Ant_mask_RW": { - "archive_period": [ - "600000" - ] - }, - "CLK_Enable_PWR_R": { - "archive_period": [ - "600000" - ] - }, - "CLK_I2C_STATUS_R": { - "archive_period": [ - "600000" - ], - "archive_rel_change": [ - "-1", - "1" - ], - "rel_change": [ - "-1", - "1" - ] - }, - "CLK_PLL_error_R": { - "archive_period": [ - "600000" - ] - }, - "CLK_PLL_locked_R": { - "archive_period": [ - "600000" - ] - }, - "CLK_monitor_rate_RW": { - "archive_period": [ - "600000" - ], - "archive_rel_change": [ - "-1", - "1" - ], - "rel_change": [ - "-1", - "1" - ] - }, - "CLK_translator_busy_R": { - "archive_period": [ - "600000" - ] - }, - "HBA_element_LNA_pwr_R": { - "archive_period": [ - "600000" - ], - "archive_rel_change": [ - "-1", - "1" - ], - "rel_change": [ - "-1", - "1" - ] - }, - "HBA_element_LNA_pwr_RW": { - "archive_period": [ - "600000" - ], - "archive_rel_change": [ - "-1", - "1" - ], - "rel_change": [ - "-1", - "1" - ] - }, - "HBA_element_beamformer_delays_R": { - "archive_period": [ - "600000" - ], - "archive_rel_change": [ - "-1", - "1" - ], - "rel_change": [ - "-1", - "1" - ] - }, - "HBA_element_beamformer_delays_RW": { - "archive_period": [ - "600000" - ], - "archive_rel_change": [ - "-1", - "1" - ], - "rel_change": [ - "-1", - "1" - ] - }, - "HBA_element_led_R": { - "archive_period": [ - "600000" - ], - "archive_rel_change": [ - "-1", - "1" - ], - "rel_change": [ - "-1", - "1" - ] - }, - "HBA_element_led_RW": { - "archive_period": [ - "600000" - ], - "archive_rel_change": [ - "-1", - "1" - ], - "rel_change": [ - "-1", - "1" - ] - }, - "HBA_element_pwr_R": { - "archive_period": [ - "600000" - ], - "archive_rel_change": [ - "-1", - "1" - ], - "rel_change": [ - "-1", - "1" - ] - }, - "HBA_element_pwr_RW": { - "archive_period": [ - "600000" - ], - "archive_rel_change": [ - "-1", - "1" - ], - "rel_change": [ - "-1", - "1" - ] - }, - "RCU_ADC_lock_R": { - "archive_period": [ - "600000" - ], - "archive_rel_change": [ - "-1", - "1" - ], - "rel_change": [ - "-1", - "1" - ] - }, - "RCU_I2C_STATUS_R": { - "archive_period": [ - "600000" - ], - "archive_rel_change": [ - "-1", - "1" - ], - "rel_change": [ - "-1", - "1" - ] - }, - "RCU_ID_R": { - "archive_period": [ - "600000" - ], - "archive_rel_change": [ - "-1", - "1" - ], - "rel_change": [ - "-1", - "1" - ] - }, - "RCU_LED0_R": { - "archive_period": [ - "600000" - ] - }, - "RCU_LED0_RW": { - "archive_period": [ - "600000" - ] - }, - "RCU_LED1_R": { - "archive_period": [ - "600000" - ] - }, - "RCU_LED1_RW": { - "archive_period": [ - "600000" - ] - }, - "RCU_Pwr_dig_R": { - "archive_period": [ - "600000" - ] - }, - "RCU_attenuator_R": { - "archive_period": [ - "600000" - ], - "archive_rel_change": [ - "-1", - "1" - ], - "rel_change": [ - "-1", - "1" - ] - }, - "RCU_attenuator_RW": { - "archive_period": [ - "600000" - ], - "archive_rel_change": [ - "-1", - "1" - ], - "rel_change": [ - "-1", - "1" - ] - }, - "RCU_band_R": { - "archive_period": [ - "600000" - ], - "archive_rel_change": [ - "-1", - "1" - ], - "rel_change": [ - "-1", - "1" - ] - }, - "RCU_band_RW": { - "archive_period": [ - "600000" - ], - "archive_rel_change": [ - "-1", - "1" - ], - "rel_change": [ - "-1", - "1" - ] - }, - "RCU_mask_RW": { - "archive_period": [ - "600000" - ] - }, - "RCU_monitor_rate_RW": { - "archive_period": [ - "600000" - ], - "archive_rel_change": [ - "-1.0", - "1.0" - ], - "rel_change": [ - "-1.0", - "1.0" - ] - }, - "RCU_temperature_R": { - "archive_period": [ - "600000" - ], - "archive_rel_change": [ - "-1.0", - "1.0" - ], - "rel_change": [ - "-1.0", - "1.0" - ] - }, - "RCU_translator_busy_R": { - "archive_period": [ - "600000" - ] - }, - "RCU_version_R": { - "archive_period": [ - "600000" - ] - }, - "State": { - "archive_period": [ - "600000" - ], - "event_period": [ - "0" - ] - }, - "Status": { - "archive_period": [ - "600000" - ], - "event_period": [ - "0" - ] - } - }, - "properties": { - "OPC_Server_Name": [ - "ltspi.astron.nl" - ], - "OPC_Server_Port": [ - "4842" - ], - "OPC_Time_Out": [ - "5.0" - ], - "polled_attr": [ - "state", - "1000", - "status", - "1000", - "ant_mask_rw", - "1000", - "rcu_adc_lock_r", - "1000", - "rcu_attenuator_r", - "1000", - "rcu_attenuator_rw", - "1000", - "rcu_band_r", - "1000", - "rcu_band_rw", - "1000", - "rcu_id_r", - "1000", - "rcu_led0_r", - "1000", - "rcu_led0_rw", - "1000", - "rcu_mask_rw", - "1000", - "rcu_monitor_rate_rw", - "1000", - "rcu_pwr_dig_r", - "1000", - "rcu_temperature_r", - "1000", - "rcu_version_r", - "1000", - "hba_element_beamformer_delays_r", - "1000", - "hba_element_beamformer_delays_rw", - "1000", - "hba_element_led_r", - "1000", - "hba_element_led_rw", - "1000", - "hba_element_pwr_r", - "1000", - "hba_element_pwr_rw", - "1000", - "clk_enable_pwr_r", - "1000", - "clk_i2c_status_r", - "1000", - "clk_monitor_rate_rw", - "1000", - "clk_pll_error_r", - "1000", - "clk_pll_locked_r", - "1000", - "clk_translator_busy_r", - "1000", - "hba_element_lna_pwr_r", - "1000", - "hba_element_lna_pwr_rw", - "1000", - "rcu_i2c_status_r", - "1000", - "rcu_led1_r", - "1000", - "rcu_led1_rw", - "1000", - "rcu_translator_busy_r", - "1000" - ] - } - } - } - } - }, - "random_data": { - "STAT": { - "Random_Data": { - "STAT/random_data/1": { - "properties": { - "polled_attr": [ - "rnd1", - "1000", - "rnd2", - "1000", - "rnd3", - "1000", - "rnd4", - "1000", - "rnd5", - "1000", - "rnd6", - "1000", - "rnd7", - "1000", - "rnd8", - "1000", - "rnd9", - "1000", - "rnd10", - "1000", - "rnd11", - "1000", - "rnd12", - "1000", - "rnd13", - "1000", - "rnd14", - "1000", - "rnd15", - "1000", - "rnd16", - "1000", - "rnd17", - "1000", - "rnd18", - "1000", - "rnd19", - "1000", - "rnd20", - "1000", - "rnd21", - "1000", - "state", - "1000", - "status", - "1000" - ] - } - }, - "STAT/random_data/2": { - "properties": { - "polled_attr": [ - "rnd1", - "100", - "rnd2", - "100", - "rnd3", - "100", - "rnd4", - "100", - "rnd5", - "100", - "rnd6", - "100", - "rnd7", - "100", - "rnd8", - "100", - "rnd9", - "100", - "rnd10", - "100", - "rnd11", - "100", - "rnd12", - "100", - "rnd13", - "100", - "rnd14", - "100", - "rnd15", - "100", - "rnd16", - "100", - "rnd17", - "100", - "rnd18", - "100", - "rnd19", - "100", - "rnd20", - "100" - ] - } - } - } - } - }, - "SDP": { - "STAT": { - "SDP": { - "STAT/SDP/1": { - "attribute_properties": { - "SDP_mask_RW": { - "event_period": [ - "60000" - ] - }, - "State": { - "archive_period": [ - "600000" - ] - }, - "Status": { - "archive_period": [ - "600000" - ] - }, - "fpga_mask_RW": { - "archive_period": [ - "600000" - ] - }, - "fpga_scrap_R": { - "archive_period": [ - "600000" - ], - "archive_rel_change": [ - "-1", - "1" - ], - "rel_change": [ - "-1", - "1" - ] - }, - "fpga_scrap_RW": { - "archive_period": [ - "600000" - ], - "archive_rel_change": [ - "-1", - "1" - ], - "rel_change": [ - "-1", - "1" - ] - }, - "fpga_status_R": { - "archive_period": [ - "600000" - ] - }, - "fpga_temp_R": { - "archive_period": [ - "600000" - ], - "archive_rel_change": [ - "-1", - "1" - ], - "rel_change": [ - "-1", - "1" - ] - }, - "fpga_version_R": { - "archive_period": [ - "600000" - ] - }, - "fpga_weights_R": { - "archive_period": [ - "600000" - ], - "archive_rel_change": [ - "-1", - "1" - ], - "rel_change": [ - "-1", - "1" - ] - }, - "fpga_weights_RW": { - "archive_period": [ - "600000" - ], - "archive_rel_change": [ - "-1", - "1" - ], - "rel_change": [ - "-1", - "1" - ] - }, - "tr_busy_R": { - "archive_period": [ - "600000" - ] - }, - "tr_reload_RW": { - "archive_period": [ - "600000" - ] - }, - "tr_tod_R": { - "archive_period": [ - "600000" - ], - "archive_rel_change": [ - "-1", - "1" - ], - "rel_change": [ - "-1", - "1" - ] - }, - "tr_uptime_R": { - "archive_period": [ - "600000" - ], - "archive_rel_change": [ - "-3600", - "3600" - ], - "rel_change": [ - "-10", - "10" - ] - } - }, - "properties": { - "OPC_Server_Name": [ - "dop36.astron.nl" - ], - "OPC_Server_Port": [ - "4840" - ], - "OPC_Time_Out": [ - "5.0" - ], - "polled_attr": [ - "fpga_temp_r", - "1000", - "state", - "1000", - "status", - "1000", - "fpga_mask_rw", - "1000", - "fpga_scrap_r", - "1000", - "fpga_scrap_rw", - "1000", - "fpga_status_r", - "1000", - "fpga_version_r", - "1000", - "fpga_weights_r", - "1000", - "fpga_weights_rw", - "1000", - "tr_busy_r", - "1000", - "tr_reload_rw", - "1000", - "tr_tod_r", - "1000", - "tr_uptime_r", - "1000" - ] - } - } - } - } - }, - "SST": { - "STAT": { - "SST": { - "STAT/SST/1": { - "properties": { - "Statistics_Client_Port": [ - "5001" - ], - "OPC_Server_Name": [ - "dop36.astron.nl" - ], - "OPC_Server_Port": [ - "4840" - ], - "OPC_Time_Out": [ - "5.0" - ] - } - } - } - } - }, - "UNB2": { - "STAT": { - "UNB2": { - "STAT/UNB2/1": { - "properties": { - "OPC_Server_Name": [ - "despi.astron.nl" - ], - "OPC_Server_Port": [ - "4842" - ], - "OPC_Time_Out": [ - "5.0" - ] - } - } - } - } - }, - "StatsCrosslet": { - "CS997": { - "StatsCrosslet": { - "opc-ua/test-crossletstats/1": { - "attribute_properties": { - "visibilities_imag": { - "archive_rel_change": [ - "-0.1", - "0.1" - ], - "rel_change": [ - "-0.1", - "0.1" - ] - }, - "visibilities_real": { - "archive_rel_change": [ - "-0.1", - "0.1" - ], - "rel_change": [ - "-0.1", - "0.1" - ] - } - }, - "properties": { - "polled_attr": [ - "integration_time", - "0", - "pause_time", - "0", - "rcu_modes", - "0", - "state", - "0", - "status", - "0", - "subband", - "0", - "time_stamp", - "0", - "visibilities_imag", - "0", - "visibilities_real", - "0" - ] - } - } - } - } - } - } -} diff --git a/CDB/windows_ConfigDb.json b/CDB/windows_ConfigDb.json deleted file mode 100644 index ffc34ee01f505570da387bf6be81ec776f942f60..0000000000000000000000000000000000000000 --- a/CDB/windows_ConfigDb.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "servers": { - "RECV": { - "1": { - "RECV": { - "STAT/RECV/1": { - "properties": { - "OPC_Server_Name": [ - "host.docker.internal" - ] - } - } - } - } - }, - "SDP": { - "1": { - "SDP": { - "STAT/SDP/1": { - "properties": { - "OPC_Server_Name": [ - "host.docker.internal" - ] - } - } - } - } - }, - "ini_device": { - "1": { - "ini_device": { - "STAT/ini_device/1": { - "attribute_properties": { - "Ant_mask_RW": { - "archive_period": [ - "600000" - ] - } - }, - "properties": { - "SNMP_community": [ - "public" - ], - "SNMP_host": [ - "172.22.176.1" - ], - "SNMP_timeout": [ - "5.0" - ] - } - } - } - } - }, - "SNMP": { - "1": { - "SNMP": { - "STAT/SNMP/1": { - "attribute_properties": { - "Ant_mask_RW": { - "archive_period": [ - "600000" - ] - } - }, - "properties": { - "SNMP_community": [ - "public" - ], - "SNMP_host": [ - "172.22.176.1" - ], - "SNMP_timeout": [ - "5.0" - ] - } - } - } - } - }, - "test_device": { - "1": { - "test_device": { - "STAT/test_device/1": { - "attribute_properties": { - "Ant_mask_RW": { - "archive_period": [ - "600000" - ] - } - }, - "properties": { - "OPC_Server_Name": [ - "host.docker.internal" - ], - "OPC_Server_Port": [ - "4842" - ], - "OPC_Time_Out": [ - "5.0" - ] - } - } - } - } - } - } -}