---
title: Registro masivo de Listas negras
description: Script creado para registrar de forma masiva de listas negras a base de datos.
---

[Ir directamente al contenido](https://soporte.aldeamo.net/migration/knowledge/registro-masivo-de-listas-negras#main-content)

Español

Traducciones de Mostrar submenú de

[Portal del cliente](https://soporte.aldeamo.net/tickets?hsLang=es)

![logo-aldeamo-vector-hubspot.png\]](https://soporte.aldeamo.net/hs-fs/hubfs/logo-aldeamo-vector-hubspot.png?height=50&name=logo-aldeamo-vector-hubspot.png)

Abrir navegación principal

Cerrar navegación principal

- Español
  
  Traducciones de Mostrar submenú de
- [Portal del cliente](https://soporte.aldeamo.net/tickets)
- Ir a aldeamo.com

 Ir a aldeamo.com

 Bienvenido al centro de ayuda de ALDEAMO. ¿Cómo podemos ayudarte?

- No hay sugerencias porque el campo de búsqueda está vacío.

1. [Centro de ayuda](https://soporte.aldeamo.net/migration/knowledge?hsLang=es)
2. [Customer Success Center](https://soporte.aldeamo.net/migration/knowledge/customer-success-center?hsLang=es)
3. [Incidencias - CSC](https://soporte.aldeamo.net/migration/knowledge/customer-success-center?hsLang=es#incidencias-csc)

# Registro masivo de Listas negras

## Script creado para registrar de forma masiva de listas negras a base de datos.

Se crea el siguiente script para poder hacer subida masiva de listas negras:

 

### Alistar Script

1\. En el server 192.168.100.123 crear el archivo "listasmasivas.sh"

**vim listasmasivas.sh**

2\. Oprimir la letra i para activar el modo **INSERT** en **VIM**.

![](https://soporte.aldeamo.net/hubfs/DeepinScreenshot_Seleccionar%20%C3%A1rea_20210628015321-png.png)

3.Copiar el código del siguiente link, reemplazando el directorio home y la contraseña de mysql según corresponda al agente que va a ejecutar el script. (Solamente aplica para quienes tiene permiso de modificación en base de datos).

**https://docs.google.com/document/d/1ccND1oie6UaIy2iRJBLRR-IRZWjEl1LRIEsLcmpj5zM**

Para pegar en vim se puede usar la combinación de teclas  **CONTROL + SHIFT + V** o con clic derecho "**pegar**".

![](https://soporte.aldeamo.net/hubfs/DeepinScreenshot_Seleccionar%20%C3%A1rea_20210628015716-png.png)

4\. Guardar los cambios del script, oprimir **ESC** par salir del modo **INSERT** y escriba **:wq** y presione **ENTER**.

![](https://soporte.aldeamo.net/hubfs/DeepinScreenshot_Seleccionar%20%C3%A1rea_20210628015934-png.png)

### Alistar el archivo listanegra.txt

1.Se inicia preparando el archivo desde Excel con los siguientes datos: 

![](https://soporte.aldeamo.net/hubfs/Captura%20de%20pantalla%20de%202021-06-28%2002-03-16-png-1.png)

Movil = código de pais + numero a registrar.

cliente= Id de tools  del cliente al que se le debe aplicar el bloqueo.

usuario = Id de usuario que está realizando la modificación.

2\. Guardar en formato CSV.

3\. Se puede pasar al server 192.168.100.123 por medio de conexión sftp ( filezilla).

4\. Ubicar el archivo generado en el directorio /home/DIRECTORIODELUSUARIO/ que es de donde lo lee el script.

![](https://soporte.aldeamo.net/hubfs/DeepinScreenshot_Seleccionar%20%C3%A1rea_20210628021433-png.png)

5\. Transformar el archivo a txt y cambiar el nombre a listanegra.txt:

mv listanegra.csv listanegra.txt

6\. Una vez transformado ( o incluso desde le cvs al pasarlo al server) se puede confirmar la estructura del archivo usando los siguientes comandos.

cat listanegra.txt : Muestra todo el contenido del archivo en consola.

head -10 listanegra.txt : Muestra las 10 primeras lineas del archivo en consola.

tail -10 listanegra.txt: Muestra las 10 ultimas lineas del archivo.

### ejecutar script y monitorear proceso de subida:

1\. Para ejecutar el script se realiza el siguiente comando: 

sh listasmasivas.sh

Si falta algo por modificar debe mostrarse un mensaje de error en consola.

Cuando empieza a ejecutarse correctamente se ve el siguiente mensaje: 

![](https://soporte.aldeamo.net/hubfs/Captura%20de%20pantalla%20de%202021-06-28%2002-28-48-png.png)

Y al finalizar el mensaje

\- El reporte ha finalizado -

Tambien se puede hacer seguimiento del registro desde base de datos, filtrando por el rango de fecha y el cliente id.

 

- [SMS](https://soporte.aldeamo.net/migration/knowledge/sms?hsLang=es#main-content)

    - [INTRODUCCIÓN A LA PLATAFORMA](https://soporte.aldeamo.net/migration/knowledge/sms?hsLang=es#introducci%C3%B3n-a-la-plataforma)
    - [MÓDULO ADMINISTRADOR (ADMINISTRADOR CORPORATIVO)](https://soporte.aldeamo.net/migration/knowledge/sms?hsLang=es#m%C3%B3dulo-administrador-administrador-corporativo)
    - [ENVÍO DE CAMPAÑAS](https://soporte.aldeamo.net/migration/knowledge/sms?hsLang=es#env%C3%ADo-de-campa%C3%B1as)
    - [ENVÍO DE CAMPAÑAS CON DOCUMENTO PERSONALIZADO](https://soporte.aldeamo.net/migration/knowledge/sms?hsLang=es#env%C3%ADo-de-campa%C3%B1as-con-documento-personalizado)
    - [ENCUESTAS](https://soporte.aldeamo.net/migration/knowledge/sms?hsLang=es#encuestas)
    - [REPORTERÍA](https://soporte.aldeamo.net/migration/knowledge/sms?hsLang=es#reporter%C3%ADa)
    - [Manuales de Usuario](https://soporte.aldeamo.net/migration/knowledge/sms?hsLang=es#manuales-de-usuario)
- [Email](https://soporte.aldeamo.net/migration/knowledge/email?hsLang=es#main-content)

    - [CATEGORÍAS Y SUSCRIPCIONES CANCELADAS](https://soporte.aldeamo.net/migration/knowledge/email?hsLang=es#categor%C3%ADas-y-suscripciones-canceladas)
    - [LISTA DE CONTACTOS](https://soporte.aldeamo.net/migration/knowledge/email?hsLang=es#lista-de-contactos)
    - [PLANTILLAS](https://soporte.aldeamo.net/migration/knowledge/email?hsLang=es#plantillas)
    - [GESTOR DE ARCHIVOS](https://soporte.aldeamo.net/migration/knowledge/email?hsLang=es#gestor-de-archivos)
    - [ENVÍOS DE EMAIL MARKETING](https://soporte.aldeamo.net/migration/knowledge/email?hsLang=es#env%C3%ADos-de-email-marketing)
    - [REPORTES](https://soporte.aldeamo.net/migration/knowledge/email?hsLang=es#reportes)
    - [CONFIGURACIÓN API y SMTP](https://soporte.aldeamo.net/migration/knowledge/email?hsLang=es#configuraci%C3%B3n-api-y-smtp)
    - [DOCUMENTACIÓN ADICIONAL](https://soporte.aldeamo.net/migration/knowledge/email?hsLang=es#documentaci%C3%B3n-adicional)
    - [Registro de dominio](https://soporte.aldeamo.net/migration/knowledge/email?hsLang=es#registro-de-dominio)
- [Voz](https://soporte.aldeamo.net/migration/knowledge/voz?hsLang=es#main-content)

    - [INTRODUCCIÓN A LA PLATAFORMA](https://soporte.aldeamo.net/migration/knowledge/voz?hsLang=es#introducci%C3%B3n-a-la-plataforma)
    - [NUEVA CAMPAÑA (CREACIÓN DE CAMPAÑAS)](https://soporte.aldeamo.net/migration/knowledge/voz?hsLang=es#nueva-campa%C3%B1a-creaci%C3%B3n-de-campa%C3%B1as)
    - [DESCARGA DE REPORTES](https://soporte.aldeamo.net/migration/knowledge/voz?hsLang=es#descarga-de-reportes)
    - [MENÚ PRINCIPAL](https://soporte.aldeamo.net/migration/knowledge/voz?hsLang=es#men%C3%BA-principal)
- [Validadores](https://soporte.aldeamo.net/migration/knowledge/validadores?hsLang=es#main-content)

    - [VALIDACIONES POR OPERADOR](https://soporte.aldeamo.net/migration/knowledge/validadores?hsLang=es#validaciones-por-operador)
    - [VALIDACIÓN DE RCS](https://soporte.aldeamo.net/migration/knowledge/validadores?hsLang=es#validaci%C3%B3n-de-rcs)
    - [VALIDACIÓN DE EMAIL](https://soporte.aldeamo.net/migration/knowledge/validadores?hsLang=es#validaci%C3%B3n-de-email)
    - [REPORTERÍA](https://soporte.aldeamo.net/migration/knowledge/validadores?hsLang=es#reporter%C3%ADa)
- [Inbound](https://soporte.aldeamo.net/migration/knowledge/inbound?hsLang=es#main-content)

    - [INTRODUCCIÓN A LA PLATAFORMA](https://soporte.aldeamo.net/migration/knowledge/inbound?hsLang=es#introducci%C3%B3n-a-la-plataforma)
    - [PERFIL ADMINISTRADOR](https://soporte.aldeamo.net/migration/knowledge/inbound?hsLang=es#perfil-administrador)
    - [PERFIL AGENTE](https://soporte.aldeamo.net/migration/knowledge/inbound?hsLang=es#perfil-agente)
    - [REPORTERÍA](https://soporte.aldeamo.net/migration/knowledge/inbound?hsLang=es#reporter%C3%ADa)
- [WhatsApp](https://soporte.aldeamo.net/migration/knowledge/whatsapp?hsLang=es#main-content)

    - [Difusiones](https://soporte.aldeamo.net/migration/knowledge/whatsapp?hsLang=es#difusiones)
    - [Clientes](https://soporte.aldeamo.net/migration/knowledge/whatsapp?hsLang=es#clientes)
- [Reportes](https://soporte.aldeamo.net/migration/knowledge/reportes?hsLang=es#main-content)

    - [Jasper](https://soporte.aldeamo.net/migration/knowledge/reportes?hsLang=es#jasper)
- [Monitoreo Grafana](https://soporte.aldeamo.net/migration/knowledge/monitoreo-grafana?hsLang=es#main-content)

    - [Monitoreo en Grafana](https://soporte.aldeamo.net/migration/knowledge/monitoreo-grafana?hsLang=es#monitoreo-en-grafana)
- [DOC](https://soporte.aldeamo.net/migration/knowledge/doc?hsLang=es)
- [Clientes](https://soporte.aldeamo.net/migration/knowledge/clientes?hsLang=es#main-content)

    - [Compensar](https://soporte.aldeamo.net/migration/knowledge/clientes?hsLang=es#compensar)
- [Bots](https://soporte.aldeamo.net/migration/knowledge/bots?hsLang=es#main-content)

    - [INTRODUCCIÓN A LA PLATAFORMA](https://soporte.aldeamo.net/migration/knowledge/bots?hsLang=es#introducci%C3%B3n-a-la-plataforma)
    - [TU BOT](https://soporte.aldeamo.net/migration/knowledge/bots?hsLang=es#tu-bot)
    - [BOTS POR CANAL](https://soporte.aldeamo.net/migration/knowledge/bots?hsLang=es#bots-por-canal)
    - [UBICACION](https://soporte.aldeamo.net/migration/knowledge/bots?hsLang=es#ubicacion)
    - [PERFIL](https://soporte.aldeamo.net/migration/knowledge/bots?hsLang=es#perfil)
    - [MANUALES](https://soporte.aldeamo.net/migration/knowledge/bots?hsLang=es#manuales)
- [Customer Success Center](https://soporte.aldeamo.net/migration/knowledge/customer-success-center?hsLang=es#main-content)

    - [Onboarding - CSC](https://soporte.aldeamo.net/migration/knowledge/customer-success-center?hsLang=es#onboarding-csc)
    - [Incidencias - CSC](https://soporte.aldeamo.net/migration/knowledge/customer-success-center?hsLang=es#incidencias-csc)
    - [General - CSC](https://soporte.aldeamo.net/migration/knowledge/customer-success-center?hsLang=es#general-csc)

# Aldeamo

Centro de ayuda aldeamo.com

Copyright © 2026, Aldeamo