Line 1: |
Line 1: |
| + | <p style="color:red">The information on this page is updated in accordance with the [https://wiki.teltonika-networks.com/view/FW_%26_SDK_Downloads'''00.07.4'''] firmware version .</p> |
| + | |
| + | |
| '''Unified Configuration Interface''' ('''UCI''') is a small utility written in C (a shell script-wrapper is available as well) and is intended to centralize the whole configuration of a device running on OpenWrt. | | '''Unified Configuration Interface''' ('''UCI''') is a small utility written in C (a shell script-wrapper is available as well) and is intended to centralize the whole configuration of a device running on OpenWrt. |
| + | |
| __TOC__ | | __TOC__ |
| | | |
Line 521: |
Line 525: |
| | | |
| Enabling Mobile Data Limit and SMS Warning: | | Enabling Mobile Data Limit and SMS Warning: |
− | #uci set quota_limit.mob1s1a1=interface | + | # uci set quota_limit.mob1s1a1=interface |
− | #uci set quota_limit.mob1s1a1.enabled='1' | + | # uci set quota_limit.mob1s1a1.enabled='1' |
− | #uci set quota_limit.mob1s1a1.ifname='mob1s1a1' | + | # uci set quota_limit.mob1s1a1.ifname='mob1s1a1' |
− | #uci set quota_limit.mob1s1a1.reset_hour='10' | + | # uci set quota_limit.mob1s1a1.reset_hour='10' |
− | #uci set quota_limit.mob1s1a1.sim='1' | + | # uci set quota_limit.mob1s1a1.sim='1' |
− | #uci set quota_limit.mob1s1a1.data_limit='10000' | + | # uci set quota_limit.mob1s1a1.data_limit='10000' |
− | #uci set quota_limit.mob1s1a1.wrn_sent='0' | + | # uci set quota_limit.mob1s1a1.enable_warning='1' |
− | #uci set quota_limit.mob1s1a1.enable_warning='1' | + | # uci set quota_limit.mob1s1a1.period='1' |
− | #uci set quota_limit.mob1s1a1.period='1' | + | # uci set quota_limit.mob1s1a1.warning_limit='8000' |
− | #uci set quota_limit.mob1s1a1.warning_limit='8000' | + | # uci set quota_limit.mob1s1a1.warning_num='+37012345678' |
− | #uci set quota_limit.mob1s1a1.warning_num='+37012345678' | + | |
| + | Commit changes and restart the daemon |
| + | |
| + | # uci commit quota_limit |
| + | # /etc/init.d/quota_limit restart |
| + | |
| + | |
| + | '''Disabling / Deleting configuration''' |
| + | ----- |
| + | Let us take the above example and disable the data limit using '''uci'''. For this, we simply need to change the "enabled" value to '0': |
| + | # uci set quota_limit.mob1s1a1.enabled='0' |
| + | # uci commit quota_limit |
| + | # /etc/init.d/quota_limit restart |
| + | |
| + | If you wish to delete the whole configuration, '''uci delete''' can be used. Let us delete the entire block of configuration of mob1s1a1 interface: |
| + | # uci delete quota_limit.mob1s1a1 |
| + | # uci commit quota_limit |
| + | # /etc/init.d/quota_limit restart |
| | | |
| ==External links== | | ==External links== |
Line 537: |
Line 558: |
| * https://wiki.openwrt.org/doc/uci?do= - OpenWRT wiki page on the UCI system | | * https://wiki.openwrt.org/doc/uci?do= - OpenWRT wiki page on the UCI system |
| * https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html - PuTTY downloads page | | * https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html - PuTTY downloads page |
| + | |
| + | [[Category:Router control and monitoring]] |