Skip to main content

A command-line interface for helper managemente your environment Portheus

Project description

protheus-cli

Gerenciador de ambiente Protheus on-premise e cloud

Inspetor Protheus CLI é um gerenciador e agendador de tarefas para os serviços do Protheus.

PROTHEUS SETUP

protheus setup config       # Configura o diretório do broker e lista de exceções
protheus setup list         # Lista as configurações

PROTHEUS SERVICE

protheus service enable     # Habilita os serviços no broker protheus
protheus service disable    # Desabilita os serviços no broker protheus
protheus service list       # Lista todos os serviços no broker protheus

PROTHEUS INSTANCE

protheus instance start     # Inicia todas as instâncias Slaves
protheus instance stop      # Deliga todas as instâncias Slaves
protheus instance get       # Verifica o estado das instâncias Slaves
protheus instance add       # Adiciona uma nova instância
protheus instance remove    # Remove uma instância

PROTHEUS SCHED

protheus sched enableservice    # Define um horário para habilitar os serviços
protheus sched disableservice  # Deifine um horário para desativar os serviços
protheus sched startinstance   # Define um horário para habilitar as instâncias
protheus sched stopinstance # Define um horário para desativar os instâncias
protheus sched repeat    # Define a recorrência do agendamento
protheus sched list         # Lista as configurações do agendamento
protheus sched run          # Inicia o processo de monitoramento das tarefas

PROHEUS UPDATE

protheus update rpo         # Lista e/ou atualiza os RPOs desatualizados do Protheus

Arquivo de configuração (SETTINGS.JSON)

O arquivo settings.json é o arquivo responsável pelas principais configurações do CLI, abaixo um exemplo da estrutura do arquivo.

Embreve receberá suporte as mais nuvem publica.

{
    "oci": [
        {
            "ocid": "ocid.0000000",
            "ip": "10.171.0.1",
            "startinstance": "00:00",
            "stopinstance": "00:00",
            "enableservice": "00:00",
            "disableservice": "00:00",
            "repeat": "workingdays",
            "name": "server-master-1"
        }
    ],
    "appserver_name": "appserver.ini",
    "appserver_path": "D:\\TOTVS\\bundles\\totvs_master\\tec\\appserver\\",
    "startinstance": "00:00",
    "stopinstance": "00:00",
    "enableservice": "00:00",
    "disableservice": "00:00",
    "repeat": "daily",
    "conns": [
        "127.0.0.1:1234",
        "127.0.0.1:1235",
        "127.0.0.2:1234",
        "127.0.0.2:1235"
    ],
    "alwaysup": [
        "127.0.0.1:1234"
    ],
    "alwaysdown": [
        "127.0.0.2:1234"
    ],
    "rpo_name": "tttp120.rpo",
    "rpo_master": "D:\\DIRETORIO\\DO\\RPO\\apo",
    "rpo_slave": [
        "D:\\DIRETORIO\\DO\\SLAVE_1\\protheus\\apo",
        "D:\\DIRETORIO\\DO\\SLAVE_2\\protheus\\apo",
        "D:\\DIRETORIO\\DO\\SLAVE_3\\protheus\\apo"
    ],
    "bot": {
        "bot_token": "token_do_bot",
        "bot_chatid": "id_do_chat"
    }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

protheus-0.0.3.tar.gz (14.2 kB view hashes)

Uploaded Source

Built Distribution

protheus-0.0.3-py3-none-any.whl (18.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page