Project

General

Profile

Tareas #8 » Ejecutar scripts OSS.json

Demo MiGestion365 Admin, 01/12/2026 04:31 PM

 
{
"name": "Ejecutar scripts OSS",
"nodes": [
{
"parameters": {
"options": {}
},
"type": "n8n-nodes-base.emailReadImap",
"typeVersion": 2.1,
"position": [
-880,
96
],
"id": "2169127d-be90-4c0a-96a8-453ece1b0cbe",
"name": "Email Trigger (IMAP)",
"credentials": {
"imap": {
"id": "GSJ2ZZ7l3SuvH1G4",
"name": "IMAP ing en Gmail"
}
}
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "8c572cf9-4be8-467d-a2a8-057ea2b9f835",
"leftValue": "={{$json[\"subject\"].toLowerCase().includes(\"ejecutar\")}}",
"rightValue": "Ejecutar",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
}
},
{
"id": "b92d8e5d-7c8d-41b5-aab3-cd7eabe553de",
"leftValue": "={{$json[\"from\"].toLowerCase().includes(\"roberto.fittipaldi\") \n|| \n $json[\"from\"].toLowerCase().includes(\"jorge.cadavid\")\n|| \n $json[\"from\"].toLowerCase().includes(\"daniel.kippke\")\n|| \n $json[\"from\"].toLowerCase().includes(\"noc_atc\")\n|| \n $json[\"from\"].toLowerCase().includes(\"lucas.gimenez\")\n}}",
"rightValue": "Roberto.Fittipaldi",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
-656,
96
],
"id": "b22be3bd-13d7-4cbd-9aa2-8ea4b40f7a5f",
"name": "If"
},
{
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "loose",
"version": 2
},
"conditions": [
{
"leftValue": "={{$json[\"textPlain\"].toLowerCase().includes(\"upload_ats_historico\") \n}}",
"rightValue": "{{$json[\"from\"].toLowerCase().includes(\"roberto.fittipaldi\") || $json[\"from\"].toLowerCase().includes(\"jorge.cadavid\") }}",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
},
"id": "7a707e56-b992-44ab-a8c7-2652d5e21b9d"
}
],
"combinator": "and"
}
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "loose",
"version": 2
},
"conditions": [
{
"id": "c722f5fc-a19e-4b4e-8ccf-d5305b090097",
"leftValue": "={{$json[\"textPlain\"].toLowerCase().includes(\"bajada_claro\") \n}}",
"rightValue": "hola",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
}
}
],
"combinator": "and"
}
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "loose",
"version": 2
},
"conditions": [
{
"id": "c6473076-e5d8-4a63-9dc8-a259e6d438c3",
"leftValue": "={{$json[\"textPlain\"].toLowerCase().includes(\"upload_cto\")}}",
"rightValue": "",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
}
}
],
"combinator": "and"
}
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "loose",
"version": 2
},
"conditions": [
{
"id": "48e705ec-319f-4a1c-ba42-0d0c3a80d094",
"leftValue": "={{$json[\"textPlain\"].toLowerCase().includes(\"adecuacion_drop_cto\")}}",
"rightValue": "",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
}
}
],
"combinator": "and"
}
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "loose",
"version": 2
},
"conditions": [
{
"id": "19ccdcb8-9337-48a6-a088-45a16947ecec",
"leftValue": "={{$json[\"textPlain\"].toLowerCase().includes(\"oltping\")}}",
"rightValue": "",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
}
}
],
"combinator": "and"
}
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "loose",
"version": 2
},
"conditions": [
{
"id": "9b1b722e-1cd9-4dd2-9325-9a23c66fc0f8",
"leftValue": "={{ \n (\n !$json[\"textPlain\"].toLowerCase().includes(\"adecuacion_drop_cto\") &&\n !$json[\"textPlain\"].toLowerCase().includes(\"upload_cto\") &&\n !$json[\"textPlain\"].toLowerCase().includes(\"bajada_claro\") &&\n !$json[\"textPlain\"].toLowerCase().includes(\"oltping\") &&\n !$json[\"textPlain\"].toLowerCase().includes(\"upload_ats_historico\")\n )\n}}",
"rightValue": "",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
}
}
],
"combinator": "and"
}
}
]
},
"looseTypeValidation": true,
"options": {}
},
"type": "n8n-nodes-base.switch",
"typeVersion": 3.3,
"position": [
-432,
32
],
"id": "fd984603-d64e-4c5b-8046-2b30b41b6b57",
"name": "Switch"
},
{
"parameters": {
"command": "bash /home/ingenieria/upload_ats/upload_ats_historico.sh"
},
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
-208,
-480
],
"id": "53da8cef-d398-4e9b-ae27-1b34b9f32e79",
"name": "Execute upload_ats_historico",
"credentials": {
"sshPassword": {
"id": "ZeqWnW7RKdHGCckJ",
"name": "SSH en pgsql-prod"
}
}
},
{
"parameters": {
"command": "bash /home/ingenieria/bajada_claro/bajada_claro.sh"
},
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
-208,
-240
],
"id": "a0f7d7e8-4413-4136-bd4a-184d708d09dd",
"name": "Execute bajada_claro",
"credentials": {
"sshPassword": {
"id": "ZeqWnW7RKdHGCckJ",
"name": "SSH en pgsql-prod"
}
}
},
{
"parameters": {
"command": "bash /home/ingenieria/upload_cto/upload_cto.sh"
},
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
-208,
-32
],
"id": "8f13dc18-f803-475f-aae8-a58e198ec82d",
"name": "Execute upload_cto",
"credentials": {
"sshPassword": {
"id": "ZeqWnW7RKdHGCckJ",
"name": "SSH en pgsql-prod"
}
}
},
{
"parameters": {
"command": "bash /home/ingenieria/adecuacion_drop_cto/adecuacion_drop_cto.sh"
},
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
-208,
192
],
"id": "dba777c8-b42a-47e9-887a-1dfec14305a6",
"name": "Execute adecuacion_drop_cto",
"credentials": {
"sshPassword": {
"id": "ZeqWnW7RKdHGCckJ",
"name": "SSH en pgsql-prod"
}
}
},
{
"parameters": {
"operation": "executeQuery",
"query": "SELECT 'upload_ats_historico' AS nombre_script,'NO OK' AS is_today WHERE NOT EXISTS (SELECT 1 FROM z_procesos_python.scripts_ejecutados WHERE nombre_script = 'upload_ats_historico' AND ultima_ejecucion >= (NOW() AT TIME ZONE 'America/Argentina/Buenos_Aires') - INTERVAL '5 minutes')\n",
"options": {}
},
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.6,
"position": [
16,
-480
],
"id": "9ed744a2-2d43-4cf7-adbd-808bdc00610b",
"name": "Execute a SQL query",
"alwaysOutputData": true,
"credentials": {
"postgres": {
"id": "MvTDzEXCz8wlb95N",
"name": "Postgres account en pgsql-prd"
}
}
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "2dbc024a-cb61-4bb5-b16d-4f2ac3451b80",
"leftValue": "={{ $('Execute a SQL query').item.json.is_today === \"NO OK\" }}",
"rightValue": "true",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
240,
-480
],
"id": "de23f7c2-b50b-415a-b4cf-e9dce64d6540",
"name": "If1"
},
{
"parameters": {
"operation": "executeQuery",
"query": "SELECT 'bajada_claro' AS nombre_script,'NO OK' AS is_today WHERE NOT EXISTS (SELECT 1 FROM z_procesos_python.scripts_ejecutados WHERE nombre_script = 'bajada_claro' AND ultima_ejecucion >= (NOW() AT TIME ZONE 'America/Argentina/Buenos_Aires') - INTERVAL '5 minutes')\n",
"options": {}
},
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.6,
"position": [
16,
-240
],
"id": "37d49ca2-f636-41b4-a8c5-0d6792fb7c37",
"name": "Execute a SQL query1",
"alwaysOutputData": true,
"credentials": {
"postgres": {
"id": "MvTDzEXCz8wlb95N",
"name": "Postgres account en pgsql-prd"
}
}
},
{
"parameters": {
"fromEmail": "ingenieria.atcarg@gmail.com",
"toEmail": "={{ $('Email Trigger (IMAP)').item.json.from }}",
"subject": "[n8n] Proceso concluido Exitosamente",
"html": "=Se corrio exitosamente el proceso:<br>\n<p>{{ $('Email Trigger (IMAP)').item.json[\"textPlain\"].toLowerCase().includes(\"upload_ats_historico\") ? \"upload_ats_historico\" : \"\" }}\n\n{{ $('Email Trigger (IMAP)').item.json[\"textPlain\"].toLowerCase().includes(\"bajada_claro\") ? \"bajada_claro\" : \"\" }}\n\n{{ $('Email Trigger (IMAP)').item.json[\"textPlain\"].toLowerCase().includes(\"upload_cto\") ? \"upload_cto\" : \"\" }}\n\n{{ $('Email Trigger (IMAP)').item.json[\"textPlain\"].toLowerCase().includes(\"adecuacion_drop_cto\") ? \"adecuacion_drop_cto\" : \"\" }}\n</p>\n<br>Las tablas se encuentran actualizadas en POstgres Prod.",
"options": {
"appendAttribution": true,
"attachments": "data"
}
},
"type": "n8n-nodes-base.emailSend",
"typeVersion": 2.1,
"position": [
464,
0
],
"id": "03b180a4-ae18-4299-8170-6268fac2a9ef",
"name": "Send email - Ok",
"webhookId": "0a9dce20-5f3c-4e88-b473-f54433b2f953",
"credentials": {
"smtp": {
"id": "h1ZlPUDKXON8FENj",
"name": "SMTP ing en Gmail"
}
}
},
{
"parameters": {
"fromEmail": "ingenieria.atcarg@gmail.com",
"toEmail": "={{ $('Email Trigger (IMAP)').item.json.from }}",
"subject": "[n8n] Falló la ejecución del proceso",
"html": "=Falló la ejecución del proceso:<br>\n<p>{{ $('Email Trigger (IMAP)').item.json[\"textPlain\"].toLowerCase().includes(\"upload_ats_historico\") ? \"upload_ats_historico\" : \"\" }}\n\n{{ $('Email Trigger (IMAP)').item.json[\"textPlain\"].toLowerCase().includes(\"bajada_claro\") ? \"bajada_claro\" : \"\" }}\n\n{{ $('Email Trigger (IMAP)').item.json[\"textPlain\"].toLowerCase().includes(\"upload_cto\") ? \"upload_cto\" : \"\" }}\n\n{{ $('Email Trigger (IMAP)').item.json[\"textPlain\"].toLowerCase().includes(\"adecuacion_drop_cto\") ? \"adecuacion_drop_cto\" : \"\" }}\n</p>\n<br>Revisar el origen de los datos o contactarse con el área.",
"options": {
"appendAttribution": true,
"attachments": "data"
}
},
"type": "n8n-nodes-base.emailSend",
"typeVersion": 2.1,
"position": [
464,
-192
],
"id": "e7573f5b-34d1-4bca-93dc-5be93e8420bf",
"name": "Send email - Falla",
"webhookId": "0a9dce20-5f3c-4e88-b473-f54433b2f953",
"credentials": {
"smtp": {
"id": "h1ZlPUDKXON8FENj",
"name": "SMTP ing en Gmail"
}
}
},
{
"parameters": {
"operation": "executeQuery",
"query": "SELECT 'upload_cto' AS nombre_script,'NO OK' AS is_today WHERE NOT EXISTS (SELECT 1 FROM z_procesos_python.scripts_ejecutados WHERE nombre_script = 'upload_cto' AND ultima_ejecucion >= (NOW() AT TIME ZONE 'America/Argentina/Buenos_Aires') - INTERVAL '5 minutes')",
"options": {}
},
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.6,
"position": [
16,
-32
],
"id": "9c62c799-f918-4d59-9d6d-55043309a8ed",
"name": "Execute a SQL query2",
"alwaysOutputData": true,
"credentials": {
"postgres": {
"id": "MvTDzEXCz8wlb95N",
"name": "Postgres account en pgsql-prd"
}
}
},
{
"parameters": {
"operation": "executeQuery",
"query": "SELECT 'adecuacion_drop_cto' AS nombre_script,'NO OK' AS is_today WHERE NOT EXISTS (SELECT 1 FROM z_procesos_python.scripts_ejecutados WHERE nombre_script = 'adecuacion_drop_cto' AND ultima_ejecucion >= (NOW() AT TIME ZONE 'America/Argentina/Buenos_Aires') - INTERVAL '5 minutes')",
"options": {}
},
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.6,
"position": [
16,
192
],
"id": "393686bf-f523-4fa4-bd8f-d9ea76200dfd",
"name": "Execute a SQL query3",
"alwaysOutputData": true,
"credentials": {
"postgres": {
"id": "MvTDzEXCz8wlb95N",
"name": "Postgres account en pgsql-prd"
}
}
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "2dbc024a-cb61-4bb5-b16d-4f2ac3451b80",
"leftValue": "={{ $('Execute a SQL query1').item.json.is_today === \"NO OK\" }}",
"rightValue": "true",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
240,
-240
],
"id": "b37a40de-a5d2-4f4d-b204-6d810e261654",
"name": "If3"
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "2dbc024a-cb61-4bb5-b16d-4f2ac3451b80",
"leftValue": "={{ $('Execute a SQL query2').item.json.is_today === \"NO OK\" }}",
"rightValue": "true",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
240,
-32
],
"id": "c9a4af71-f1d8-400c-897f-13bda5a26608",
"name": "If4"
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "2dbc024a-cb61-4bb5-b16d-4f2ac3451b80",
"leftValue": "={{ $('Execute a SQL query3').item.json.is_today === \"NO OK\" }}",
"rightValue": "true",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
240,
192
],
"id": "ac673d0d-8bb4-429b-ab14-d7639ea1aad7",
"name": "If5"
},
{
"parameters": {
"fromEmail": "ingenieria.atcarg@gmail.com",
"toEmail": "={{ $('Email Trigger (IMAP)').item.json.from }}",
"subject": "[n8n] Script NO válido",
"html": "=Se envió a ejecutar un script NO existente. La lista de los scripts válidos es:\n<br>\n<br>upload_ats_historico\n<br>bajada_claro\n<br>upload_cto\n<br>adecuacion_drop_cto\n<br>oltping\n\n",
"options": {
"appendAttribution": true,
"attachments": "data"
}
},
"type": "n8n-nodes-base.emailSend",
"typeVersion": 2.1,
"position": [
-224,
1056
],
"id": "4fb88746-1d09-4347-8892-bbd81c73698a",
"name": "Send email - Script NO válido",
"webhookId": "0a9dce20-5f3c-4e88-b473-f54433b2f953",
"credentials": {
"smtp": {
"id": "h1ZlPUDKXON8FENj",
"name": "SMTP ing en Gmail"
}
}
},
{
"parameters": {
"options": {}
},
"type": "n8n-nodes-base.splitInBatches",
"typeVersion": 3,
"position": [
240,
624
],
"id": "7116cf27-919e-4ce5-ab74-614a915d6c44",
"name": "Loop Over Items"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "0e48f3d8-a914-4835-b176-d3417dfbcde6",
"name": "IPS IHUB",
"value": "={{ $item(0).$json[\"IPS_IHUB\"] }}",
"type": "string"
},
{
"id": "fe7de30e-3ea1-4e8b-804e-ea17ecfc28ae",
"name": "IPS NEX HOP",
"value": "={{$json[\"IPS_NEX\"]}}",
"type": "string"
},
{
"id": "b46f4649-8835-4366-9c8f-d0a488b03ca4",
"name": "Code",
"value": "={{ $json.code }}",
"type": "string"
},
{
"id": "158d271a-a203-4c17-9962-d45d5617cb26",
"name": "Signal",
"value": "={{ $json.signal }}",
"type": "string"
},
{
"id": "61028b23-e311-4ec8-8418-69a652c469c9",
"name": "duration_ms",
"value": "={{$json.duration || 0}}",
"type": "string"
}
]
},
"includeOtherFields": true,
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
880,
688
],
"id": "bbad03e8-7f52-4058-85cc-d8a944447738",
"name": "Edit Fields"
},
{
"parameters": {
"binaryPropertyName": "report",
"options": {
"fileName": "={{ $now.toFormat('yyyy-LL-dd') }}_reporte_ping.csv",
"headerRow": true
}
},
"type": "n8n-nodes-base.convertToFile",
"typeVersion": 1.1,
"position": [
688,
416
],
"id": "7c4abe17-46db-4c44-89e8-aed65c3600f9",
"name": "Convert to File"
},
{
"parameters": {
"fromEmail": "ingenieria.atcarg@gmail.com",
"toEmail": "={{ $('Email Trigger (IMAP)').item.json.from }}",
"subject": "=Resultado ping/ssh {{ $now.toFormat('yyyy-LL-dd') }}",
"html": "Resultado del PING a las OLT",
"options": {
"attachments": "report"
}
},
"type": "n8n-nodes-base.emailSend",
"typeVersion": 2.1,
"position": [
912,
416
],
"id": "9a41d130-b7ce-489e-b4d8-817bc2fff967",
"name": "Send email",
"webhookId": "c21f682f-e1b7-4672-8591-5bba0d7f9ccb",
"credentials": {
"smtp": {
"id": "h1ZlPUDKXON8FENj",
"name": "SMTP ing en Gmail"
}
}
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "21fc5795-b87d-4f5b-80e4-97b592a3ad12",
"name": "ES01_01",
"value": "{\"IPS_IHUB\": \"10.52.0.98\", \"IPS_NEX\": \"172.16.21.1\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "f3376456-bd2b-4a20-bb64-a92791e303f5",
"name": "ES01_02",
"value": "{\"IPS_IHUB\": \"10.52.0.99\", \"IPS_NEX\": \"172.16.21.9\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "c2792a24-ea27-45fd-b50f-61a64a832fad",
"name": "SF01_01",
"value": "{\"IPS_IHUB\": \"10.52.0.66\", \"IPS_NEX\": \"172.16.21.17\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "8dbc778c-7c5e-439e-a320-7277c4875bf0",
"name": "SF01_02",
"value": "{\"IPS_IHUB\": \"10.52.0.66\", \"IPS_NEX\": \"172.16.21.17\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "fc118122-bf73-40a9-8bf6-c8bdc46a15d0",
"name": "SF01_03",
"value": "{\"IPS_IHUB\": \"10.52.0.68\", \"IPS_NEX\": \"172.16.21.33\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "027bed6c-e568-4955-b957-844545908aaa",
"name": "SF01_04",
"value": "{\"IPS_IHUB\": \"10.52.0.69\", \"IPS_NEX\": \"172.16.21.41\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "a648bf4a-3391-4c94-86ea-b3b609736560",
"name": "SF01_05",
"value": "{\"IPS_IHUB\": \"10.52.0.70\", \"IPS_NEX\": \"172.16.21.49\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "ee7891be-5f17-427f-9b37-d9b91bc60bf2",
"name": "SF01_06",
"value": "{\"IPS_IHUB\": \"10.52.0.71\", \"IPS_NEX\": \"172.16.21.57\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "87fdbb6a-71ad-4725-9347-831ff5172770",
"name": "SI01_01",
"value": "{\"IPS_IHUB\": \"10.52.0.230\", \"IPS_NEX\": \"172.16.23.49\", \"INSTANCE\": \"v1~IPTV-TASA\"}",
"type": "string"
},
{
"id": "0ef406f0-0a84-4974-a22c-db581fc53142",
"name": "SI01_02",
"value": "{\"IPS_IHUB\": \"10.52.0.227\", \"IPS_NEX\": \"172.16.23.57\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "adfc48cd-bb7f-4278-a381-546b5ca20383",
"name": "SI01_03",
"value": "{\"IPS_IHUB\": \"10.52.0.228\", \"IPS_NEX\": \"172.16.23.65\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "12c68a23-d219-4fe1-8df4-d66599a2c649",
"name": "SI01_04",
"value": "{\"IPS_IHUB\": \"10.52.0.229\", \"IPS_NEX\": \"172.16.23.73\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "53ec7c84-c52f-42d1-ab13-0866584458ae",
"name": "SI02_01",
"value": "{\"IPS_IHUB\": \"10.52.1.2\", \"IPS_NEX\": \"172.16.23.81\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "ce6215e0-4d3f-47f1-9488-7d5d8d7e22cd",
"name": "SI02_02",
"value": "{\"IPS_IHUB\": \"10.52.1.3\", \"IPS_NEX\": \"172.16.23.89\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "0094dc2e-5ce7-4aa5-a411-71ad5daee9da",
"name": "SI02_03",
"value": "{\"IPS_IHUB\": \"10.52.1.4\", \"IPS_NEX\": \"172.16.23.97\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "d4f17a33-2e17-42f2-b04e-fbd12de0226f",
"name": "SI02_04",
"value": "{\"IPS_IHUB\": \"10.52.1.5\", \"IPS_NEX\": \"172.16.23.105\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "5a76b5dc-1914-4f8d-a319-3bbc79661c8f",
"name": "SM01_01",
"value": "{\"IPS_IHUB\": \"10.52.0.2\", \"IPS_NEX\": \"172.16.21.65\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "8a8db6a8-8e8e-4916-889b-194bdb012aab",
"name": "SM01_02",
"value": "{\"IPS_IHUB\": \"10.52.0.3\", \"IPS_NEX\": \"172.16.21.73\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "1df54707-1077-4691-a5fb-b8983b0fcf64",
"name": "SM01_03",
"value": "{\"IPS_IHUB\": \"10.52.0.4\", \"IPS_NEX\": \"172.16.21.81\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "464ab8c7-3e5d-4ed3-844b-a685bb58ffec",
"name": "SM01_04",
"value": "{\"IPS_IHUB\": \"10.52.0.5\", \"IPS_NEX\": \"172.16.21.89\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "a2a19469-c907-44bc-b6bf-18194fe678fc",
"name": "SM01_05",
"value": "{\"IPS_IHUB\": \"10.52.0.6\", \"IPS_NEX\": \"172.16.21.97\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "554b430a-60c8-4cdf-8592-691a7deeb809",
"name": "SM01_06",
"value": "{\"IPS_IHUB\": \"10.52.0.7\", \"IPS_NEX\": \"172.16.21.105\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "aec14405-c64b-4b48-abd8-c85014970db5",
"name": "SM02_01",
"value": "{\"IPS_IHUB\": \"10.52.0.34\", \"IPS_NEX\": \"172.16.21.113\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "dea05efa-370e-4407-8647-4211fb114563",
"name": "SM02_02",
"value": "{\"IPS_IHUB\": \"10.52.0.35\", \"IPS_NEX\": \"172.16.21.121\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "a2a24110-8be1-4c42-8a27-466090e212f5",
"name": "SM02_03",
"value": "{\"IPS_IHUB\": \"10.52.0.36\", \"IPS_NEX\": \"172.16.21.129\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "b4289cf8-0447-474b-a94c-960385f779f4",
"name": "SM02_04",
"value": "{\"IPS_IHUB\": \"10.52.0.37\", \"IPS_NEX\": \"172.16.21.137\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "25772abe-f451-4f22-adad-dc5c18fcd5c3",
"name": "SM02_05",
"value": "{\"IPS_IHUB\": \"10.52.0.38\", \"IPS_NEX\": \"172.16.21.145\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "a7448424-0074-41e5-9ddd-19c51f98c4d1",
"name": "SM02_06",
"value": "{\"IPS_IHUB\": \"10.52.0.39\", \"IPS_NEX\": \"172.16.21.153\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "da61a07f-2c15-4343-90de-fd074bbe52d1",
"name": "TG01_01",
"value": "{\"IPS_IHUB\": \"10.52.0.130\", \"IPS_NEX\": \"172.16.21.161\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "bb34e94c-49b0-4062-8e3a-510b727e4c62",
"name": "TG01_02",
"value": "{\"IPS_IHUB\": \"10.52.0.131\", \"IPS_NEX\": \"172.16.21.169\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "4f11ad41-f4b8-4d1f-b375-7b48a8bd0356",
"name": "TG01_03",
"value": "{\"IPS_IHUB\": \"10.52.0.132\", \"IPS_NEX\": \"172.16.21.177\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "932c1c14-9832-4c8d-9b8d-c6ab02a7eea1",
"name": "TG01_04",
"value": "{\"IPS_IHUB\": \"10.52.0.133\", \"IPS_NEX\": \"172.16.21.185\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "b520d6ec-3788-4679-ab1e-a277d89f81bc",
"name": "TG01_05",
"value": "{\"IPS_IHUB\": \"10.52.0.134\", \"IPS_NEX\": \"172.16.21.193\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "7d7796f9-95eb-403e-8933-424d192b1691",
"name": "TG02_01",
"value": "{\"IPS_IHUB\": \"10.52.0.162\", \"IPS_NEX\": \"172.16.21.201\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "cba111c0-adea-4179-9420-7641c533a791",
"name": "TG02_02",
"value": "{\"IPS_IHUB\": \"10.52.0.163\", \"IPS_NEX\": \"172.16.21.209\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "5d8afb7b-0ed1-47de-88bb-fcafa1a04452",
"name": "TG02_03",
"value": "{\"IPS_IHUB\": \"10.52.0.164\", \"IPS_NEX\": \"172.16.21.217\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "181ac593-0d64-4b6d-b2bc-102b7d49818c",
"name": "TG02_04",
"value": "{\"IPS_IHUB\": \"10.52.0.165\", \"IPS_NEX\": \"172.16.21.225\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "ee264e9b-91dd-4e54-a926-2e4c58b37c52",
"name": "TG02_05",
"value": "{\"IPS_IHUB\": \"10.52.0.166\", \"IPS_NEX\": \"172.16.21.233\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "ca7efe04-42e0-4975-99fe-991a30d10e85",
"name": "TG02_06",
"value": "{\"IPS_IHUB\": \"10.52.0.167\", \"IPS_NEX\": \"172.16.21.241\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "b782ab91-1d7d-4a11-8d4a-ed745a6a1104",
"name": "VL01_01",
"value": "{\"IPS_IHUB\": \"10.52.0.194\", \"IPS_NEX\": \"172.16.21.249\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "c899325c-4688-47fa-8ced-963c2d21b7c9",
"name": "VL01_02",
"value": "{\"IPS_IHUB\": \"10.52.0.195\", \"IPS_NEX\": \"172.16.23.1\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "0be301f0-2f96-4a4e-9661-7207506b36cf",
"name": "VL01_03",
"value": "{\"IPS_IHUB\": \"10.52.0.196\", \"IPS_NEX\": \"172.16.23.9\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "bcc2e2a6-85f7-4a51-aee0-d534c94b2436",
"name": "MR01_01",
"value": "{\"IPS_IHUB\": \"10.57.0.17\", \"IPS_NEX\": \"172.16.17.221\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "550a049a-2e69-4e0a-abd3-ba0da48015fb",
"name": "MR01_02",
"value": "{\"IPS_IHUB\": \"10.57.0.18\", \"IPS_NEX\": \"172.16.17.225\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "a030880c-103a-4d9d-99b9-e49ce16efa0f",
"name": "MR01_03",
"value": "{\"IPS_IHUB\": \"10.57.0.19\", \"IPS_NEX\": \"172.16.17.229\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "dd5a36e9-f779-4b3d-9562-7fb04717aa08",
"name": "SI03_01",
"value": "{\"IPS_IHUB\": \"10.52.1.34\", \"IPS_NEX\": \"172.16.23.17\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "1ca82054-2f67-4f4e-a54a-6cc9aaf0802c",
"name": "SI03_02",
"value": "{\"IPS_IHUB\": \"10.52.1.35\", \"IPS_NEX\": \"172.16.23.25\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "30996c10-991e-4881-b450-fd3ec31fb296",
"name": "SI03_03",
"value": "{\"IPS_IHUB\": \"10.52.1.36\", \"IPS_NEX\": \"172.16.23.33\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
},
{
"id": "5a67a7c6-0685-4f24-a2a3-74a5512075d0",
"name": "SI03_04",
"value": "{\"IPS_IHUB\": \"10.52.1.37\", \"IPS_NEX\": \"172.16.23.41\", \"INSTANCE\": \"v1~VPRN\"}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
-208,
624
],
"id": "7f875e01-fa62-484d-8a35-317b3f5fdd5f",
"name": "Edit Fields2"
},
{
"parameters": {
"jsCode": "// Obtenemos el objeto original\nconst devicesObj = items[0].json;\n\n// Creamos un array con nombre y datos parseados\nconst devicesArray = Object.entries(devicesObj).map(([name, data]) => {\n const parsed = JSON.parse(data);\n parsed.deviceName = name; // Agregamos el nombre del dispositivo\n return parsed;\n});\n\n// Devolvemos cada dispositivo como un item separado\nreturn devicesArray.map(device => ({ json: device }));\n"
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
16,
624
],
"id": "514845b4-c9c8-407f-a39e-653f12925729",
"name": "Code in JavaScript3",
"alwaysOutputData": false
},
{
"parameters": {
"command": "=printf 'ping {{$json[\"IPS_NEX\"]}} router-instance {{$json[\"INSTANCE\"]}}\\nlogout\\n' | timeout 30s sshpass -p 'isamcli!' ssh -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa -o StrictHostKeyChecking=accept-new cli_user@{{$json[\"IPS_IHUB\"]}} -p 922\n"
},
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
464,
704
],
"id": "f196864f-ec0e-48ef-b04d-cf81d7e5bc0e",
"name": "Execute a command1",
"credentials": {
"sshPassword": {
"id": "QTHOqXFRYZTx9Odf",
"name": "SSH en n8n"
}
}
},
{
"parameters": {
"mode": "combine",
"combineBy": "combineByPosition",
"options": {}
},
"type": "n8n-nodes-base.merge",
"typeVersion": 3.2,
"position": [
688,
704
],
"id": "35510dc1-f63b-41b7-841e-3905c6c63fe2",
"name": "Merge"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "4b8ce726-838d-4b1c-84ad-6af3b1b999ae",
"name": "IPS_IHUB",
"value": "={{$json[\"IPS_IHUB\"]}}",
"type": "string"
},
{
"id": "afee9d0b-69af-4eab-935f-56b0b7b75e78",
"name": "IPS_NEX",
"value": "={{$json[\"IPS_NEX\"]}}",
"type": "string"
},
{
"id": "e5be7f3b-1857-4c94-9d5e-b44379c42b1c",
"name": "INSTANCE",
"value": "={{$json[\"INSTANCE\"]}}",
"type": "string"
},
{
"id": "8b8d9bd2-af57-4c8b-a3a7-9fc3bea83a19",
"name": "deviceName",
"value": "={{$json[\"deviceName\"]}}",
"type": "string"
},
{
"id": "a29d566b-803d-40bd-8bde-595a24a57537",
"name": "code",
"value": "={{$json[\"code\"]}}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
464,
416
],
"id": "fa8a8e44-6d50-4b08-9722-6fbb141d5a0a",
"name": "Edit Fields3"
}
],
"pinData": {
"Email Trigger (IMAP)": [
{
"json": {
"textHtml": "<html xmlns:o=\"urn:schemas-microsoft-com:office:office\" xmlns:w=\"urn:schemas-microsoft-com:office:word\" xmlns:m=\"http://schemas.microsoft.com/office/2004/12/omml\" xmlns=\"http://www.w3.org/TR/REC-html40\">\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=us-ascii\">\r\n<meta name=\"Generator\" content=\"Microsoft Word 15 (filtered medium)\">\r\n<style><!--\r\n/* Font Definitions */\r\n@font-face\r\n\t{font-family:\"Cambria Math\";\r\n\tpanose-1:2 4 5 3 5 4 6 3 2 4;}\r\n@font-face\r\n\t{font-family:Calibri;\r\n\tpanose-1:2 15 5 2 2 2 4 3 2 4;}\r\n@font-face\r\n\t{font-family:Aptos;}\r\n/* Style Definitions */\r\np.MsoNormal, li.MsoNormal, div.MsoNormal\r\n\t{margin:0in;\r\n\tfont-size:12.0pt;\r\n\tfont-family:\"Aptos\",sans-serif;\r\n\tmso-ligatures:standardcontextual;}\r\nspan.EmailStyle19\r\n\t{mso-style-type:personal-reply;\r\n\tfont-family:\"Aptos\",sans-serif;\r\n\tcolor:windowtext;}\r\n.MsoChpDefault\r\n\t{mso-style-type:export-only;\r\n\tfont-size:10.0pt;\r\n\tmso-ligatures:none;}\r\n@page WordSection1\r\n\t{size:8.5in 11.0in;\r\n\tmargin:1.0in 1.0in 1.0in 1.0in;}\r\ndiv.WordSection1\r\n\t{page:WordSection1;}\r\n--></style>\r\n</head>\r\n<body lang=\"EN-US\" link=\"#467886\" vlink=\"#96607D\" style=\"word-wrap:break-word\">\r\n<div class=\"WordSection1\">\r\n<p class=\"MsoNormal\"><span style=\"font-size:11.0pt\"><o:p>&nbsp;</o:p></span></p>\r\n<p class=\"MsoNormal\"><span style=\"font-size:11.0pt\"><o:p>&nbsp;</o:p></span></p>\r\n<div>\r\n<div style=\"border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in\">\r\n<p class=\"MsoNormal\"><b><span style=\"font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;mso-ligatures:none\">From:</span></b><span style=\"font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;mso-ligatures:none\"> Roberto Fittipaldi\r\n<br>\r\n<b>Sent:</b> Friday, November 7, 2025 9:08 AM<br>\r\n<b>To:</b> ingenieria.atcarg@gmail.com<br>\r\n<b>Subject:</b> Ejecutar<o:p></o:p></span></p>\r\n</div>\r\n</div>\r\n<p class=\"MsoNormal\"><o:p>&nbsp;</o:p></p>\r\n<p class=\"MsoNormal\"><span style=\"font-size:11.0pt\">Cualquier cosa<o:p></o:p></span></p>\r\n</div>\r\n</body>\r\n</html>\r\n",
"textPlain": "\r\n\r\nFrom: Roberto Fittipaldi\r\nSent: Friday, November 7, 2025 9:08 AM\r\nTo: ingenieria.atcarg@gmail.com\r\nSubject: Ejecutar\r\n\r\nCualquier cosa\r\n",
"metadata": {
"delivered-to": "ingenieria.atcarg@gmail.com",
"received": "by 2002:a17:505:4f47:b0:1d3d:ed5c:f3b6 with SMTP id fo7csp1719123njc; Fri, 7 Nov 2025 04:16:28 -0800 (PST)",
"x-google-smtp-source": "AGHT+IF2Lh0pGbrvlwOzLxUWcHchErh84wZa+Dv9X8N2kIiBj2EF8dZnu6vRqhT3NkmmPl4I4bWH",
"x-received": "by 2002:a17:90b:51c7:b0:340:a961:80c9 with SMTP id 98e67ed59e1d1-3434c575692mr3358245a91.30.1762517788682; Fri, 07 Nov 2025 04:16:28 -0800 (PST)",
"arc-seal": "i=2; a=rsa-sha256; t=1762517788; cv=pass; d=google.com; s=arc-20240605; b=ZLkB+4j/LN1Df5JaDloxMJvXOB/hfiHl+B2CRNrdj27TPlmJXEDAKvIVA0pVV4agcu K30vFNO3/Z5Td+UDnxRz2mB7LblWB7CJG8JGUkDFPWh+wJH8SuQCNTO1HRrfx7xd5IAo tVKXx8hyKvKtAR+stlGH0mVUCS++1KxSdSjoxjswWVISdrQrETPToBbs3uIxTTtcg+PE K8EiFqB4Csk+8Px2SRJph66BGLzX88gQQ6nPG9MRxvI2oZjXqzHsFy2xywIVMY5Pm4zj HkKKqf8udgSNgiCa17kO/dn/rhtH3TCzyHiRFy3w+YXA2cJDjslqsfSQnwD5SzQjsln3 N7NQ==",
"arc-message-signature": "i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=mime-version:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:to :from:dkim-signature; bh=XrSZjNnXFhaDV13kH9AUHEY+K2kgwH9X9Ym+iip1rB8=; fh=RTrx5klsXlSIj9/n2SGZTF+DUMzJRRmVD8tvGsXvz28=; b=QbKHOcB0HE6B+umCTebx+R/ilV73YMRSE9RMkjqc7EwFiYtww67DPVEFF57A/xBRZn g7WJqGeWYVbi3i2YJ+7cn9e3NjNA6p2D4DNsV2XL69Lldj2tWm+7+SQWx4FgKWVWPOAA +NUhNjn1klDjNr0p7wH33peLpYn+L6ElHjW7YaXzkAB9CSJMn8a7AFpYM7VzpZjbDG90 ZUur1dxP60hEVJFqZctbxarFy2tuZ2F/ia+hoROcTsUdqVeVrbnNUb1iHgS/FVMLtf2j x6e7oHDz6TeRp9wVVyCkboNB9Bpp4ZAPbEKGvMXzjth8XDJ8tBhBp3Upy1tFJRz/AZ5y 6kjg==; dara=google.com",
"arc-authentication-results": "i=2; mx.google.com; dkim=pass header.i=@americantower.com header.s=selector1 header.b=VKwQsAwl; arc=pass (i=1 spf=pass spfdomain=americantower.com dkim=pass dkdomain=americantower.com dmarc=pass fromdomain=americantower.com); spf=pass (google.com: domain of roberto.fittipaldi@americantower.com designates 2a01:111:f403:c105::7 as permitted sender) smtp.mailfrom=Roberto.Fittipaldi@americantower.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=americantower.com",
"return-path": "<Roberto.Fittipaldi@americantower.com>",
"received-spf": "pass (google.com: domain of roberto.fittipaldi@americantower.com designates 2a01:111:f403:c105::7 as permitted sender) client-ip=2a01:111:f403:c105::7;",
"authentication-results": "mx.google.com; dkim=pass header.i=@americantower.com header.s=selector1 header.b=VKwQsAwl; arc=pass (i=1 spf=pass spfdomain=americantower.com dkim=pass dkdomain=americantower.com dmarc=pass fromdomain=americantower.com); spf=pass (google.com: domain of roberto.fittipaldi@americantower.com designates 2a01:111:f403:c105::7 as permitted sender) smtp.mailfrom=Roberto.Fittipaldi@americantower.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=americantower.com",
"dkim-signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=americantower.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XrSZjNnXFhaDV13kH9AUHEY+K2kgwH9X9Ym+iip1rB8=; b=VKwQsAwlKKugbCdh6olJv8bJkb8uBiV+WqeKXgKQ36k36ZVm6HqzvrPKIbDANMv4WfZGgwVrwJbmyg0xmv4Fwvw6RTqk7Ug4JxnZkl41NNdshR0SFf+2NJCK3UjiqhXLNX95ulAYSDBcYNcgZHY8cLCMekuAGlppVH+provHnlc=",
"thread-topic": "Ejecutar",
"thread-index": "AdxP3xtBMaanC5ycR+ayjuei+dZ0ygAATf5A",
"message-id": "<BL3PR02MB8916D47BB41A028FCA285B5B9BC3A@BL3PR02MB8916.namprd02.prod.outlook.com>",
"references": "<BL3PR02MB8916CD455558ADB789B971AD9BC3A@BL3PR02MB8916.namprd02.prod.outlook.com>",
"in-reply-to": "<BL3PR02MB8916CD455558ADB789B971AD9BC3A@BL3PR02MB8916.namprd02.prod.outlook.com>",
"accept-language": "en-US",
"content-language": "en-US",
"x-ms-has-attach": "",
"x-ms-tnef-correlator": "",
"x-ms-publictraffictype": "Email",
"x-ms-traffictypediagnostic": "BL3PR02MB8916:EE_|SA3PR02MB9346:EE_",
"x-ms-office365-filtering-correlation-id": "dbcd7da8-34dd-4085-d449-08de1df7776c",
"x-ms-exchange-senderadcheck": "1",
"x-ms-exchange-antispam-relay": "0",
"x-microsoft-antispam": "BCL:0;ARA:13230040|376014|1800799024|366016|8096899003|38070700021|7053199007;",
"x-microsoft-antispam-message-info": "YlQ3yc6i+rTfYKOdU40uc2e5XtxH7aadfv1SbPTrmXVG4Awjb0VLRulV4ASNlYMPSSKJiz4ft0w+17tJ9dLx8jFYJTgoqwS+EsRJP2sJltaZ/J44QzW3OUMFrUCxH60dDd6JERkI77gqdkCGQaD/lnpDMgskSubW57S1oxGOszBLxT/UNlKyvklC3qfN7KX2tQ9eO3GfCt+ZAL8Rd7+xYjdbkoiwjP8p7tsUQgWZB4JY8qpd5KgSvZQS9dzurs+AXzk+bUMzLQazTgwc2DJK5av/rTBc6YY5T3XDYgDPk3RxIQ1iferBtyybzPIUv83Kqu1m9On4VEVHgoUmyIDbn2ybVPKOQsOk6xsY1s6HXmDAx2sHhcQUDh3Iu3bXVW2SwtkS785OXe+qHdHnJSqKu1/ei+HXezXIYucnap5cF8WZbcLyZ8gLbqfSADIXxOQiqmXx7CqYIRWlRo2rYe0vrS5x77gK7VbiSr3wvxdA5xw/74pXrEDlbzF17u8A+vLSJWO6qBqQlbW4cMNmxrnoN6ty/GXb31aZrVEs0r7SZoARypXxJd73rI99JyehxHb+n8ayXYJf598VrWB0B9t0bPT9vVJ3FWagg4SEKDiI9NtxEKlTM92REPv9DLhF/kWPec/Xntq0NiiSjj8TjeuIQdnr6QafKHP3V4kW/9PFTjgGaAMX6VqgfaGWN5BM22pC44gLBO0L5LPo8Q+KV04XjucdO/vawya/E7bCwp7Qcd0/XvgRVtWlOsVNO0yhSS5pyqSMEe5+OhW3qIGFz+vLLtmSeNeGmbPOi0o/PblIzH6WSFuRWOdnyZNU14VdGFAePKqBoBMSljP6h47Fj4rSle14CywW2uuC0cf1KSYzOoCNEwaZohHfzkBYFZAMq7f44GpU+FW+Z/jnQoHBsjZ0VGSnDqGRepAOudDkTRNRG81KULWdHUOHEd+LpaNbXCuxOnU6MQJmmLBy0Yt8hmam2iLYtBi0H3/0ookn+svDJa17/Pn145ViKSbmi+lDZL3Vq7Vr17VKIroIFXYWuBURBzfntilh8Ru1dLMBeOD5VhUp/3cqy9BGi20G+PeJDEc7etwNUncdj1F4uwN0gIGdISBJbmZuTI4mMFL6gIeuEVrncbbhp5z5yfB2c7Ml1KYGfd4DUE0U3O15VZoyewojciM5jbO6bTpLBe6GAVWoP9XOgT3xRC3Y0DHHQ3cxNjhfvZMiLHKnCMyvn1f8Hh2In9FSbAoyvHr+c4v4IAFrWOkU4E/Z3BWNACoyxDnmXnP0cYnT2ttNUnfLi95aeBAmRUJH/x7IuLHG7gIUcze1hxJs81Fzq7fFvT9ywm7imOHvZViL9SHckITnr32Hq+quAm0fn5+Oyd6ir38fFrR5g09o5Kszk40uzjZzZZpbdx6Z1qNmXMlG6b7st9WECVa0QE4dmvqvAnSWFrBGoxUo4zEu1INiJNx62NM5SMWtpgtNUITGsKu31HeOE6RZrsvaWI3RVG/Z/8gMaiyJkbe4ZfcB/pb9mRonCX7GSuoP/AZt",
"x-forefront-antispam-report": "CIP:255.255.255.255;CTRY:;LANG:es;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL3PR02MB8916.namprd02.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(366016)(8096899003)(38070700021)(7053199007);DIR:OUT;SFP:1101;",
"x-ms-exchange-antispam-messagedata-chunkcount": "1",
"x-ms-exchange-antispam-messagedata-0": "PkhwaCcya8kISTqd2V7dsTVN2eG3mqkeVfDXTkkE0W1+zor5zeDb3iUT70Yz0+qj/mfD1+N3RxZLa8qVdOxtDh+HdWvdeEoZa3mmSnMdz8EwypJ1lyfBl8D4RkK4nbMR5gSlTmPc/7KfqaGxWTyue/RoaBoTsUxuHzEFKrfY1eLvBfwfoofD4HrhFvFQrOgLuZUviNmN3S1RWfVpvn1qNy+t7Zotq239xlrU5+ShKT97tdT2ukknxFLRuzIE32JsZm8SrvU5BC3lyni+gaeOJVg6qjApf6fZLsH9mWHGPmLUQNxhDkQfOQt/HZ6T6put1kFsZFkWzYw2kZmqX04E0GnVSBSs75ybl8UEhW811C1bN/v6TIqJNLY07yuC919mAuiArWXkfzPVgFUrpiqvjlr2cPg+JNoWwUfr/GgUP9ASom2epoAtYGuAKa8B1MNGBg5r1tGLi7eLvCUIuZgkox5XfFATJ+HO0Epp6wXqMCvuLDoJ8g1cokeXY/GiRr7yJJddyk3fd24AYF9lew7EbJD1l7JkiGpUP9QOQ0fvIh5SGn+MA9XBM45mKGrmQW41c8oGaFohs9Eb9iDcL/WMuyFTYn6FkX6ZlkXvPzPr1BqwogbxGXdXKFelY5XoIcIhztf0B/1LezGkUCKRhO2WaePPOhIlhvbLcDHNL6nil74TDx4sTFo1se7a//fVFkoUtuFqfc4N8n7K0vE+WKM9q2WkNNLCEUHmNE3thfQ30VBYSIJoJibzcZy9wKJGBvH+nWK2UmFq5M9veELS0nx+59/Sbi1k5qUlsjsv53mNJW9W/HMSCHzvN3OkUP7AfgoCK0M6VL3BDfjjWTG8Eblco/foEZHIUl2Pkh7kt6kQi4uZPdVZFtqeaam6onDAvVxGhlQ9BowayghNtCtV5LQVhVeSQrJ4vP4i/uBwhmw+WqrGYV6kghXV/HbdUlUnEn+X/8agWWQsMH6XUSILSl1qjyLK81UmIAkEen0t4EPVyYL+7z9XFwMjU2iDNDHdGCpMq4CeIsOxfB03+tN1n3TSDnDIwMNoCARuhmTgxkELfMG7PYnHY692k2xl70CKBr22n+GWf/Eug4iC+pvv0v3r0KqoSZg27ii/th5hI6kh6Bv5ORDh4KVenaN+ZjDe+9DvBU3yre+NatPY3jrlS6Ugd3lY+QJwh1UPCj5jXs4JRQDRlQiHSIPQgNGOusAT0g9vwZ77QTaGXbzN3iOQy1ikOqyI+/Z+40qObUltusGJqmRBTx6De8xkhpJ7/dhKzhfHodB8pUFYKTxs/zfFYcU7X0rm2QCuVE+wiW8a3p8KL/8NNAUDoxePTrdXMRWG0ikyeGcuxQKjyhRlVr2pAuyRRSXEStMNKmQrICQ+QAchv4FmcpffPkpUIn/z+ZvC6Xgixc7/EQmbCNsQp6dUMO4u7GVBBWDPXTQEwbR3/jU8T2SppNtlvSFpc1WP4l/HIvEnSf3hL8V3bC32dUPZbmIXWZw3HPlpKN/M4c9yjD2uRR6TZe6oSfGVRehTf39lDrTEJwz/ziVD/yuxfUVlCEOfK923xOyXXZEnNeyC2I1vpHGHuVXJTv6udBCaAH9HRk5TnTNmcDzCAbbID3deqVAX08c2Meu6CtaDgEo6FthBs2A=",
"content-type": "multipart/alternative; boundary=\"_000_BL3PR02MB8916D47BB41A028FCA285B5B9BC3ABL3PR02MB8916namp_\"",
"mime-version": "1.0",
"x-originatororg": "americantower.com",
"x-ms-exchange-crosstenant-authas": "Internal",
"x-ms-exchange-crosstenant-authsource": "BL3PR02MB8916.namprd02.prod.outlook.com",
"x-ms-exchange-crosstenant-network-message-id": "dbcd7da8-34dd-4085-d449-08de1df7776c",
"x-ms-exchange-crosstenant-originalarrivaltime": "07 Nov 2025 12:16:22.9936 (UTC)",
"x-ms-exchange-crosstenant-fromentityheader": "Hosted",
"x-ms-exchange-crosstenant-id": "06815d30-c3a7-41f1-ae74-0fda03852c96",
"x-ms-exchange-crosstenant-mailboxtype": "HOSTED",
"x-ms-exchange-crosstenant-userprincipalname": "8/TsDlZ6ULrJ0XmdtyDKzyqByHC58VODUS8HdpYJ0GMZvnTMxHXwSrI7EBweNdpt7gi0Q11J5qNJsdBlQO84Nj5UQwOEfqVdBOURZcbhst4pue0gms8L/VnjMwJOypy0",
"x-ms-exchange-transport-crosstenantheadersstamped": "SA3PR02MB9346"
},
"attributes": {
"uid": 54
},
"from": "Roberto Fittipaldi <Roberto.Fittipaldi@americantower.com>",
"to": "\"ingenieria.atcarg@gmail.com\" <ingenieria.atcarg@gmail.com>",
"subject": "RE: Ejecutar",
"date": "Fri, 7 Nov 2025 12:16:22 +0000"
}
}
]
},
"connections": {
"Email Trigger (IMAP)": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
},
"If": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"Switch": {
"main": [
[
{
"node": "Execute upload_ats_historico",
"type": "main",
"index": 0
}
],
[
{
"node": "Execute bajada_claro",
"type": "main",
"index": 0
}
],
[
{
"node": "Execute upload_cto",
"type": "main",
"index": 0
}
],
[
{
"node": "Execute adecuacion_drop_cto",
"type": "main",
"index": 0
}
],
[
{
"node": "Edit Fields2",
"type": "main",
"index": 0
}
],
[
{
"node": "Send email - Script NO válido",
"type": "main",
"index": 0
}
]
]
},
"Execute upload_ats_historico": {
"main": [
[
{
"node": "Execute a SQL query",
"type": "main",
"index": 0
}
]
]
},
"Execute bajada_claro": {
"main": [
[
{
"node": "Execute a SQL query1",
"type": "main",
"index": 0
}
]
]
},
"Execute upload_cto": {
"main": [
[
{
"node": "Execute a SQL query2",
"type": "main",
"index": 0
}
]
]
},
"Execute adecuacion_drop_cto": {
"main": [
[
{
"node": "Execute a SQL query3",
"type": "main",
"index": 0
}
]
]
},
"Execute a SQL query": {
"main": [
[
{
"node": "If1",
"type": "main",
"index": 0
}
]
]
},
"If1": {
"main": [
[
{
"node": "Send email - Falla",
"type": "main",
"index": 0
}
],
[
{
"node": "Send email - Ok",
"type": "main",
"index": 0
}
]
]
},
"Execute a SQL query1": {
"main": [
[
{
"node": "If3",
"type": "main",
"index": 0
}
]
]
},
"Execute a SQL query2": {
"main": [
[
{
"node": "If4",
"type": "main",
"index": 0
}
]
]
},
"Execute a SQL query3": {
"main": [
[
{
"node": "If5",
"type": "main",
"index": 0
}
]
]
},
"If3": {
"main": [
[
{
"node": "Send email - Falla",
"type": "main",
"index": 0
}
],
[
{
"node": "Send email - Ok",
"type": "main",
"index": 0
}
]
]
},
"If4": {
"main": [
[
{
"node": "Send email - Falla",
"type": "main",
"index": 0
}
],
[
{
"node": "Send email - Ok",
"type": "main",
"index": 0
}
]
]
},
"If5": {
"main": [
[
{
"node": "Send email - Falla",
"type": "main",
"index": 0
}
],
[
{
"node": "Send email - Ok",
"type": "main",
"index": 0
}
]
]
},
"Loop Over Items": {
"main": [
[
{
"node": "Edit Fields3",
"type": "main",
"index": 0
}
],
[
{
"node": "Execute a command1",
"type": "main",
"index": 0
},
{
"node": "Merge",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Convert to File": {
"main": [
[
{
"node": "Send email",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields2": {
"main": [
[
{
"node": "Code in JavaScript3",
"type": "main",
"index": 0
}
]
]
},
"Code in JavaScript3": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Execute a command1": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 1
}
]
]
},
"Merge": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields3": {
"main": [
[
{
"node": "Convert to File",
"type": "main",
"index": 0
}
]
]
}
},
"active": true,
"settings": {
"executionOrder": "v1",
"timezone": "America/Argentina/Buenos_Aires",
"callerPolicy": "workflowsFromSameOwner",
"availableInMCP": false
},
"versionId": "85746258-0137-48c0-8a46-e2b5a3ec1489",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "d036586a6f1beb943eab58802fde032e72e34345cd4e9ab28e2ffff388f73918"
},
"id": "nYV7FkAL9U0XHril",
"tags": []
}
(3-3/4)