Al momento non è possibile inviare moduli sul sito di supporto per pianificare la manutenzione. Se necessiti di assistenza immediata, contatta il supporto tecnico. Ci scusiamo per il disagio.
Questo articolo ti è servito per risolvere il problema?
Seleziona valutazione
Titolo
Batch CLI script for creating PostgreSQL agents
Descrizione
Is there a way to create many PostgreSQL agents at the same time in a batch process like with the CLI installer?
Risoluzione
Please review the following steps to create multiple PostgreSQL agents.
Download the file attached to this KB article. Users must be logged into Supportlink to download this file.
Have a FglAM available with the PostgreSQLAgent package deployed to it.
Edit test.csv file with properties for agents to be created. Columns are in the following order:
Host
Port
Database (for connection purposes)
User
Password
Edit PostgreSQLAgentBatchCreation.groovy variables at the top of script.
csvFile (required) – File path to CSV file. Backslashes in Windows file paths need to be escaped with a second backslash.
amName (required) – The name of the FglAM where the agents will be deployed. FglAM names are displayed on the Administration/Agents/Agent Managers dashboard.
agentPrefix (optional) – Agent name prefix. Default format is PostgreSQLAgent_on_host_port.
Run script from Foglight bin directory with command: “fglcmd.bat -usr foglight -pwd foglight -cmd script:run -f PostgreSQLAgentBatchCreation.groovy”. Replace italicized user and password fields with credentials for administrative account on the Foglight server. If groovy script is not located in bin directory or the name has been changed, the file path to the script should be modified appropriately. On *nix systems, fglcmd executable will be a .sh file.
If no errors are quickly reported, the script should be running normally. It will take some time to complete. You can check the progress on the Agent Status page as new agents are created.
Once script has finished, agents can be selected and activated or further modified from the Agent Status page.
Final notes:
Agents will not be created if an agent matching the generated name already exists. Therefore, new database servers can be added to the CSV file and the script run again without creating duplicate agents.
Other properties in these agents will automatically be created with their default values. Those default values can be altered before agent creation in the Agent Properties dashboard. After creation, one or more agents can be selected and their properties modified with the Edit Properties feature. Alternatively, agents can be deleted and created again.
Data di creazione: 10/17/2019 Ultimo aggiornamento: 7/17/2025
Thank you for your feedback for Topic Request
Your Request will be reviewed by our technical reviewer team and, if approved, will be added as a Topic in our Knowledgebase.
Questo è il portale del supporto
Puoi trovare aiuto e supporto online per Quest *prodotto* sul sito di supporto di un affiliato. Fai clic su Continua per essere reindirizzato ai contenuti e all'assistenza corretti per *prodotto*.
Cerca in tutti gli articoli
Internet Explorer 8, 9 e 10 non sono più supportati
Il portale Quest Software non supporta più Internet Explorer 8, 9, e 10. Si consiglia di aggiornare il browser all'ultima versione di Internet Explorer o Chrome.