Community discussions

MikroTik App
 
giulianoz
newbie
Topic Author
Posts: 27
Joined: Sat Apr 08, 2017 6:44 pm

Scripting and containers

Mon Aug 15, 2022 11:28 am

Hello,
I know this is a loooooong shot, but is it possible to use a command from a container in a script or run a script in a container and use the output to update the router configuration

I was thinking about using curl/Japan to connect to ZeroTier api and generate/execute the commands to update the static dns entries for all my ZeroTier members. Now I have to run this on a raspberry and execute the commands through ssh. It is not a big deal because I will add or remove members rarely, but it might be useful for more complex scripts.

I would imagine something like:
* define an alias for the container template (name, envs, type of output (commands, src file,..),…)
* use the alias in scripts

Who is online

Users browsing this forum: diamuxin, philipp84 and 22 guests