Changes

2,121 bytes added ,  13:31, 12 September 2022
m
no edit summary
Line 66: Line 66:  
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 ''''ADD NEW TASK GROUP'''' button inside Task Manager configuration window 2. Define Task group name, select Command as a task type on the first task and insert the following text into Command field
+
*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:
 
''uci set quota_limit.mob1s1a1.enabled='1'''
 
''uci set quota_limit.mob1s1a1.enabled='1'''
*Click ''''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/>'''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:
Line 80: Line 81:  
[[File:RMS manual Task manager configuration example data limit v1.png|border|523x523px]]
 
[[File:RMS manual Task manager configuration example data limit v1.png|border|523x523px]]
   −
===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.
 +
*Create a new task group by clicking '<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:
 +
''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:
 +
[[File:RMS manual Task manager configuration example package v1.png]]
 +
 +
*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''
 +
*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:
 +
[[File:RMS manual Task manager configuration example package task2 v1.png]]
 +
*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:
 +
''/tmp/opkglog.log''
 +
*Configuration of the third task should look like the following image:
 +
[[File:RMS manual Task manager configuration example package task3 v1.png]]
 +
 +
'''Note:''' Downloaded files can be found by navigating to '''''Management → Files'''''

Navigation menu