Page 1 of 1
Retrive and commit a script via API
Posted: Tue Jan 29, 2013 3:45 pm
by tplecko
Is it possible to retrive a complete script via api? And then to save the script into the router (when it's modifyed)
thanks
Re: Retrive and commit a script via API
Posted: Tue Jan 29, 2013 6:40 pm
by boen_robot
If we're talking about a script at "/system script", yes, and doing so is as trivial as getting/setting anything else.
If we're talking about a script file (at "/files").... err... not quite... it's a long story... let's just say "no".
Re: Retrive and commit a script via API
Posted: Tue Jan 29, 2013 7:11 pm
by tplecko
I asked before i teted because i know that there were some limitations before.
I Have made a windows service that at midnight, every day connects to Mikrotik routers (specifyed in a XML file) and creates a backup of the configuration and then downloads that configuration.
Now what i want to do is an utility that will connect to a router and upload all neccecery scripts, some defaults into firewall and so on. The utility would allso have a script editor with syntax coloring (mayor plus would be the ability to push that script to a router)
Anyway, thanks.