Community discussions

MikroTik App
 
User avatar
tplecko
Member Candidate
Member Candidate
Topic Author
Posts: 120
Joined: Mon Jun 11, 2007 12:18 pm
Location: Croatia
Contact:

Retrive and commit a script via API

Tue Jan 29, 2013 3:45 pm

Is it possible to retrive a complete script via api? And then to save the script into the router (when it's modifyed)


thanks
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2400
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: Retrive and commit a script via API

Tue Jan 29, 2013 6:40 pm

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".
 
User avatar
tplecko
Member Candidate
Member Candidate
Topic Author
Posts: 120
Joined: Mon Jun 11, 2007 12:18 pm
Location: Croatia
Contact:

Re: Retrive and commit a script via API

Tue Jan 29, 2013 7:11 pm

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.

Who is online

Users browsing this forum: No registered users and 7 guests