An SSH Execution task opens an SSH connection to a remote machine and executes a command or set of commands.
To add an SSH Execution task:
- Open the Tasks console (see Tasks), and click the New Task button
OR
In the XpoLog Manager homepage, under More Actions, click Add Task. - 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 In Connection Details, select the account of the SSH host on which the program/script will is to be
executed, or click New to define a new SSH account (see Creating an Account).- - In Program/Script path: the Path, type the name of the program/script to be executed by
the task.- Arguments (optional): the - In Arguments, type the arguments needed for the program/script to
run, separated by spaces; optional.- Environment variables (optional): - In Environment Variables, type the environment variables needed for
the program/script to run; optional.- Output target file (optional): - In Output Target File, type the the path to the file to which where output of the
program/script execution will be writtenexecution is to be written; optional.- Add optional params: check - Select the Add Optional Params checkbox to include in the output file 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 - To automate task execution, open the Schedule tab, and configure the scheduler as described in Scheduling a Task.
- Click Save.
The SSH Execution task is saved.