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
2,454 views 2 comments
by anonymous

We are using hundreds of RUT 955 routers all over Europe with fix private IP address SIMs. So we have full ssh access to all routers to change the configuration in /etc/config via scripts remotely. After changing the configuration we use the script /sbin/reload_config on the router to apply changes. 

Is this enough or do we need to do anything else to apply changes to the configuration especially if we vary firewall rules and the modbus_tcp_master / mobus_data_sender setup?

1 Answer

0 votes
by anonymous

Hello,

I think you have to restart the service.

When you commit changes, they are loaded to /etc/config/files, but the service is still using the old configs until you restart it.

You can restart most services using /etc/init.d/ scripts. For example:

/etc/init.d/sim_switch restart
/etc/init.d/network restart
/etc/init.d/modem restart
/etc/init.d/ping_reboot restart

This link maybe can help you with that.

https://wiki.teltonika.lt/view/UCI_command_usage

Best answer
by anonymous
Thank you for the link. Quite helpfull.

Do I need to perfom /sbin/reload_config at all if I change the settings in the config files directly and not with the UCI commands?
by anonymous

Hi,

If you are setting up your config files, via vi editor, or UCI The system will be using the initial configuration until restart the service or restart the router at all.

You don`t have to restart all the services, you can use these commands to restart the specific service that you`re currently using.

/etc/init.d/sim_switch restart
/etc/init.d/network restart
/etc/init.d/modem restart
/etc/init.d/ping_reboot restart

By the way, if you want to restart all the services, according with this link, you have to use the luci_reload.

https://wiki.teltonika.lt/view/UCI_command_usage#UCI_set

I hope this can help you.