Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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:
  1. Open the Tasks console (see Tasks), and click the New Task button
    OR
    In the XpoLog Manager homepage, under More Actions, click Add Task.
  2. In the page that opens, select the SSH Execution option, and then click Continue.
    The SSH Execution Task page opens.
  3. In Name, type the name of the new task.
  4. In Description, type a description of the new task; optional.
  5. Open the Details tab.
  6. In From, type the account from which the email will be sent.
  7. In To, type the account to which the email will be sent.
  8. In Subject, type the subject of the email.
  9. In Body, type the body of the email; optional.
  10. 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.
  11. Open the Schedule tab.
  12. 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.
  13. Click Save.
    The Email task is saved.
  14. 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).-
  15. In Program/Script path: the Path, type the name of the program/script to be executed by
    the task.- Arguments (optional): the
  16. In Arguments, type the arguments needed for the program/script to
    run, separated by spaces; optional.- Environment variables (optional):
  17. In Environment Variables, type the environment variables needed for
    the program/script to run; optional.- Output target file (optional):
  18. 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
  19. 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
  20. To automate task execution, open the Schedule tab, and configure the scheduler as described in Scheduling a Task.
  21. Click Save.
    The SSH Execution task is saved.