FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
277 views 0 comments
by anonymous
Hi,

I need to enter a list of about 400 whitelisted operators in several RUT09 routers.
Also the list needs to be updated occasionally.

Is there a way to import or enter them through CLI?

When I need to do this through the GUI it will cost several days.

Kind Regards,
Richard

1 Answer

0 votes
by anonymous

Hi,

First of all, please update the firmware to the latest version.

Second, you can use uci commands to import dozens of configurations to your system at once.

If you create a dummy operator listing in the WebUI and then type uci show | grep operctl

You will see something like this:



operctl.@operlist[0]=operlist
operctl.@operlist[0].name='asd'
operctl.@operlist[0].mcc_mnc='98745'
Now you can use the same syntax to either add more listings, or you can add more codes to the same listing like this:
operctl.@operlist[0].mcc_mnc='98745' '11111'
Just use uci add, uci set, uci show commands to import, edit or show the configurations of all sorts and you should be able to do everything quicker.
Here's a little OpenWRT wiki to understand UCI better: https://openwrt.org/docs/guide-user/base-system/uci#command-line_utility
EB.