Bonjour à tous,
J'ai réalisé un JOB qui extrait des informations d'une base de données (Mysql): Ces informations récupérées correspondent à des informations d'un environnement applicatif tel que des paramètres de connexion d'un environnement (base de donées, ip, port, login ssh etc...)
=> soit 14 valeurs récupérées
En fonction de la topologie de l'environnement (mono noeud ou multi noeud) il peut y avoir 1 ou n lignes retourner par "tMysqlInput" donc 1 ou n fichier généré par le "tFileOutputDelimited_1"
L'objectif de ce job est de tester que pour chaque informationretourné correspondant à l’environnement, la connexion est OK pour le SSH et pour la BDD
Voici mon job:
Explication du job:
1) Récupération des valeurs depuis une connexion Mysql
2) Sortie dans un fichier: 1 fichier par environnement
3) Mise en forme du fichier via un tSPlitRow pour respecter le format KEY / VALUE
4) Charger dans un contexte
5) Tester que pour chaque fichier environnement, les valeurs SSH sont bonnes
6) Tester que pour chaque fichier environnement, les valeurs DB sont corrects
Ce que je n'arrive pas a réaliser ce sont les étapes 5) et 6) pour chaque environnement.
Il réalise bien la connexion (tSSH) mais il le fait que sur 1 des environnements.
Je suspecte le lien "OnComponentOK" qui casse le flux....
------------------------------------------------------------------------------
CONNEXION ENVIRONNEMENT SSH
------------------------------------------------------------------------------
in-bscs1ap
Voici toute sortie d’exécution :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73 Démarrage du job Init_package a 04:23 19/07/2018. [statistics] connecting to socket on port 3665 [statistics] connected Path:C:/ITG_IN-BSCS1APcsv Path:C:/ITG_IN-SOI1WEBcsv Path:C:/ITG_IN-SOI2WEBcsv Path:C:/ITG_IN-SOI3WEBcsv tContextLoad_2 set key "ENV_SHDES" with value "ITG" tContextLoad_2 set key "ENV_NB_NODE" with value "4" tContextLoad_2 set key "ENV_HOSTNAME" with value "IN-BSCS1AP" tContextLoad_2 set key "ENV_IS_BATCH" with value "1" tContextLoad_2 set key "ENV_IS_SOI" with value "0" tContextLoad_2 set key "ENV_SSH_PORT" with value "22" tContextLoad_2 set key "ENV_SSH_LOGIN" with value "TOTO" tContextLoad_2 set key "ENV_SSH_MDP" with value "TATA" tContextLoad_2 set key "ENV_SSH_PATH" with value "$WORK/" tContextLoad_2 set key "ENV_DB_NAME" with value "MABASE" tContextLoad_2 set key "ENV_DB_HOST" with value "TEST.MS.FCM" tContextLoad_2 set key "ENV_DB_PORT" with value "1521" tContextLoad_2 set key "ENV_DB_LOGIN" with value "PWD" tContextLoad_2 set key "ENV_DB_MDP" with value "PWD" ------------------------------------------------------------------------------ CONNEXION ENVIRONNEMENT SSH ------------------------------------------------------------------------------ in-bscs1ap tContextLoad_2 set key "ENV_SHDES" with value "ITG" tContextLoad_2 set key "ENV_NB_NODE" with value "4" tContextLoad_2 set key "ENV_HOSTNAME" with value "IN-SOI1WEB" tContextLoad_2 set key "ENV_IS_BATCH" with value "0" tContextLoad_2 set key "ENV_IS_SOI" with value "1" tContextLoad_2 set key "ENV_SSH_PORT" with value "22" tContextLoad_2 set key "ENV_SSH_LOGIN" with value "TOTO" tContextLoad_2 set key "ENV_SSH_MDP" with value "TATA" tContextLoad_2 set key "ENV_SSH_PATH" with value "$WORK/" tContextLoad_2 set key "ENV_DB_NAME" with value "MABASE" tContextLoad_2 set key "ENV_DB_HOST" with value "TEST.MS.FCM" tContextLoad_2 set key "ENV_DB_PORT" with value "1521" tContextLoad_2 set key "ENV_DB_LOGIN" with value "PWD" tContextLoad_2 set key "ENV_DB_MDP" with value "PWD" tContextLoad_2 set key "ENV_SHDES" with value "ITG" tContextLoad_2 set key "ENV_NB_NODE" with value "4" tContextLoad_2 set key "ENV_HOSTNAME" with value "IN-SOI2WEB" tContextLoad_2 set key "ENV_IS_BATCH" with value "0" tContextLoad_2 set key "ENV_IS_SOI" with value "1" tContextLoad_2 set key "ENV_SSH_PORT" with value "22" tContextLoad_2 set key "ENV_SSH_LOGIN" with value "TOTO" tContextLoad_2 set key "ENV_SSH_MDP" with value "TATA" tContextLoad_2 set key "ENV_SSH_PATH" with value "$WORK/" tContextLoad_2 set key "ENV_DB_NAME" with value "MABASE" tContextLoad_2 set key "ENV_DB_HOST" with value "TEST.MS.FCM" tContextLoad_2 set key "ENV_DB_PORT" with value "1521" tContextLoad_2 set key "ENV_DB_LOGIN" with value "SYSADM" tContextLoad_2 set key "ENV_DB_MDP" with value "SYSADM" tContextLoad_2 set key "ENV_SHDES" with value "ITG" tContextLoad_2 set key "ENV_NB_NODE" with value "4" tContextLoad_2 set key "ENV_HOSTNAME" with value "IN-SOI3WEB" tContextLoad_2 set key "ENV_IS_BATCH" with value "0" tContextLoad_2 set key "ENV_IS_SOI" with value "1" tContextLoad_2 set key "ENV_SSH_PORT" with value "22" tContextLoad_2 set key "ENV_SSH_LOGIN" with value "TOTO" tContextLoad_2 set key "ENV_SSH_MDP" with value "TATA" tContextLoad_2 set key "ENV_SSH_PATH" with value "$WORK/" tContextLoad_2 set key "ENV_DB_NAME" with value "MABASE" tContextLoad_2 set key "ENV_DB_HOST" with value "TEST.MS.FCM" tContextLoad_2 set key "ENV_DB_PORT" with value "1521" tContextLoad_2 set key "ENV_DB_LOGIN" with value "PWD" tContextLoad_2 set key "ENV_DB_MDP" with value "PWD" [statistics] disconnected Job Init_package terminé à 04:23 19/07/2018. [Code sortie=0]
Partager