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"
}
}
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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
protheus-0.0.3-py3-none-any.whl
(18.3 kB
view details)
File details
Details for the file protheus-0.0.3.tar.gz.
File metadata
- Download URL: protheus-0.0.3.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3523596bd74241221b5abfb805768401d8c1f3a2c0d507649fe8c91521062b2
|
|
| MD5 |
9bbf63cf652c258e6db04619fbc51767
|
|
| BLAKE2b-256 |
00af9a7456daa8fa1f64008eec09f56881829e50348efbc48d8c41bc46c5fce8
|
File details
Details for the file protheus-0.0.3-py3-none-any.whl.
File metadata
- Download URL: protheus-0.0.3-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ec9e72ec200821f44da8ecfd70562ac734e9bb0979bab6550ec976a2243a287
|
|
| MD5 |
81ef8333299953cb2df0d44a8f8fc9a5
|
|
| BLAKE2b-256 |
2df4b4a7489063494f55533184ff421fa09a026d280a78d54e3016a273cf04c1
|