Task

The Task page allows you to run scripts on the managed servers and view the task status and records. Only one task can be run at a time, and only users belonging to the administrators group can view this page and run tasks on the managed servers. This article guides you through how to manage a task and script.

Note:

  • A custom script can only run on servers that are running on DSM 7.0 or versions above.
  • For security reasons, a custom script can only run on servers that are connected to the CMS Host via HTTPS.
  • If you wish to use the Wake on LAN (WOL) feature, make sure the client servers and the host server must be in the same local area network. Please refer to here and here for more information on WOL.

Task Management

To run a task:

  1. Click Run Task.
  2. Select a default action or imported script from the dropdown menu in the Action field, or import a new script by clicking the Import Script button. Enter the description and click Next.
    Note: After the script is imported, it will be listed in Script Management. Refer to the Script Management section for details.
  3. Select the targets for running the task and follow the wizard to finish.

To cancel a running task:

When a task is running, the Run Task button will change to Cancel Task. You can click the Cancel Task button to cancel a running task. However, if the task is already completed on certain servers, then the task cannot be canceled on those servers. Click the View Details button for more information.

To monitor a task:

The task information will be displayed once it has been created. The following explains the task status:

The task was successfully performed on all managed servers. Click the View Details button for more information.
The task completed but errors occurred during the process. This status is shown when a task fails to run on any of the managed servers. Click the View Details button to view which server failed to run the task.
The task was canceled. Click the View Details button for more information.
The task is processing on one or multiple managed servers. Click the View Details button for more information.

After clicking the View Details button, the task status and return code of each selected server will be listed. You can select a server and click Go To Server to directly go to the server.

Note:

  • The CMS Host can sign in to its managed servers via the Go To Server button only when the PC used for operating the CMS Host can connect to the managed server. You can refer to this article for troubleshooting if you cannot sign in to the managed servers from the CMS Host's Go To Server button.

To sort task records:

Click the upper-right dropdown menu to sort all the task records by task name, status, or create time.

To delete a task record:

  1. Select a task record that you want to delete and click .
  2. Confirm that you want to delete the record and click Delete.

Script Management

Script Management allows you to import a new script, and to view and manage all the imported scripts. After a script is imported, it will appear and become a task option in the dropdown menu of Run Task > Action when running a new task.

To import a script:

  1. Click the Script Management button.
  2. Click Import Script and enter the script information, select the script, and click Import.

To delete a script:

  1. Click the Script Management button.
  2. Select a script and click Delete.
  3. Confirm that you want to delete the script and click Delete.
Task Management
Script Management