Commit b0f5de6d authored by Philippe Gauron's avatar Philippe Gauron
Browse files

Merge branch 'installation' into 'master'

script d'installation

See merge request CCThomX/installation!40
parents 680862e7 d8b9357c
......@@ -8,13 +8,13 @@ USE tango;
--
INSERT INTO device SET
name = "archiving/hdb/hdbarchiver.01_01",
name = "archiving/hdb/hdbarchiver.01",
domain = "archiving",
family = "hdb",
member = "hdbarchiver.01_01",
member = "hdbarchiver.01",
exported = 0,
ior = "tbd@rt",
host = "tbd@rt",
ior = "tbd@rt", -- À VÉRIFIER
host = "tbd@rt", -- À VÉRIFIER
server = "HdbArchiver/01",
pid = 0,
class = "HdbArchiver",
......@@ -23,28 +23,29 @@ INSERT INTO device SET
stopped = NULL;
INSERT INTO device SET
name = "archiving/hdb/hdbextractor.1",
name = "archiving/hdb/hdbextractor.01",
domain = "archiving",
family = "hdb",
member = "hdbextractor.1",
member = "hdbextractor.01",
exported = 0,
ior = "tbd@rt",
host = "tbd@rt",
server = "HdbExtractor/1",
ior = "tbd@rt", -- À VÉRIFIER
host = "tbd@rt", -- À VÉRIFIER
server = "HdbExtractor/01",
pid = 0,
class = "HdbExtractor",
version = 0,
started = NULL,
stopped = NULL;
-- installation à revoir
INSERT INTO device SET
name = "archiving/hdb/hdbarchivingwatcher.1",
name = "archiving/hdb/hdbarchivingwatcher.01",
domain = "archiving",
family = "hdb",
member = "hdbarchivingwatcher.1",
member = "hdbarchivingwatcher.01",
exported = 0,
ior = "tbd@rt",
host = "tbd@rt",
ior = "tbd@rt", -- À VÉRIFIER
host = "tbd@rt", -- À VÉRIFIER
server = "HDBTDBArchivingWatcher/HDB",
pid = 0,
class = "HDBTDBArchivingWatcher",
......@@ -58,8 +59,8 @@ INSERT INTO device SET
family = "HdbArchiver",
member = "01",
exported = 0,
ior = "tbd@rt",
host = "tbd@rt",
ior = "tbd@rt", -- À VÉRIFIER
host = "tbd@rt", -- À VÉRIFIER
server = "HdbArchiver/01",
pid = 0,
class = "DServer",
......@@ -67,43 +68,73 @@ INSERT INTO device SET
started = NULL,
stopped = NULL;
INSERT INTO device SET
name = "dserver/HdbExtractor/01",
domain = "dserver",
family = "HdbExtractor",
member = "01",
exported = 0,
ior = "tbd@rt", -- À VÉRIFIER
host = "tbd@rt", -- À VÉRIFIER
server = "HdbExtractor/01",
pid = 0,
class = "DServer",
version = 0,
started = NULL,
stopped = NULL;
INSERT INTO device SET
name = "dserver/HDBTDBArchivingWatcher/HDB",
domain = "dserver",
family = "HDBTDBArchivingWatcher",
member = "01",
exported = 0,
ior = "tbd@rt", -- À VÉRIFIER
host = "tbd@rt", -- À VÉRIFIER
server = "HDBTDBArchivingWatcher/HDB",
pid = 0,
class = "DServer",
version = 0,
started = NULL,
stopped = NULL;
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-- Devices Properties
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
INSERT INTO property_device (device, name, count, value, updated, accessed, comment) VALUES
('archiving/hdb/hdbarchiver.01_01','DbPassword','1','hdbarchiver',NULL,NULL,NULL),
('archiving/hdb/hdbarchiver.01_01','DbUser','1','hdbarchiver',NULL,NULL,NULL),
('archiving/hdb/hdbarchiver.01_01','diaryLogLevel','1','INFO',NULL,NULL,NULL),
('archiving/hdb/hdbarchiver.01_01','diaryPath','1','/var/archivage/hdb/01',NULL,NULL,NULL),
('archiving/hdb/hdbarchiver.01_01','hasDiary','1','true',NULL,NULL,NULL),
('archiving/hdb/hdbarchiver.01_01','HasThreadedStartup','1','true',NULL,NULL,NULL),
('archiving/hdb/hdbarchiver.01_01','isDedicated','1','false',NULL,NULL,NULL),
('archiving/hdb/hdbarchiver.01_01','reservedAttributes','1','',NULL,NULL,NULL),
('archiving/hdb/hdbextractor.1','DbPassword','1','hdbbrowser',NULL,NULL,NULL),
('archiving/hdb/hdbextractor.1','DbUser','1','hdbbrowser',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.1','archiverClass','1','HdbArchiver',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.1','checkLastValidDate','1','false',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.1','cyclePause','1','1200000',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.1','dbPwd','1','hdbmanager',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.1','dbUser','1','hdbmanager',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.1','doArchiverDiagnosis','1','true',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.1','doDiagnosis','1','true',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.1','doDiffReport','1','false',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.1','doRetry','1','true',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.1','exludeList','1',' ',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.1','GapDuration','1','900000',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.1','notificationContact','1',' ',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.1','notificationThreshold','1','340',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.1','onlyIncludeList','1',' ',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.1','periodicReport','1','7 days',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.1','realCheck','1','true',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.1','safetyPeriod','1','15 minutes',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.1','textTalkerLanguage','1','en',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.1','unitaryPause','1','500',NULL,NULL,NULL);
('archiving/hdb/hdbarchiver.01','HasThreadedStartup','1','true',NULL,NULL,NULL),
('archiving/hdb/hdbarchiver.01','isDedicated','1','false',NULL,NULL,NULL),
('archiving/hdb/hdbarchiver.01','reservedAttributes','1','',NULL,NULL,NULL),
('archiving/hdb/hdbarchiver.01','hasDiary','1','true',NULL,NULL,NULL),
('archiving/hdb/hdbarchiver.01','diaryLogLevel','1','INFO',NULL,NULL,NULL),
('archiving/hdb/hdbarchiver.01','diaryPath','1','/var/archivage/hdb/01',NULL,NULL,NULL),
('archiving/hdb/hdbarchiver.01','safetyPeriod','1','absolute/minutes/15',NULL,NULL,NULL),
('archiving/hdb/hdbextractor.01', 'DbUser', 1, 'hdbbrowser', NULL, NULL, NULL),
('archiving/hdb/hdbextractor.01', 'DbPassword', 1, 'hdbbrowser', NULL, NULL, NULL),
('archiving/hdb/hdbarchivingwatcher.01','archiverClass','1','HdbArchiver',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.01','checkLastValidDate','1','false',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.01','cyclePause','1','1200000',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.01','dbPwd','1','hdbmanager',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.01','dbUser','1','hdbmanager',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.01','doArchiverDiagnosis','1','true',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.01','doDiagnosis','1','true',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.01','doDiffReport','1','false',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.01','doRetry','1','true',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.01','exludeList','1',' ',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.01','GapDuration','1','900000',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.01','notificationContact','1',' ',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.01','notificationThreshold','1','340',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.01','onlyIncludeList','1',' ',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.01','periodicReport','1','7 days',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.01','realCheck','1','true',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.01','safetyPeriod','1','15 minutes',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.01','textTalkerLanguage','1','en',NULL,NULL,NULL),
('archiving/hdb/hdbarchivingwatcher.01','unitaryPause','1','500',NULL,NULL,NULL);
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
......@@ -111,16 +142,16 @@ INSERT INTO property_device (device, name, count, value, updated, accessed, comm
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
INSERT INTO property_class (class, name, count, value, updated, accessed, comment) VALUES
('HdbArchiver','CommitCounter','1','10',NULL,NULL,NULL),
('HdbArchiver','DbCnxInactivityTimeout','1','1800',NULL,NULL,NULL),
('HdbArchiver','Description','1','Device description',NULL,NULL,NULL),
('HdbArchiver','ProjectTitle','1','Project description',NULL,NULL,NULL),
('HdbArchiver','DbHost','1','localhost',NULL,NULL,NULL),
('HdbArchiver','DbMaxPoolSize','1','10',NULL,NULL,NULL),
('HdbArchiver','DbMinPoolSize','1','2',NULL,NULL,NULL),
('HdbArchiver','DbName','1','hdb',NULL,NULL,NULL),
('HdbArchiver','DbONSConf','1','crshcl:6200',NULL,NULL,NULL),
('HdbArchiver','DbSchema','1','hdb',NULL,NULL,NULL),
('HdbArchiver','DbTnsNames','1','(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = crshcl)(PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = HCL)))',NULL,NULL,NULL),
('HdbArchiver','Facility','1','false',NULL,NULL,NULL),
('HdbArchiver','isDegradMode','1','false',NULL,NULL,NULL),
('HdbArchiver','isRac','1','false',NULL,NULL,NULL);
('HdbArchiver','DbUser','1','hdbarchiver',NULL,NULL,NULL),
('HdbArchiver','DbPassword','1','hdbarchiver',NULL,NULL,NULL),
('HdbArchiver','DbType','1','MySQL',NULL,NULL,NULL),
('HdbExtractor','Description','1','Device description',NULL,NULL,NULL), -- À VÉRIFIER
('HdbExtractor','ProjectTitle','1','Project description',NULL,NULL,NULL); -- À VÉRIFIER
-- ('HdbExtractor','DbConfig','1','hdbmanager:hdbmanager@localhost',NULL,NULL,NULL); -- À VÉRIFIER
......@@ -3,20 +3,24 @@ USE tango;
START TRANSACTION;
-- HDB Devices
DELETE FROM device WHERE name = "archiving/hdb/hdbarchiver.01_01";
DELETE FROM device WHERE name = "archiving/hdb/hdbextractor.1";
DELETE FROM device WHERE name = "archiving/hdb/hdbarchivingwatcher.1";
DELETE FROM device WHERE name = "archiving/hdb/hdbarchiver.01";
DELETE FROM device WHERE name = "archiving/hdb/hdbextractor.01";
DELETE FROM device WHERE name = "archiving/hdb/hdbarchivingwatcher.01";
DELETE FROM device WHERE name = "dserver/HdbArchiver/01";
DELETE FROM device WHERE name = "dserver/HdbExtractor/01";
DELETE FROM device WHERE name = "dserver/HDBTDBArchivingWatcher/HDB";
-- Device Properties
DELETE FROM property_device WHERE device = "archiving/hdb/hdbarchiver.01_01";
DELETE FROM property_device WHERE device = "archiving/hdb/hdbextractor.1";
DELETE FROM property_device WHERE device = "archiving/hdb/hdbarchivingwatcher.1";
DELETE FROM property_device WHERE device = "archiving/hdb/hdbarchiver.01";
DELETE FROM property_device WHERE device = "archiving/hdb/hdbextractor.01";
DELETE FROM property_device WHERE device = "archiving/hdb/hdbarchivingwatcher.01";
-- Class Properties
-- DELETE FROM property_class WHERE device = "HdbArchiver";
-- DELETE FROM property_class WHERE device = "HdbArchiver";
DELETE FROM property_class WHERE class = "HdbArchiver";
DELETE FROM property_class WHERE class = "HdbExtractor";
-- COMMIT TRANSACTION;
COMMIT;
\ No newline at end of file
......@@ -8,14 +8,14 @@ USE tango;
--
INSERT INTO device SET
name = "archiving/snap/snapextractor.1",
name = "archiving/snap/snapextractor.01",
domain = "archiving",
family = "snap",
member = "snapextractor.1",
member = "snapextractor.01",
exported = 0,
ior = "tbd@rt",
host = "tbd@rt",
server = "SnapExtractor/1",
server = "SnapExtractor/01",
pid = 0,
class = "SnapExtractor",
version = 0,
......@@ -23,14 +23,14 @@ INSERT INTO device SET
stopped = NULL;
INSERT INTO device SET
name = "archiving/snap/snaparchiver.1",
name = "archiving/snap/snaparchiver.01",
domain = "archiving",
family = "snap",
member = "snaparchiver.1",
member = "snaparchiver.01",
exported = 0,
ior = "tbd@rt",
host = "tbd@rt",
server = "SnapArchiver/1",
server = "SnapArchiver/01",
pid = 0,
class = "SnapArchiver",
version = 0,
......@@ -38,14 +38,14 @@ INSERT INTO device SET
stopped = NULL;
INSERT INTO device SET
name = "archiving/snap/snapmanager.1",
name = "archiving/snap/snapmanager.01",
domain = "archiving",
family = "snap",
member = "snapmanager.1",
member = "snapmanager.01",
exported = 0,
ior = "tbd@rt",
host = "tbd@rt",
server = "SnapManager/1",
server = "SnapManager/01",
pid = 0,
class = "SnapManager",
version = 0,
......@@ -54,14 +54,14 @@ INSERT INTO device SET
INSERT INTO device SET
name = "dserver/SnapArchiver/1",
name = "dserver/SnapArchiver/01",
domain = "dserver",
family = "SnapArchiver",
member = "1",
member = "01",
exported = 0,
ior = "tbd@rt",
host = "tbd@rt",
server = "SnapArchiver/1",
server = "SnapArchiver/01",
pid = 0,
class = "DServer",
version = 0,
......@@ -69,14 +69,14 @@ INSERT INTO device SET
stopped = NULL;
INSERT INTO device SET
name = "dserver/SnapExtractor/1",
name = "dserver/SnapExtractor/01",
domain = "dserver",
family = "SnapExtractor",
member = "1",
member = "01",
exported = 0,
ior = "tbd@rt",
host = "tbd@rt",
server = "SnapExtractor/1",
server = "SnapExtractor/01",
pid = 0,
class = "DServer",
version = 0,
......@@ -84,14 +84,14 @@ INSERT INTO device SET
stopped = NULL;
INSERT INTO device SET
name = "dserver/SnapManager/1",
name = "dserver/SnapManager/01",
domain = "dserver",
family = "SnapManager",
member = "1",
member = "01",
exported = 0,
ior = "tbd@rt",
host = "tbd@rt",
server = "SnapManager/1",
server = "SnapManager/01",
pid = 0,
class = "DServer",
version = 0,
......@@ -105,16 +105,16 @@ INSERT INTO device SET
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
INSERT INTO property_device (device, name, count, value, updated, accessed, comment) VALUES
('archiving/snap/snapextractor.1','DbPassword','1','snapmanager',NULL,NULL,NULL),
('archiving/snap/snapextractor.1','DbUSer','1','snapmanager',NULL,NULL,NULL),
('archiving/snap/snaparchiver.1','BeansFileName','1','beansBeamline.xml',NULL,NULL,NULL),
('archiving/snap/snaparchiver.1','DbHost','1','localhost',NULL,NULL,NULL),
('archiving/snap/snaparchiver.1','DbName','1','snap',NULL,NULL,NULL),
('archiving/snap/snaparchiver.1','DbPassword','1','snaparchiver',NULL,NULL,NULL),
('archiving/snap/snaparchiver.1','DbSchema','1','snap',NULL,NULL,NULL),
('archiving/snap/snaparchiver.1','DbUser','1','snaparchiver',NULL,NULL,NULL),
('archiving/snap/snapmanager.1','DbPassword','1','snapmanager',NULL,NULL,NULL),
('archiving/snap/snapmanager.1','DbUser','1','snapmanager',NULL,NULL,NULL);
('archiving/snap/snapextractor.01','DbPassword','1','snapmanager',NULL,NULL,NULL),
('archiving/snap/snapextractor.01','DbUSer','1','snapmanager',NULL,NULL,NULL),
('archiving/snap/snaparchiver.01','BeansFileName','1','beansBeamline.xml',NULL,NULL,NULL),
('archiving/snap/snaparchiver.01','DbHost','1','localhost',NULL,NULL,NULL),
('archiving/snap/snaparchiver.01','DbName','1','snap',NULL,NULL,NULL),
('archiving/snap/snaparchiver.01','DbPassword','1','snaparchiver',NULL,NULL,NULL),
('archiving/snap/snaparchiver.01','DbSchema','1','snap',NULL,NULL,NULL),
('archiving/snap/snaparchiver.01','DbUser','1','snaparchiver',NULL,NULL,NULL),
('archiving/snap/snapmanager.01','DbPassword','1','snapmanager',NULL,NULL,NULL),
('archiving/snap/snapmanager.01','DbUser','1','snapmanager',NULL,NULL,NULL);
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
......
......@@ -8,10 +8,10 @@ USE tango;
--
INSERT INTO device SET
name = "archiving/tdb/tdbarchiver.01_01",
name = "archiving/tdb/tdbarchiver.01",
domain = "archiving",
family = "tdb",
member = "tdbarchiver.01_01",
member = "tdbarchiver.01",
exported = 0,
ior = "tbd@rt",
host = "tbd@rt",
......@@ -23,14 +23,14 @@ INSERT INTO device SET
stopped = NULL;
INSERT INTO device SET
name = "archiving/tdb/tdbextractor.1",
name = "archiving/tdb/tdbextractor.01",
domain = "archiving",
family = "tdb",
member = "tdbextractor.1",
member = "tdbextractor.01",
exported = 0,
ior = "tbd@rt",
host = "tbd@rt",
server = "TdbExtractor/1",
server = "TdbExtractor/01",
pid = 0,
class = "TdbExtractor",
version = 0,
......@@ -38,10 +38,10 @@ INSERT INTO device SET
stopped = NULL;
INSERT INTO device SET
name = "archiving/tdb/tdbarchivingwatcher.1",
name = "archiving/tdb/tdbarchivingwatcher.01",
domain = "archiving",
family = "tdb",
member = "tdbarchivingwatcher.1",
member = "tdbarchivingwatcher.01",
exported = 0,
ior = "tbd@rt",
host = "tbd@rt",
......@@ -68,43 +68,58 @@ INSERT INTO device SET
stopped = NULL;
INSERT INTO device SET
name = "dserver/TdbExtractor/01",
domain = "dserver",
family = "TdbExtractor",
member = "01",
exported = 0,
ior = "tbd@rt",
host = "tbd@rt",
server = "TdbExtractor/01",
pid = 0,
class = "DServer",
version = 0,
started = NULL,
stopped = NULL;
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-- Devices Properties
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
INSERT INTO property_device (device, name, count, value, updated, accessed, comment) VALUES
('archiving/tdb/tdbarchiver.01_01','DbPassword','1','tdbarchiver',NULL,NULL,NULL),
('archiving/tdb/tdbarchiver.01_01','dbPath','1','/var/archivage/tdb/01',NULL,NULL,NULL),
('archiving/tdb/tdbarchiver.01_01','DbUser','1','tdbarchiver',NULL,NULL,NULL),
('archiving/tdb/tdbarchiver.01_01','diaryLogLevel','1','DEBUG',NULL,NULL,NULL),
('archiving/tdb/tdbarchiver.01_01','diaryPath','1','/var/archivage/tdb/01',NULL,NULL,NULL),
('archiving/tdb/tdbarchiver.01_01','dsPath','1','/var/archivage/tdb/01',NULL,NULL,NULL),
('archiving/tdb/tdbarchiver.01_01','hasDiary','1','true',NULL,NULL,NULL),
('archiving/tdb/tdbarchiver.01_01','HasThreadedStartup','1','true',NULL,NULL,NULL),
('archiving/tdb/tdbarchiver.01_01','isDedicated','1','false',NULL,NULL,NULL),
('archiving/tdb/tdbarchiver.01_01','reservedAttributes','1','',NULL,NULL,NULL),
('archiving/tdb/tdbextractor.1','DbPassword','1','tdbbrowser',NULL,NULL,NULL),
('archiving/tdb/tdbextractor.1','DbUser','1','tdbbrowser',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.1','archiverClass','1','TdbArchiver',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.1','checkLastValidDate','1','false',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.1','cyclePause','1','1200000',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.1','dbPwd','1','tdbmanager',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.1','dbUser','1','tdbmanager',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.1','doArchiverDiagnosis','1','true',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.1','doDiagnosis','1','true',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.1','doDiffReport','1','false',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.1','doRetry','1','true',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.1','exludeList','1',' ',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.1','GapDuration','1','900000',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.1','notificationContact','1',' ',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.1','notificationThreshold','1','340',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.1','onlyIncludeList','1',' ',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.1','periodicReport','1','7 days',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.1','realCheck','1','true',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.1','safetyPeriod','1','15 minutes',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.1','textTalkerLanguage','1','en',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.1','unitaryPause','1','500',NULL,NULL,NULL);
('archiving/tdb/tdbarchiver.01','HasThreadedStartup','1','true',NULL,NULL,NULL),
('archiving/tdb/tdbarchiver.01','isDedicated','1','false',NULL,NULL,NULL),
('archiving/tdb/tdbarchiver.01','reservedAttributes','1','',NULL,NULL,NULL),
('archiving/tdb/tdbarchiver.01','hasDiary','1','true',NULL,NULL,NULL),
('archiving/tdb/tdbarchiver.01','diaryLogLevel','1','DEBUG',NULL,NULL,NULL),
('archiving/tdb/tdbarchiver.01','diaryPath','1','/var/archivage/tdb/01',NULL,NULL,NULL),
('archiving/tdb/tdbarchiver.01','dsPath','1','/var/archivage/tdb/01',NULL,NULL,NULL),
('archiving/tdb/tdbarchiver.01','dbPath','1','/var/archivage/tdb/01',NULL,NULL,NULL),
('archiving/tdb/tdbextractor.01','DbUser','1','tdbbrowser',NULL,NULL,NULL),
('archiving/tdb/tdbextractor.01','DbPassword','1','tdbbrowser',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.01','archiverClass','1','TdbArchiver',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.01','checkLastValidDate','1','false',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.01','cyclePause','1','1200000',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.01','dbPwd','1','tdbmanager',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.01','dbUser','1','tdbmanager',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.01','doArchiverDiagnosis','1','true',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.01','doDiagnosis','1','true',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.01','doDiffReport','1','false',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.01','doRetry','1','true',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.01','exludeList','1',' ',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.01','GapDuration','1','900000',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.01','notificationContact','1',' ',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.01','notificationThreshold','1','340',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.01','onlyIncludeList','1',' ',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.01','periodicReport','1','7 days',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.01','realCheck','1','true',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.01','safetyPeriod','1','15 minutes',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.01','textTalkerLanguage','1','en',NULL,NULL,NULL),
('archiving/tdb/tdbarchivingwatcher.01','unitaryPause','1','500',NULL,NULL,NULL);
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
......@@ -112,16 +127,16 @@ INSERT INTO property_device (device, name, count, value, updated, accessed, comm
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
INSERT INTO property_class (class, name, count, value, updated, accessed, comment) VALUES
('TdbArchiver','CommitCounter','1','10',NULL,NULL,NULL),
('TdbArchiver','DbCnxInactivityTimeout','1','1800',NULL,NULL,NULL),
('TdbArchiver','Description','1','Device description',NULL,NULL,NULL),
('TdbArchiver','ProjectTitle','1','Project description',NULL,NULL,NULL),
('TdbArchiver','DbHost','1','localhost',NULL,NULL,NULL),
('TdbArchiver','DbMaxPoolSize','1','10',NULL,NULL,NULL),
('TdbArchiver','DbMinPoolSize','1','2',NULL,NULL,NULL),
('TdbArchiver','DbName','1','tdb',NULL,NULL,NULL),
('TdbArchiver','DbONSConf','1','crshcl:6200',NULL,NULL,NULL),
('TdbArchiver','DbSchema','1','tdb',NULL,NULL,NULL),
('TdbArchiver','DbTnsNames','1','(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = crshcl)(PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = HCL)))',NULL,NULL,NULL),
('TdbArchiver','Facility','1','false',NULL,NULL,NULL),
('TdbArchiver','isDegradMode','1','false',NULL,NULL,NULL),
('TdbArchiver','isRac','1','false',NULL,NULL,NULL);
('TdbArchiver','DbUser','1','tdbarchiver',NULL,NULL,NULL),
('TdbArchiver','DbPassword','1','tdbarchiver',NULL,NULL,NULL),
('TdbArchiver','DbType','1','MySQL',NULL,NULL,NULL),
('TdbArchiver','RetentionPeriod','1','days/3',NULL,NULL,NULL),
('TdbExtractor','Description','1','Device description',NULL,NULL,NULL), -- À VÉRIFIER
('TdbExtractor','ProjectTitle','1','Project description',NULL,NULL,NULL); -- À VÉRIFIER
......@@ -3,19 +3,21 @@ USE tango;
START TRANSACTION;
-- Snap Devices
DELETE FROM device WHERE name = "archiving/tdb/tdbarchiver.01_01";
DELETE FROM device WHERE name = "archiving/tdb/tdbextractor.1";
DELETE FROM device WHERE name = "archiving/tdb/tdbarchivingwatcher.1";
DELETE FROM device WHERE name = "archiving/tdb/tdbarchiver.01";
DELETE FROM device WHERE name = "archiving/tdb/tdbextractor.01";
DELETE FROM device WHERE name = "archiving/tdb/tdbarchivingwatcher.01";
DELETE FROM device WHERE name = "dserver/TdbArchiver/01";
DELETE FROM device WHERE name = "dserver/TdbExtractor/01";
-- Device Properties
DELETE FROM property_device WHERE device = "archiving/tdb/tdbarchiver.01_01";
DELETE FROM property_device WHERE device = "archiving/tdb/tdbextractor.1";
DELETE FROM property_device WHERE device = "archiving/tdb/tdbarchivingwatcher.1";
DELETE FROM property_device WHERE device = "archiving/tdb/tdbarchiver.01";
DELETE FROM property_device WHERE device = "archiving/tdb/tdbextractor.01";
DELETE FROM property_device WHERE device = "archiving/tdb/tdbarchivingwatcher.01";
-- Class Properties
-- DELETE FROM property_class WHERE device = "TdbArchiver";
DELETE FROM property_class WHERE class = "TdbArchiver";
DELETE FROM property_class WHERE class = "TdbExtractor";
-- COMMIT TRANSACTION;
COMMIT;
\ No newline at end of file
#!/bin/bash
## Error codes
E_INCORRECT_ARGS=1
......
#!/bin/bash
### INSTALLATION SETTINGS
## This file is sourced by installation, uninstallation and verification scripts
......@@ -26,5 +28,6 @@ ARCHIVING=0
## Directory where to install
ARCHIVING_DIR="/var/archivage"