The following example shows how to us a DRM Automation to upload a python script to a DAL router and set it to automatically run.
Login to your DRM account, go to the Automations Tab and click on “Create”:
![](/getattachment/Support/knowledge-base/how-to-create-a-device-cloud-task/DRM_Automation_1.png?lang=en-US)
Set a name for the Automation, in this example other settings are left as default. Click on “Save and continue”:
![](/getattachment/Support/knowledge-base/how-to-create-a-device-cloud-task/DRM_Automation_2.png?lang=en-US)
In the Steps tab, click on the + to select the first step. A list of steps is shown as below, select the “Upload files”
![](/getattachment/Support/knowledge-base/how-to-create-a-device-cloud-task/DRM_Automation_3.png?lang=en-US)
Click on browse and chose the file you want to upload:
![](/getattachment/Support/knowledge-base/how-to-create-a-device-cloud-task/DRM_Automation_4.png?lang=en-US)
Then put the Destination File Path:
![](/getattachment/Support/knowledge-base/how-to-create-a-device-cloud-task/DRM_Automation_6_bis.png?lang=en-US)
Please note that the Python File should be uploaded into the etc/config/scripts folder. In order to do that, on the DRM Automations, the folder /Applications/ need to be chosen. This will be mapped in the etc/config/scripts folder.
Then, add another step of the type “Command Line Interface” and put the CLI commands to have the Python File running at boot:
![](/getattachment/Support/knowledge-base/how-to-create-a-device-cloud-task/DRM_Automation_5_bis-(1).png?lang=en-US)
Select a target device or group (this will be used if the automation will run automatically):
![](/getattachment/Support/knowledge-base/how-to-create-a-device-cloud-task/DRM_Automation_6.png?lang=en-US)
Chose if the automation will be run automatically, in this example we will leave triggers as disabled and the automation will be manually started:
![](/getattachment/Support/knowledge-base/how-to-create-a-device-cloud-task/DRM_Automation_7-(1).png?lang=en-US)
To manually run the automation, select the automation from the Automations list and select “Run Automation” from the Actions list:
![](/getattachment/Support/knowledge-base/how-to-create-a-device-cloud-task/DRM_Automation_8.png?lang=en-US)
Then, select the device on which the Automation will be currently run and click on “Confirm”
![](/getattachment/Support/knowledge-base/how-to-create-a-device-cloud-task/DRM_Automation_9.png?lang=en-US)
![](/getattachment/Support/knowledge-base/how-to-create-a-device-cloud-task/DRM_Automation_10.png?lang=en-US)
To see the result of the run, enter into the Automation:
![](/getattachment/Support/knowledge-base/how-to-create-a-device-cloud-task/DRM_Automation_11.png?lang=en-US)
And click on the specific run to see details:
![](/getattachment/Support/knowledge-base/how-to-create-a-device-cloud-task/DRM_Automation_12.png?lang=en-US)
If you click on the Summary name, you will see the details about each step:
![](/getattachment/Support/knowledge-base/how-to-create-a-device-cloud-task/DRM_Automation_13.png?lang=en-US)
For more details about DRM Automations see here:
Digi Remote Manager User Guide - Automations
Last updated:
Mar 25, 2019