RMS Task Manager: Difference between revisions
mNo edit summary |
|||
| (69 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
__TOC__ | __TOC__ | ||
==Summary== | ==Summary== | ||
The '''<span style="color:#0455a4"; font-size: 1.2em;>RMS Task Manager</span>''' is a remote scripting tool with a user friendly graphics interface integrated into RMS platform. It is located in the '''[[RMS Management|Management]]''' section. | |||
[[File:RMS manual | [[File:RMS manual Task manager configuration menu v2.png|border|class=tlt-border]] | ||
==Introduction== | |||
---- | ---- | ||
Using Task Manager allows users to create '''Task Groups''' which can be executed on demand and for as many devices simultaneously as required. Task groups allows us to automate the process of '''downloading/uploading/executing'''. Each task group can consist of a lot of smaller tasks with different types, timeout intervals and acceptable return code configurations. | Using Task Manager allows users to create '''Task Groups''' which can be executed on demand and for as many devices simultaneously as required. Task groups allows us to automate the process of '''downloading/uploading/executing'''. Each task group can consist of a lot of smaller tasks with different types, timeout intervals and acceptable return code configurations. | ||
| Line 11: | Line 12: | ||
This article will provide information on what is needed in order to start using '''RMS Task Manager''' as well as configuration examples with step-by-step instructions for different usage scenarios. | This article will provide information on what is needed in order to start using '''RMS Task Manager''' as well as configuration examples with step-by-step instructions for different usage scenarios. | ||
=== | ==Overview== | ||
[[File:RMS manual Task manager page.png|border]] | |||
In the main Task Manager page, you'll be able to: | |||
#Create a new task group or view files that have been created/imported during task execution. | |||
#Search through existing task groups. | |||
#Edit or remove task group | |||
#Change table settings or refresh data. | |||
==Creating a new Task Group== | ==Creating a new Task Group== | ||
A new task group can be created by selecting '''<span style="color:#0455a4"; font-size: 1.2em;>Actions</span>''' and then clicking on the '''<span style="color:#0455a4"; font-size: 1.2em;>+ Create task group</span>''' button inside Task Manager configuration menu, | |||
[[File:RMS manual Task manager create task group.png|border]] | |||
A '''<span style="color:#0455a4"; font-size: 1.2em;>New task group</span>''' window will open: | |||
[[File:RMS manual new task group v4.png|border]] | |||
On a new task group window, settings of this task group and its tasks can be edited: | On a new task group window, settings of this task group and its tasks can be edited: | ||
#'''Task group name''' - it is a name of your entire Task group | |||
#'''Assign tags when task group succeeds''' - enabling this allows the user to select tags that will be automatically applied if the task succeeds | |||
#'''Assign tags when task group fails''' - enabling this allows the user to select tags that will be automatically applied if the task fails | |||
***''' | <div style="float: right; margin-right: 0px;"> | ||
** | [[File:RMS manual Task manager create task group - task type menu.png|border]] | ||
</div> | |||
#<li value="4">'''Task name''' - this field names one of your tasks inside this specific task group | |||
#<li value="5">'''Task type''' - select one type from the drop down menu for this specific task: | |||
::*'''Upload file''' | |||
:::*'''File to upload''' - select file to be uploaded to the device | |||
:::*'''Target file path''' - location of where this file should be uploaded | |||
[[File:RMS manual Task manager create task group - Upload file menu.png|border]] | |||
::*'''Download file''' | |||
:::*'''File path in device''' - location of the file in the device to be downloaded | |||
[[File:RMS manual Task manager create task group - Download file menu.png]] | |||
<div style="float: right;"> | |||
[[File:RMS manual Task manager create task group - Command variables menu.png|300px]] | |||
</div> | |||
#<li value="6">'''Command variables''' - when set, value of the key can be changed during the execution of the task group. Press the '''<span style="color:#0455a4"; font-size: 1.2em;>+ Add variable</span>''' button to create a new variable | |||
<ol style="list-style-type: lower-alpha; margin-left: 60px; padding-left: 30px;"> | |||
= | <li>'''Key''' - variable key to be written into the command</li> | ||
<li>'''Value''' - default value of the key</li> | |||
<li>'''Description''' - this is an optional field, can be used to clarify the purpose of the variable</li> | |||
<li>'''Other selectable values'''</li> | |||
</ol> | |||
#<li value="7">'''Command''' - command that needs to be executed on the device | |||
#'''Timeout(seconds)''' - set a time limit of how long the task is allowed to take before timeout | |||
#'''Acceptable codes''' - add return codes that are accepted as 'non failure', which means the task will count as completed without fail | |||
#'''Stop task group on failure''' - if the box is unchecked, next task will be executed even if the current one fails | |||
<div style="float: right;"> | |||
[[File:RMS manual Task add new task button.png|border|170px]] | |||
</div> | |||
#<li value="11">'''<span style="color:#0455a4"; font-size: 1.2em;>[+] Add new task</span>''' - used to add another task to this specific task group | |||
#'''<span style="color:#0455a4"; font-size: 1.2em;>Save</span>''' button saves the task group changes | |||
#In this section all tasks in the task group will be displayed. | |||
==Executing Task Groups== | |||
Once task groups are created, you can execute them on selected devices. | |||
<table class="nd-othertables_2"> | |||
<tr> | |||
<th width="1500" style="border-bottom: 1px solid white;"> | |||
<!-- Left side for image --> | |||
<div style="float:left; margin-right: 10px;"> | |||
[[File:RMS manual task group list v2.png|border]] | |||
</div> | |||
</th> | |||
<th width="800" style="border-bottom: 1px solid white;" rowspan="2"> | |||
<!-- Right side for text --> | |||
<ol style="margin-left: 20px; padding-left: 0; color: black; font-weight: normal; text-transform: none; font-size: 14px;"> | |||
<li>Navigate to the '''<span style="color:#0455a4"; font-size: 1.2em;>Management → Devices</span>''' section</li> | |||
<li>Select one or more devices to execute the task on</li> | |||
<li>Click on the '''<span style="color:#0455a4"; font-size: 1.2em;>Actions</span>''' dropdown menu</li> | |||
<li>In the expanded menu, open the '''<span style="color:#0455a4"; font-size: 1.2em;>Actions</span>''' submenu</li> | |||
<li>Click '''<span style="color:#0455a4"; font-size: 1.2em;>Execute task</span>'''</li> | |||
</ol> | |||
<div> | |||
[[File:RMS manual task Actions menu.png]] | |||
</div> | |||
</th> | |||
</tr> | |||
</table> | |||
<table class="nd-othertables_2"> | |||
<tr> | |||
<th width="500style="border-bottom: 1px solid white;"> | |||
<p style="margin-left: 20px; padding-left: 0; color: black; font-weight: normal; text-transform: none; font-size: 14px;"> | |||
The '''<span style="color:#0455a4"; font-size: 1.2em;>Execute task</span>''' window will pop up: | |||
</p> | |||
<ol start="6" style="margin-left: 20px; padding-left: 0; color: black; font-weight: normal; text-transform: none; font-size: 14px;"> | |||
<li>Reconfirm the selection by checking the boxes for the devices where the task group should be executed</li> | |||
<li>Execute the task group</li> | |||
</ol> | |||
Once | <ol start="6" style="margin-left: 20px; padding-left: 0; color: black; font-weight: normal; text-transform: none; font-size: 14px;"> | ||
Once the task is finished, the Action status menu will display whether the task group tasks were successful or not: | |||
</ol> | |||
<div> | |||
[[File:RMS manual task action status.png]] | |||
</div> | |||
</th> | |||
<th width="700style="border-bottom: 1px solid white;" rowspan="2"> | |||
<!-- Right side for text --> | |||
<div> | |||
[[File:RMS manual executing task group v2.png|600px]] | |||
</div> | |||
</th> | |||
</tr> | |||
</table> | |||
==Editing Task Groups== | |||
Task groups can be edited by clicking '''<span style="color:#0455a4"; font-size: 1.2em;>Edit group tasks</span>''' button, which is located in the Task manager's main page: | |||
[[File:RMS manual Task manager editing task group v2.png|border]] | |||
==Deleting Task Groups== | |||
Task groups can be deleted by clicking '''<span style="color:#0455a4"; font-size: 1.2em;>Remove group</span>''' button, which is located in the Task manager's main page: | |||
[[File:RMS manual Task manager removing tasks v3.png|border]] | |||
==Configuration Examples== | ==Configuration Examples== | ||
In this section, several configuration examples will be demonstrated to illustrate different setups and use cases. | |||
===Setting Mobile Data Limit=== | ===Setting Mobile Data Limit=== | ||
---- | ---- | ||
In this example, we will set mobile data limit on SIM1 interface. We will achieve this by creating new Task group in RMS Task Manager and using Command as a task type. | In this example, we will set mobile data limit on SIM1 interface. We will achieve this by creating new Task group in RMS Task Manager and using Command as a task type. | ||
*Create a new task group by clicking '''' | *Create a new task group by clicking the '''<span style="color:#0455a4"; font-size: 1.2em;>+ Create task group</span>''' button as described in the '''[[#Creating a new Task Group|Creating a new Task Group]]''' section of this page. | ||
* Define Task group name, select Command as a task type on the first task and insert the following text into Command field: | *Define Task group name, select Command as a task type on the first task and insert the following text into Command field: | ||
''uci set quota_limit.mob1s1a1.enabled='1''' | ''uci set quota_limit.mob1s1a1.enabled='1''' | ||
*Click '< | <div style="float: right;"> | ||
''uci set quota_limit.mob1s1a1.data_limit='2048''' | [[File:RMS manual Task add new task button.png|border|170px]] | ||
</div> | |||
*Click on the '''<span style="color:#0455a4"; font-size: 1.2em;>[+] (Add new task)</span>''' button to add a second task, make settings identical to the first task and insert the following command into the Command field (this will set the mobile limit to 2GB or 2048MB): | |||
''uci set quota_limit.mob1s1a1.data_limit='2048''' | |||
*Add another task with identical setti<nowiki/>ngs and insert the following text into the Command field (this will set the period of the data limit to 1 day: | *Add another task with identical setti<nowiki/>ngs and insert the following text into the Command field (this will set the period of the data limit to 1 day: | ||
''uci set quota_limit.mob1s1a1.period='1''' | ''uci set quota_limit.mob1s1a1.period='1''' | ||
*Add another task with identical setti<nowiki/>ngs and insert the following text into the Command field (this will commit the changes and restart the mobile interface): | *Add another task with identical setti<nowiki/>ngs and insert the following text into the Command field (this will commit the changes and restart the mobile interface): | ||
''uci commit && ifdown mob1s1a1 && ifup mob1s1a1'' | ''uci commit && ifdown mob1s1a1 && ifup mob1s1a1'' | ||
Here is a review of all 4 tasks in this task group: | Here is a review of all 4 tasks in this task group: | ||
[[File:RMS manual Task manager configuration example data limit | [[File:RMS manual Task manager configuration example data limit v3.png|border]] | ||
=== Installing Additional Packages=== | ===Installing Additional Packages=== | ||
---- | ---- | ||
In this example, we will install an additional package to the device using opkg commands as well as generate and download a log file to see if package was installed successfully. For this example, we will install DNP3 package. | In this example, we will install an additional package to the device using opkg commands as well as generate and download a log file to see if package was installed successfully. For this example, we will install DNP3 package. | ||
*Create a new task group by clicking '< | *Create a new task group by clicking the '''<span style="color:#0455a4"; font-size: 1.2em;>+ Create task group</span>''' button as described in the '''[[#Creating a new Task Group|Creating a new Task Group]]''' section of this page. | ||
*Define Task group name, select Command as a task type on the first task and insert the following text into Command field: | * Define Task group name, select Command as a task type on the first task and insert the following text into Command field: | ||
''opkg update'' | ''opkg update'' | ||
*Set Timeout to 30 seconds, since updating package repository might take longer than the default 10 seconds. | *Set Timeout to 30 seconds, since updating package repository might take longer than the default 10 seconds. | ||
*Add "1" to acceptable codes, since while updating repositories, some links might be unavailable, this is done to avoid getting an error message while executing a task. Alternatively, you can uncheck "Stop task group on failure" box to achieve the same result. | * Add "1" to acceptable codes, since while updating repositories, some links might be unavailable, this is done to avoid getting an error message while executing a task. Alternatively, you can uncheck "Stop task group on failure" box to achieve the same result. | ||
*Configuration of the first task should look like the following image: | *Configuration of the first task should look like the following image: | ||
[[File:RMS manual Task manager configuration example package | [[File:RMS manual Task manager configuration example package v2.png|border]] | ||
*Click ''' | <div style="float: right;"> | ||
''opkg install dnp3 >> /tmp/opkglog.log'' | [[File:RMS manual Task add new task button.png|border|170px]] | ||
</div> | |||
*Click on the '''<span style="color:#0455a4"; font-size: 1.2em;>[+] (Add new task)</span>''' button to add a second task, once again select Command as a task type and insert the following text into command field: | |||
''opkg install dnp3 >> /tmp/opkglog.log'' | |||
*This will install the package as well as save the installation logs to the defined log file. | *This will install the package as well as save the installation logs to the defined log file. | ||
*Set the timeout to 30 seconds, since the installation process can take longer than the default 10 seconds. | *Set the timeout to 30 seconds, since the installation process can take longer than the default 10 seconds. | ||
*Second task configuration should look like the following image: | *Second task configuration should look like the following image: | ||
[[File:RMS manual Task manager configuration example package task2 | [[File:RMS manual Task manager configuration example package task2 v2.png|border]] | ||
*Now we will download the generated log file to read the logs of installation. | *Now we will download the generated log file to read the logs of installation. | ||
*Click ''' | <div style="float: right;"> | ||
''/tmp/opkglog.log'' | [[File:RMS manual Task add new task button.png|border|170px]] | ||
</div> | |||
*Click on the '''<span style="color:#0455a4"; font-size: 1.2em;>[+] (Add new task)</span>''' button to add a third task, this time, select Download file as a task type and insert the following path to the '''<span style="color:#0455a4"; font-size: 1.2em;>File path in device</span>''' field: | |||
''/tmp/opkglog.log'' | |||
*Configuration of the third task should look like the following image: | *Configuration of the third task should look like the following image: | ||
[[File:RMS manual Task manager configuration example package task3 | [[File:RMS manual Task manager configuration example package task3 v2.png|border]] | ||
'''Note:''' Downloaded files can be found by navigating to ''' | '''Note:''' Downloaded files can be found by navigating to '''<span style="color:#0455a4"; font-size: 1.2em;>Management → Files</span>''' | ||
[[Category:RMS_Management]] | |||
Latest revision as of 11:34, 28 February 2025
Main Page > IoT Platforms > RMS > RMS Manual > RMS Management > RMS Task ManagerSummary
The RMS Task Manager is a remote scripting tool with a user friendly graphics interface integrated into RMS platform. It is located in the Management section.
Introduction
Using Task Manager allows users to create Task Groups which can be executed on demand and for as many devices simultaneously as required. Task groups allows us to automate the process of downloading/uploading/executing. Each task group can consist of a lot of smaller tasks with different types, timeout intervals and acceptable return code configurations.
This article will provide information on what is needed in order to start using RMS Task Manager as well as configuration examples with step-by-step instructions for different usage scenarios.
Overview
In the main Task Manager page, you'll be able to:
- Create a new task group or view files that have been created/imported during task execution.
- Search through existing task groups.
- Edit or remove task group
- Change table settings or refresh data.
Creating a new Task Group
A new task group can be created by selecting Actions and then clicking on the + Create task group button inside Task Manager configuration menu,
A New task group window will open:
On a new task group window, settings of this task group and its tasks can be edited:
- Task group name - it is a name of your entire Task group
- Assign tags when task group succeeds - enabling this allows the user to select tags that will be automatically applied if the task succeeds
- Assign tags when task group fails - enabling this allows the user to select tags that will be automatically applied if the task fails
- Task name - this field names one of your tasks inside this specific task group
- Task type - select one type from the drop down menu for this specific task:
- Upload file
- File to upload - select file to be uploaded to the device
- Target file path - location of where this file should be uploaded
- Download file
- File path in device - location of the file in the device to be downloaded
- Command variables - when set, value of the key can be changed during the execution of the task group. Press the + Add variable button to create a new variable
- Key - variable key to be written into the command
- Value - default value of the key
- Description - this is an optional field, can be used to clarify the purpose of the variable
- Other selectable values
- Command - command that needs to be executed on the device
- Timeout(seconds) - set a time limit of how long the task is allowed to take before timeout
- Acceptable codes - add return codes that are accepted as 'non failure', which means the task will count as completed without fail
- Stop task group on failure - if the box is unchecked, next task will be executed even if the current one fails
- [+] Add new task - used to add another task to this specific task group
- Save button saves the task group changes
- In this section all tasks in the task group will be displayed.
Executing Task Groups
Once task groups are created, you can execute them on selected devices.
|
|---|
|
The Execute task window will pop up:
|
|---|
Editing Task Groups
Task groups can be edited by clicking Edit group tasks button, which is located in the Task manager's main page:
Deleting Task Groups
Task groups can be deleted by clicking Remove group button, which is located in the Task manager's main page:
Configuration Examples
In this section, several configuration examples will be demonstrated to illustrate different setups and use cases.
Setting Mobile Data Limit
In this example, we will set mobile data limit on SIM1 interface. We will achieve this by creating new Task group in RMS Task Manager and using Command as a task type.
- Create a new task group by clicking the + Create task group button as described in the Creating a new Task Group section of this page.
- Define Task group name, select Command as a task type on the first task and insert the following text into Command field:
uci set quota_limit.mob1s1a1.enabled='1'
- Click on the [+] (Add new task) button to add a second task, make settings identical to the first task and insert the following command into the Command field (this will set the mobile limit to 2GB or 2048MB):
uci set quota_limit.mob1s1a1.data_limit='2048'
- Add another task with identical settings and insert the following text into the Command field (this will set the period of the data limit to 1 day:
uci set quota_limit.mob1s1a1.period='1'
- Add another task with identical settings and insert the following text into the Command field (this will commit the changes and restart the mobile interface):
uci commit && ifdown mob1s1a1 && ifup mob1s1a1
Here is a review of all 4 tasks in this task group:
Installing Additional Packages
In this example, we will install an additional package to the device using opkg commands as well as generate and download a log file to see if package was installed successfully. For this example, we will install DNP3 package.
- Create a new task group by clicking the + Create task group button as described in the Creating a new Task Group section of this page.
- Define Task group name, select Command as a task type on the first task and insert the following text into Command field:
opkg update
- Set Timeout to 30 seconds, since updating package repository might take longer than the default 10 seconds.
- Add "1" to acceptable codes, since while updating repositories, some links might be unavailable, this is done to avoid getting an error message while executing a task. Alternatively, you can uncheck "Stop task group on failure" box to achieve the same result.
- Configuration of the first task should look like the following image:
- Click on the [+] (Add new task) button to add a second task, once again select Command as a task type and insert the following text into command field:
opkg install dnp3 >> /tmp/opkglog.log
- This will install the package as well as save the installation logs to the defined log file.
- Set the timeout to 30 seconds, since the installation process can take longer than the default 10 seconds.
- Second task configuration should look like the following image:
- Now we will download the generated log file to read the logs of installation.
- Click on the [+] (Add new task) button to add a third task, this time, select Download file as a task type and insert the following path to the File path in device field:
/tmp/opkglog.log
- Configuration of the third task should look like the following image:
Note: Downloaded files can be found by navigating to Management → Files















