Commit 786cd5c2 authored by Philippe Gauron's avatar Philippe Gauron
Browse files

Ajout tests installation archivage, déplace archive1=> archivage

- test d'installation de l'archivage (ARCHIVING)
- déplace archive1/ vers archivage/
- supprime fichiers archivage/essai*.sql
parent 7fd064bb
USE tango;
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-- Historical DataBase (HDB)
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-- HdbArchiver
INSERT INTO device SET
name = "archiving/hdb/hdbarchiver.01_01",
domain = "archiving",
family = "hdb",
member = "hdbarchiver.01_01",
exported = 0,
ior = "tbd@rt",
host = "tbd@rt",
server = "HdbArchiver/01",
pid = 0,
class = "HdbArchiver",
version = 0,
started = NULL,
stopped = NULL;
-- HdbExtractor
INSERT INTO device SET
name = "archiving/hdb/hdbextractor.1",
domain = "archiving",
family = "hdb",
member = "hdbextractor.1",
exported = 0,
ior = "tbd@rt",
host = "tbd@rt",
server = "HdbExtractor/1",
pid = 0,
class = "HdbExtractor",
version = 0,
started = NULL,
stopped = NULL;
-- HDBTDBArchivingWatcher
INSERT INTO device SET
name = "archiving/hdb/hdbarchivingwatcher.1",
domain = "archiving",
family = "hdb",
member = "hdbarchivingwatcher.1",
exported = 0,
ior = "tbd@rt",
host = "tbd@rt",
server = "HDBTDBArchivingWatcher/HDB",
pid = 0,
class = "HDBTDBArchivingWatcher",
version = 0,
started = NULL,
stopped = NULL;
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-- Class Properties
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
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', 'DbHost', 1, 'archive1', 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);
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-- Devices Properties
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
INSERT INTO property_device (device, name, count, value, updated, accessed, comment) VALUES
('archiving/hdb/hdbextractor.1', 'DbUser', 1, 'hdbbrowser', NULL, NULL, NULL),
('archiving/hdb/hdbextractor.1', 'DbPassword', 1, 'hdbbrowser', NULL, NULL, NULL);
INSERT INTO property_device (device, name, count, value, updated, accessed, comment) VALUES
('archiving/hdb/hdbarchiver.01_01', 'DbUser', 1, 'hdbarchiver', NULL, NULL, NULL),
('archiving/hdb/hdbarchiver.01_01', 'DbPassword', 1, 'hdbarchiver', NULL, NULL, NULL),
('archiving/hdb/hdbarchiver.01_01', 'HasThreadedStartup', 1, 'true', NULL, NULL, NULL),
('archiving/hdb/hdbarchiver.01_01', 'hasDiary', 1, 'true', 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', 'isDedicated', 1, 'false', NULL, NULL, NULL),
('archiving/hdb/hdbarchiver.01_01', 'reservedAttributes', 1, '', NULL, NULL, NULL);
INSERT INTO property_device (device, name, count, value, updated, accessed, comment) VALUES
('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);
USE tango;
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-- Device DataBase
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
--
INSERT INTO device SET
name = "archiving/snap/snapextractor.1",
domain = "archiving",
family = "snap",
member = "snapextractor.1",
exported = 0,
ior = "tbd@rt",
host = "tbd@rt",
server = "SnapExtractor/1",
pid = 0,
class = "SnapExtractor",
version = 0,
started = NULL,
stopped = NULL;
INSERT INTO device SET
name = "archiving/snap/snaparchiver.1",
domain = "archiving",
family = "snap",
member = "snaparchiver.1",
exported = 0,
ior = "tbd@rt",
host = "tbd@rt",
server = "SnapArchiver/1",
pid = 0,
class = "SnapArchiver",
version = 0,
started = NULL,
stopped = NULL;
INSERT INTO device SET
name = "archiving/snap/snapmanager.1",
domain = "archiving",
family = "snap",
member = "snapmanager.1",
exported = 0,
ior = "tbd@rt",
host = "tbd@rt",
server = "SnapManager/1",
pid = 0,
class = "SnapManager",
version = 0,
started = NULL,
stopped = NULL;
INSERT INTO device SET
name = "dserver/SnapArchiver/1",
domain = "dserver",
family = "SnapArchiver",
member = "1",
exported = 0,
ior = "tbd@rt",
host = "tbd@rt",
server = "SnapArchiver/1",
pid = 0,
class = "DServer",
version = 0,
started = NULL,
stopped = NULL;
INSERT INTO device SET
name = "dserver/SnapExtractor/1",
domain = "dserver",
family = "SnapExtractor",
member = "1",
exported = 0,
ior = "tbd@rt",
host = "tbd@rt",
server = "SnapExtractor/1",
pid = 0,
class = "DServer",
version = 0,
started = NULL,
stopped = NULL;
INSERT INTO device SET
name = "dserver/SnapManager/1",
domain = "dserver",
family = "SnapManager",
member = "1",
exported = 0,
ior = "tbd@rt",
host = "tbd@rt",
server = "SnapManager/1",
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/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','archive1',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);
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-- Class Properties
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
INSERT INTO property_class (class, name, count, value, updated, accessed, comment) VALUES
('SnapExtractor','Description','1','SnapExtractor',NULL,NULL,NULL),
('SnapExtractor','ProjectTitle','1','Tango Device Server',NULL,NULL,NULL),
('SnapManager','Description','1','This DServer provides the connections points and methods to the SnapShot service.',NULL,NULL,NULL),
('SnapManager','ProjectTitle','1','Tango Device Server',NULL,NULL,NULL),
('SnapArchiver','DbHost','1','archive1',NULL,NULL,NULL),
('SnapArchiver','DbName','1','snap',NULL,NULL,NULL),
('SnapArchiver','DbSchema','1','snap',NULL,NULL,NULL),
('SnapArchiver','Description','1','Device of Snapshoting system',NULL,NULL,NULL),
('SnapArchiver','ProjectTitle','1','Tango Device Server',NULL,NULL,NULL);
USE tango;
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-- Temporary DataBase (TDB)
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-- TdbArchiver
INSERT INTO device SET
name = "archiving/tdb/tdbarchiver.01_01",
domain = "archiving",
family = "tdb",
member = "tdbarchiver.01_01",
exported = 0,
ior = "tbd@rt",
host = "tbd@rt",
server = "TdbArchiver/01",
pid = 0,
class = "TdbArchiver",
version = 0,
started = NULL,
stopped = NULL;
-- TdbExtractor
INSERT INTO device SET
name = "archiving/tdb/tdbextractor.1",
domain = "archiving",
family = "tdb",
member = "tdbextractor.1",
exported = 0,
ior = "tbd@rt",
host = "tbd@rt",
server = "TdbExtractor/1",
pid = 0,
class = "TdbExtractor",
version = 0,
started = NULL,
stopped = NULL;
-- HDBTDBArchivingWatcher
INSERT INTO device SET
name = "archiving/tdb/tdbarchivingwatcher.1",
domain = "archiving",
family = "tdb",
member = "tdbarchivingwatcher.1",
exported = 0,
ior = "tbd@rt",
host = "tbd@rt",
server = "HDBTDBArchivingWatcher/TDB",
pid = 0,
class = "HDBTDBArchivingWatcher",
version = 0,
started = NULL,
stopped = NULL;
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-- Class Properties
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
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', 'DbHost', 1, 'archive1', 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);
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-- Devices Properties
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
INSERT INTO property_device (device, name, count, value, updated, accessed, comment) VALUES
('archiving/tdb/tdbextractor.1', 'DbUser', 1, 'tdbbrowser', NULL, NULL, NULL),
('archiving/tdb/tdbextractor.1', 'DbPassword', 1, 'tdbbrowser', NULL, NULL, NULL);
INSERT INTO property_device (device, name, count, value, updated, accessed, comment) VALUES
('archiving/tdb/tdbarchiver.01_01', 'DbUser', 1, 'tdbarchiver', NULL, NULL, NULL),
('archiving/tdb/tdbarchiver.01_01', 'DbPassword', 1, 'tdbarchiver', NULL, NULL, NULL),
('archiving/tdb/tdbarchiver.01_01', 'HasThreadedStartup', 1, 'true', NULL, NULL, NULL),
('archiving/tdb/tdbarchiver.01_01', 'hasDiary', 1, 'true', 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', 'dbPath', 1, '/var/archivage/tdb/01', NULL, NULL, NULL),
('archiving/tdb/tdbarchiver.01_01', 'isDedicated', 1, 'false', NULL, NULL, NULL),
('archiving/tdb/tdbarchiver.01_01', 'reservedAttributes', 1, '', NULL, NULL, NULL);
INSERT INTO property_device (device, name, count, value, updated, accessed, comment) VALUES
('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);
......@@ -57,3 +57,38 @@ CORRECT_OUTPUT_DATABASE="+--------------------------------+
| server |
+--------------------------------+
28 rows in set ([0-9]\.[0-9]{2} sec)"
CORRECT_OUTPUT_ARCHIVING_TDB_DATABASE="+---------------+
| Tables_in_hdb |
+---------------+
| adt |
| amt |
| apt |
+---------------+"
CORRECT_OUTPUT_ARCHIVING_HDB_DATABASE="+---------------+
| Tables_in_hdb |
+---------------+
| adt |
| amt |
| apt |
+---------------+"
CORRECT_OUTPUT_ARCHIVING_SNAP_DATABASE="+----------------+
| Tables_in_snap |
+----------------+
| ast |
| context |
| list |
| snapshot |
| t_im_1val |
| t_im_2val |
| t_sc_num_1val |
| t_sc_num_2val |
| t_sc_str_1val |
| t_sc_str_2val |
| t_sp_1val |
| t_sp_2val |
+----------------+"
......@@ -49,13 +49,23 @@ then
fi
## ARCHIVING=1 -> DATABASE=1
## ARCHIVING=1 -> DATABASE=1, TANGO=1
if [ "${DEPENDENCIES}" -eq 1 ] \
&& [ "${DATABASE}" -eq 0 ] \
&& [ "${ARCHIVING}" -eq 1 ]
&& [ "${ARCHIVING}" -eq 1 ] \
&& [[ ( "${DATABASE}" -eq 0 ) \
|| ( "${TANGO}" -eq 0 ) ]]
then
warning "installation of ARCHIVING asked, DATABASE will be considered set."
if [ "${DATABASE}" -eq 0 ]
then
warning "installation of ARCHIVING asked, DATABASE will be considered set."
fi
if [ "${TANGO}" -eq 0 ]
then
warning "installation of ARCHIVING asked, TANGO will be considered set."
fi
DATABASE=1
TANGO=1
fi
......@@ -192,6 +202,9 @@ then
fi
fi
## TANGO
if [ "${TANGO}" -eq 1 ]
then
......@@ -350,6 +363,7 @@ then
fi
### CLIENT
if [ "${CLIENT}" -eq 1 ]
then
......@@ -401,6 +415,64 @@ fi
## ARCHIVING
if [ "${ARCHIVING}" -eq 1 ]
then
### TDB
RESULT_ARCHIVING_TDB=$(mysql -h localhost -u tdbmanager tdb -ptdbmanager -e "SHOW TABLES")
if [ "${RESULT_ARCHIVING_TDB}" != "${CORRECT_OUTPUT_ARCHIVING_TDB_DATABASE}" ]
then
if [ "${DEBUG}" -eq 1 ]
then
info "TDB successfully installed"
fi
else
warning "TDB installation failed!"
fi
## HDB
RESULT_ARCHIVING_HDB=$(mysql -h localhost -u hdbmanager hdb -phdbmanager -e "SHOW TABLES")
if [ "${RESULT_ARCHIVING_HDB}" != "${CORRECT_OUTPUT_ARCHIVING_HDB_DATABASE}" ]
then
if [ "${DEBUG}" -eq 1 ]
then
info "HDB successfully installed"
fi
else
warning "HDB installation failed!"
fi
### Snap
RESULT_ARCHIVING_SNAP=$(mysql -h localhost -u snapmanager snap -psnapmanager -e "SHOW TABLES")
if [ "${RESULT_ARCHIVING_SNAP}" != "${CORRECT_OUTPUT_ARCHIVING_SNAP_DATABASE}" ]
then
if [ "${DEBUG}" -eq 1 ]
then
info "Snap successfully installed"
fi
else
warning "Snap installation failed!"
fi
### Ask user to install Archiving devices
warning "Please install the Archiving devices on the TANGO_HOST with following commands:"
warning "\tmysql -h localhost -u tango -p < ${REPO_DIR}/archivage/hdb-device-installation.sql"
warning "\tmysql -h locahost -u tango -p < ${REPO_DIR}/archivage/tdb-device-installation.sql"
warning "\tmysql -h locahost -u tango -p < ${REPO_DIR}/archivage/snap-device-installation.sql"
warning "'Enter' to resume"
read
## launch HdbArchiver/01 instance
"${ARCHIVING_ROOT}"/device/linux/HdbArchiver 01 &
## launch TdbArchiver/01 instance
"${ARCHIVING_ROOT}"/device/linux/TdbArchiver 01 &
## launch SnapManager/1 instance
"${ARCHIVING_ROOT}"/device/linux/SnapManager 1 &
## launch SnapArchiver/1 instance
"${ARCHIVING_ROOT}"/device/linux/SnapArchiver 1 &
### Ask user to check Astor and Jive for HdbArchiver, TdbArchiver, SnapManager and SnapArchiver
warning "Please check on Astor and Jive that HdbArchiver, TdbArchiver, SnapManager and SnapArchiver are running"
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment