AI Center
2023.10
False
Imagen de fondo del banner
Guía del usuario de AI Center
Última actualización 19 de abr. de 2024

Procedimiento

Para obtener una descripción general del procedimiento, consulta los pasos que se indican a continuación.Cada paso se detalla en las páginas siguientes.
  1. Crea un tenant con el mismo nombre en el entorno Automation Suite o AI Center nuevo.
  2. Genera el archivo storage-cred.json en la primera máquina (también denominada Máquina de origen).
  3. Genera el archivo storage-creds.json en la segunda máquina.
  4. Configura la máquina que ejecuta el script.
  5. Ejecuta el script de migración.

Paso 1

Crea el tenant correspondiente en el entorno Automation Suite o del nuevo AI Center para cada tenant que quieras migrar.

Paso 2

Este paso debe ejecutarse en la primera máquina, a la que quieres migrar el nuevo entorno.

  1. Conéctate mediante SSH a la máquina que quieres migrar.
  2. Genera el archivo storage-cred.json" id="1"/> ejecutando el siguiente comando:
    wget https://raw.githubusercontent.com/UiPath/ai-customer-scripts/stable/platform/sfmigration/storagemigration/get-credentials.sh
    
    chmod 777 get-credentials.sh
    
    ./get-credentials.shwget https://raw.githubusercontent.com/UiPath/ai-customer-scripts/stable/platform/sfmigration/storagemigration/get-credentials.sh
    
    chmod 777 get-credentials.sh
    
    ./get-credentials.sh
    Si se ejecuta desde una tercera máquina, asegúrate de ejecutar el comando siguiente:
    ./get-credentials.sh {PUBLIC_IP_REPLICATED_MACHINE}./get-credentials.sh {PUBLIC_IP_REPLICATED_MACHINE}
    Si el mensaje de error a continuación aparece después de ejecutar el anterior script, ejecuta el comando bash -1 e intenta ejecutar de nuevo el script anterior.
    docs image
El archivo generado (storage-creds.json) se utilizará en pasos posteriores. Comprueba que copias y guardas el contenido del archivo localmente.

Paso 3

Este paso debe ejecutarse en la segunda máquina, la que se ejecuta en el entorno de Automation Suite.

  1. Abre el puerto 22 en la máquina de Automation Suite
  2. Conéctate mediante SSH a la máquina de Automation Suite.
  3. Ejecuta el siguiente comando:
    sudo su
    
    export KUBECONFIG=/etc/rancher/rke2/rke2.yaml PATH=$PATH:/var/lib/rancher/rke2/binsudo su
    
    export KUBECONFIG=/etc/rancher/rke2/rke2.yaml PATH=$PATH:/var/lib/rancher/rke2/bin
  4. Descarga el archivo de credenciales ejecutando el siguiente comando:
    wget https://raw.githubusercontent.com/UiPath/ai-customer-scripts/stable/platform/sfmigration/storagemigration/get-credentials-sf.sh
    
    chmod 777 get-credentials-sf.sh
    
    ./get-credentials-sf.shwget https://raw.githubusercontent.com/UiPath/ai-customer-scripts/stable/platform/sfmigration/storagemigration/get-credentials-sf.sh
    
    chmod 777 get-credentials-sf.sh
    
    ./get-credentials-sf.sh
El archivo generado (storage-creds-sf.json) se utilizará en pasos posteriores. Comprueba que copias y guardas el contenido del archivo localmente.

Paso 4

Antes de proceder con los siguientes pasos, crea un tenant con el mismo nombre en el entorno de Automation Suite manualmente. Sin importar el tenant que tiene que migrarse, el tenant correspondiente deberá crearse también en Automation Suite.

Este paso debe ejecutarse en la máquina que ejecuta el script.

  1. Ejecuta el comando a continuación para descargar el script de migración. Esto descargará el script desde un repositorio git público:
    sudo su 
    
    cd ~
    
    mkdir migration
    
    cd migration
    
    git clone https://github.com/UiPath/ai-customer-scripts
    
    cd ai-customer-scripts
    
    git checkout stable
    
    cd platform
    
    chmod 777 -R sfmigration
    
    cd ~/migration/ai-customer-scripts/platform/sfmigration/storagemigration/sudo su 
    
    cd ~
    
    mkdir migration
    
    cd migration
    
    git clone https://github.com/UiPath/ai-customer-scripts
    
    cd ai-customer-scripts
    
    git checkout stable
    
    cd platform
    
    chmod 777 -R sfmigration
    
    cd ~/migration/ai-customer-scripts/platform/sfmigration/storagemigration/
  2. Sustituye el contenido del archivo SOURCE_CREDENTIAL_FILE por el contenido de storage-creds.json (consulta el Paso 2).
  3. Sustituye el contenido en el archivo TARGE_CREDENTIAL_FILE por el contenido de storage-creds-sf.json (consulta el Paso 3).
  4. Dirígete al directorio base ejecutando el siguiente comando:
    cd ~/migration/ai-customer-scripts/platform/sfmigration/cd ~/migration/ai-customer-scripts/platform/sfmigration/
  5. Reemplaza los detalles en el archivo input.json. Para una mejor referencia, las credenciales se marcan como TO-BE-REPLACED en el archivo input.json.
El archivo JSON de muestra, con la descripción de cada campo, se menciona a continuación:
{
"SRC_AIC_INSTALLATION_VERSION": "TO-BE-REPLACED", // Values can be : 20.10 OR 21.4
"SRC_SERVER": "TO-BE-REPLACED",   // Replicated SQL Server host
"SRC_PKGMANAGER_DB_NAME": "TO-BE-REPLACED", // Replicated SQL Server Pkgmanager DB name
"SRC_PKGMANAGER_DB_SCHEMA": "ai_pkgmanager", // Replicated SQL Server Pkgmanager DB schema, Note : Please check schema in case of multiple dbs in replicated
"SRC_PKGMANAGER_DB_USERNAME": "TO-BE-REPLACED", // Replicated SQL Server Pkgmanager DB Username
"SRC_PKGMANAGER_DB_PASSWORD": "TO-BE-REPLACED",  // Replicated SQL Server Pkgmanager DB Password
"SRC_TRAINER_DB_NAME": "TO-BE-REPLACED", // Replicated SQL Server AI-Trainer DB Name
"SRC_TRAINER_DB_SCHEMA": "ai_trainer", // Replicated SQL Server AI-Trainer DB Schema, Note : Please check schema in case of multiple dbs in replicated
"SRC_TRAINER_DB_USERNAME": "TO-BE-REPLACED", // Replicated SQL Server AI-Trainer DB Username
"SRC_TRAINER_DB_PASSWORD": "TO-BE-REPLACED",// Replicated SQL Server AI-Trainer DB Password
"DESTINATION_SERVER": "TO-BE-REPLACED", // Destination SQL Server host i.e ServiceFabric SQL Server host
"DESTINATION_DB_NAME": "TO-BE-REPLACED", // Destination SQL Server DB Name
"DESTINATION_PKGMANAGER_DB_SCHEMA": "ai_pkgmanager", 
"DESTINATION_TRAINER_DB_SCHEMA": "ai_trainer",
"DESTINATION_DB_USERNAME": "TO-BE-REPLACED", // Destination SQL Server Username
"DESTINATION_DB_PASSWORD": "TO-BE-REPLACED", // Destination SQL Server Password
"TENANT_MAP": [
{
"SRC_TENANT_ID": "TO-BE-REPLACED", // Source Tenant Id i.e tenant UUID in replicated environment
"DESTINATION_TENANT_ID": "TO-BE-REPLACED", // Destination Tenant Id i.e Tenant UUID in the destination environment
"DESTINATION_ACCOUNT_ID": "TO-BE-REPLACED" // Destination Account UUID Id , host if Migrating to ServiceFabric standalone environment otherwise provide the actual Account UUID
}
]{
"SRC_AIC_INSTALLATION_VERSION": "TO-BE-REPLACED", // Values can be : 20.10 OR 21.4
"SRC_SERVER": "TO-BE-REPLACED",   // Replicated SQL Server host
"SRC_PKGMANAGER_DB_NAME": "TO-BE-REPLACED", // Replicated SQL Server Pkgmanager DB name
"SRC_PKGMANAGER_DB_SCHEMA": "ai_pkgmanager", // Replicated SQL Server Pkgmanager DB schema, Note : Please check schema in case of multiple dbs in replicated
"SRC_PKGMANAGER_DB_USERNAME": "TO-BE-REPLACED", // Replicated SQL Server Pkgmanager DB Username
"SRC_PKGMANAGER_DB_PASSWORD": "TO-BE-REPLACED",  // Replicated SQL Server Pkgmanager DB Password
"SRC_TRAINER_DB_NAME": "TO-BE-REPLACED", // Replicated SQL Server AI-Trainer DB Name
"SRC_TRAINER_DB_SCHEMA": "ai_trainer", // Replicated SQL Server AI-Trainer DB Schema, Note : Please check schema in case of multiple dbs in replicated
"SRC_TRAINER_DB_USERNAME": "TO-BE-REPLACED", // Replicated SQL Server AI-Trainer DB Username
"SRC_TRAINER_DB_PASSWORD": "TO-BE-REPLACED",// Replicated SQL Server AI-Trainer DB Password
"DESTINATION_SERVER": "TO-BE-REPLACED", // Destination SQL Server host i.e ServiceFabric SQL Server host
"DESTINATION_DB_NAME": "TO-BE-REPLACED", // Destination SQL Server DB Name
"DESTINATION_PKGMANAGER_DB_SCHEMA": "ai_pkgmanager", 
"DESTINATION_TRAINER_DB_SCHEMA": "ai_trainer",
"DESTINATION_DB_USERNAME": "TO-BE-REPLACED", // Destination SQL Server Username
"DESTINATION_DB_PASSWORD": "TO-BE-REPLACED", // Destination SQL Server Password
"TENANT_MAP": [
{
"SRC_TENANT_ID": "TO-BE-REPLACED", // Source Tenant Id i.e tenant UUID in replicated environment
"DESTINATION_TENANT_ID": "TO-BE-REPLACED", // Destination Tenant Id i.e Tenant UUID in the destination environment
"DESTINATION_ACCOUNT_ID": "TO-BE-REPLACED" // Destination Account UUID Id , host if Migrating to ServiceFabric standalone environment otherwise provide the actual Account UUID
}
]
Archivo input.json de ejemplo con valores de ejemplo completados como referencia:
{
        "SRC_AIC_INSTALLATION_VERSION": "20.10",
        "SRC_SERVER": "sankar-sf-migration1sqlserver.database.windows.net",
        "SRC_PKGMANAGER_DB_NAME": "aifabric",
        "SRC_PKGMANAGER_DB_SCHEMA": "ai_pkgmanager",
        "SRC_PKGMANAGER_DB_USERNAME": "test",
        "SRC_PKGMANAGER_DB_PASSWORD": "test",
        "SRC_TRAINER_DB_NAME": "aifabric",
        "SRC_TRAINER_DB_SCHEMA": "ai_trainer",
        "SRC_TRAINER_DB_USERNAME": "test",
        "SRC_TRAINER_DB_PASSWORD": "test",
        "DESTINATION_SERVER": "sfdev2290542-9a5254d2-sql.database.windows.net",
        "DESTINATION_DB_NAME": "AutomationSuite_AICenter",
        "DESTINATION_PKGMANAGER_DB_SCHEMA": "ai_pkgmanager",
        "DESTINATION_TRAINER_DB_SCHEMA": "ai_trainer",
        "DESTINATION_DB_USERNAME": "test",
        "DESTINATION_DB_PASSWORD": "test",
        "TENANT_MAP": [
                {
                        "SRC_TENANT_ID": "d1eb428c-e188-46bf-a1dd-8908f90b4084",
                        "DESTINATION_TENANT_ID": "03527165-b242-4b98-834f-2eb3e5957223",
                        "DESTINATION_ACCOUNT_ID": "8cd64e27-12f4-427c-a575-dd4f2ea82551"
                }
        ]
}{
        "SRC_AIC_INSTALLATION_VERSION": "20.10",
        "SRC_SERVER": "sankar-sf-migration1sqlserver.database.windows.net",
        "SRC_PKGMANAGER_DB_NAME": "aifabric",
        "SRC_PKGMANAGER_DB_SCHEMA": "ai_pkgmanager",
        "SRC_PKGMANAGER_DB_USERNAME": "test",
        "SRC_PKGMANAGER_DB_PASSWORD": "test",
        "SRC_TRAINER_DB_NAME": "aifabric",
        "SRC_TRAINER_DB_SCHEMA": "ai_trainer",
        "SRC_TRAINER_DB_USERNAME": "test",
        "SRC_TRAINER_DB_PASSWORD": "test",
        "DESTINATION_SERVER": "sfdev2290542-9a5254d2-sql.database.windows.net",
        "DESTINATION_DB_NAME": "AutomationSuite_AICenter",
        "DESTINATION_PKGMANAGER_DB_SCHEMA": "ai_pkgmanager",
        "DESTINATION_TRAINER_DB_SCHEMA": "ai_trainer",
        "DESTINATION_DB_USERNAME": "test",
        "DESTINATION_DB_PASSWORD": "test",
        "TENANT_MAP": [
                {
                        "SRC_TENANT_ID": "d1eb428c-e188-46bf-a1dd-8908f90b4084",
                        "DESTINATION_TENANT_ID": "03527165-b242-4b98-834f-2eb3e5957223",
                        "DESTINATION_ACCOUNT_ID": "8cd64e27-12f4-427c-a575-dd4f2ea82551"
                }
        ]
}
Nota: SRC_TENANT_ID se puede obtener siguiendo los pasos a continuación:
  • Haz clic en el logo de UiPath en la página de inicio de la aplicación AI Center.
  • Haz clic con el botón derecho en el navegador y ve a examinar. Cuando la ventana de examinar se abra, marca la pestaña de red para proyectos de llamada a la API. El ID de tenant puede verse en la sección de Vista previa.
  • Añade el DNS del almacenamiento del objeto de la máquina de Automation Suite en la máquina que ejecuta el script. Este se encuentra en la pestaña de extensión del proceso desde donde se creó el entorno de Automation Suite.
    sudo bash -c "echo "LB_IP objectstore.DNS_NAME" >> /etc/hosts"sudo bash -c "echo "LB_IP objectstore.DNS_NAME" >> /etc/hosts"

Paso 5

Dirígete a la carpeta en la que se ha descargado sfmigration en el directorio Uso y ejecuta el siguiente comando:
cd ~/migration/ai-customer-scripts/platform/sfmigration/
 
 ./mastermigrationscript.sh input.jsoncd ~/migration/ai-customer-scripts/platform/sfmigration/
 
 ./mastermigrationscript.sh input.json
  • Paso 1
  • Paso 2
  • Paso 3
  • Paso 4
  • Paso 5

Was this page helpful?

Obtén la ayuda que necesitas
RPA para el aprendizaje - Cursos de automatización
Foro de la comunidad UiPath
Logotipo blanco de UiPath
Confianza y seguridad
© 2005-2024 UiPath. All rights reserved.