RMS Task Manager: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
RMS '''Task Manager''' is a remote scripting tool with a user friendly graphics interface integrated into RMS platform. It is located in the '''[[RMS Management|Management]]''' section. | RMS '''Task Manager''' 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 task manager location v1.png]] | [[File:RMS manual task manager location v1.png|border|class=tlt-border]] | ||
Line 13: | Line 13: | ||
==Overview== | ==Overview== | ||
[[File:RMS manual Task manager configuration menu v1.png]] | [[File:RMS manual Task manager configuration menu v1.png|border|class=tlt-border|1100px]] | ||
In the main Task Manager page, you'll be able to: | 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. | #Create a new task group or view files that have been created/imported during task execution. | ||
Line 50: | Line 50: | ||
After selecting them, in the top menu, under '''Management''', click on '''Execute task'''. | After selecting them, in the top menu, under '''Management''', click on '''Execute task'''. | ||
[[File:RMS manual task group list v1.png|border]] | [[File:RMS manual task group list v1.png|border|class=tlt-border]] | ||
'''Note:''' Only devices that are online at the moment can be selected. | '''Note:''' Only devices that are online at the moment can be selected. | ||
Line 60: | Line 60: | ||
# Confirm, that you want to execute this task group. | # Confirm, that you want to execute this task group. | ||
[[File:RMS manual executing task group v1.png]] | [[File:RMS manual executing task group v1.png|border|class=tlt-border|1100px]] | ||
Once the task group finishes executing tasks, a status message will be shown whether the task group finished with all tasks completed: | Once the task group finishes executing tasks, a status message will be shown whether the task group finished with all tasks completed: | ||
[[File:Rmstaskmanager1.png|border]] | [[File:Rmstaskmanager1.png|border|class=tlt-border|300px]] | ||
Line 71: | Line 71: | ||
Task groups can be edited by clicking '''"Edit group tasks"''' button, which is located in the Task manager's main page: | Task groups can be edited by clicking '''"Edit group tasks"''' button, which is located in the Task manager's main page: | ||
[[File:RMS manual Task manager deleting tasks v1.png]] | [[File:RMS manual Task manager deleting tasks v1.png|border|class=tlt-border|300px]] | ||
Line 78: | Line 78: | ||
[[File:RMS manual Task manager removing tasks v1.png]] | [[File:RMS manual Task manager removing tasks v1.png|border|class=tlt-border|300px]] | ||
Line 89: | Line 89: | ||
*Create a new task group by clicking ''''ADD NEW TASK GROUP'''' button inside Task Manager configuration window. | *Create a new task group by clicking ''''ADD NEW TASK GROUP'''' button inside Task Manager configuration window. | ||
*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 '''<nowiki/>''''<nowiki/>'''ADD ADDITIONAL TASK'''' button at<nowiki/> the bottom of the window 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): | *Click '''<nowiki/>''''<nowiki/>'''ADD ADDITIONAL TASK'''' button at<nowiki/> the bottom of the window 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''' | ''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 v1.png|border| | [[File:RMS manual Task manager configuration example data limit v1.png|border|1100px]] | ||
Line 108: | Line 108: | ||
*Create a new task group by clicking '''<nowiki/>''''<nowiki/>'''ADD NEW TASK GROUP'''' button inside Task Manager configuration window. | *Create a new task group by clicking '''<nowiki/>''''<nowiki/>'''ADD NEW TASK GROUP'''' button inside Task Manager configuration window. | ||
* 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 v1.png]] | [[File:RMS manual Task manager configuration example package v1.png|border|class=tlt-border]] | ||
*Click '''ADD ADDITIONAL TASK''' button at the bottom of the window to add a second task, once again select Command as a task type and insert the following text into command field: | *Click '''ADD ADDITIONAL TASK''' button at the bottom of the window 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'' | ''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 v1.png]] | [[File:RMS manual Task manager configuration example package task2 v1.png|border|class=tlt-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 '''ADD ADDITIONAL TASK''' button at the bottom of the window to add a second task, this time, select Download file as a task type and inser the following path to the '''File path in device''' field: | *Click '''ADD ADDITIONAL TASK''' button at the bottom of the window to add a second task, this time, select Download file as a task type and inser the following path to the '''File path in device''' field: | ||
''/tmp/opkglog.log'' | ''/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 v1.png]] | [[File:RMS manual Task manager configuration example package task3 v1.png|border|class=tlt-border]] | ||
'''Note:''' Downloaded files can be found by navigating to '''''Management → Files''''' | '''Note:''' Downloaded files can be found by navigating to '''''Management → Files''''' | ||
[[Category:RMS_Management]] | [[Category:RMS_Management]] |