To add an SSH task:
- Open the Tasks console (see Tasks), and click the New Task button.
- In the page that opens, select the SSH Execution option, and then click Continue.
The SSH Execution Task page opens. - In Name, type the name of the new task.
- In Description, type a description of the new task; optional.
- Open the Details tab.
- In From, type the account from which the email will be sent.
- In To, type the account to which the email will be sent.
- In Subject, type the subject of the email.
- In Body, type the body of the email; optional.
- In Data Export Format, select one of the following for the format of the email attachment:
Send an email alert without any data attached.
Attach the log together with its configuration, to enable future import.
Transform the data and attach to mail as XML, CSV or TAB Delimited. - Open the Schedule tab.
- In Set Frequency, select the frequency of sending the email: Never, Daily, Weekly, or Monthly, and then complete the options that appear for your selected frequency.
- Click Save.
The Email task is saved. - Click the "Remote SSH command Task" link from the "Tasks List" page.
2.Specify the following configuration details:
- Name: the name of the new task.
- Description (optional): the description of the new task.
- SSH account: the account of the host on which the program/script will be
executed.
- Program/Script path: the name of the program/script to be executed by
the task.
- Arguments (optional): the arguments needed for the program/script to
run, separated by spaces.
- Environment variables (optional): the environment variables needed for
the program/script to run.
- Output target file (optional): the path to the file to which output of the
program/script execution will be written.
- Add optional params: check to include the date, account name, host name and username in the output file.
3. You can automate the task execution by configuring a scheduler on it. Based on the configured scheduler XpoLog will run the task.
4. Click the "save" link to save the new task definition.
{"serverDuration": 274, "requestCorrelationId": "58a93e8c93e347fa8bb87d893fc75cba"}