Creating remote dispatcher scripts
Remote dispatcher scripts are Ruby automation scripts that run on the engine server. They implement various transport protocols (agent types) for running remote shell scripts or copying files on remote hosts. Remote dispatcher automation scripts are executed based on the agent type of the target server, SSH or NSH.
Before you create a remote dispatcher script, ensure that you configured an integration server.
You can create new automation categories to sort your remote dispatcher scripts.
In addition, you can use one of your existing scripts with a Template type as a template for creating new scripts.
To create a new remote dispatcher script
- Go to Environment > Automation.
- On the right pane, click Create Automation.
- In the To use as list, select Remote Dispatcher.
- In the Choose Automation Category list, select one of the available automation categories.
- In the File Path box, enter the directory path for exporting or importing the automation script.
- In the Apply template list, select a template that you want to use as a base for creating your script.
In the Script integration server list, select that integration server that you want to use for connecting with the external system.
In the Script Name box, enter a unique name for the script.
- In the Description box, enter a short description for the script.
- In the Agent Type list, select the agent type used by the target server.
- In the Script body area, enter specify the code for the automation that runs in a step.
The script body is the core of an automation script. The action that you want to perform and how you want to execute it depends on how you design the arguments and the logic in the script body. - In the Script type list, select one of the following options as appropriate:
- Template—To save this script as a template for future use.
- System—To save this script as a base script that can be only viewed or copied but not modified by anyone apart from the Administrator.
- User—To save this script as a normal script for your personal use and available for viewing, copying, and modifying.
- To save the script, click Add script.
- (Optional) To make the script available for other users, change the automation script status to the state other than Draft.