Standart terminal commands throw API

Hi guys, I need to send standart terminal commands over API [http://wiki.mikrotik.com/wiki/Manual:API#OID]

standart command: /ip address getall
API command: /ip/address/getall

Is there an easy way? Here are some my ideas:
option 1(best way): open terminal with API and send all commands unchanged (is it possible?)
option 2(worse way): edit standart commands to API commands in my program (lot of work for me)
option 3(worst way): user of program edited standart commands itself :laughing:

Thank you for any advice

It is not possible to send CLI commands with API.
API was not meant to import exported user configuration. For that you have to upload config file via FTP and then import it.

That’s too bad. If user needs in example change user password on hundred routers, he must: loged in, do command in terminal (or export/import) and exit on every router. It’s a lot of hard work

Not really. rsc file can be uploaded and automatically executed
http://wiki.mikrotik.com/wiki/Manual:Configuration_Management#Automatic_Import

Also check Flashfig for mass router configuration
http://wiki.mikrotik.com/wiki/Flashfig

Thank you for interesting posts, but I think it don’t resolved ISP’s problem to quickly change routers configuration in network. If I understand Flashfig and Configuration Management right, it is best for factory management, because reasons:

  1. Connect RouterBOARD and Flashfig computer to the same Local Area Network.
  2. Stay import/export solution

My vision was something like this:
Program where user stored IP adresses of devices
User select IP’s where command will be used
User wrote terminal CLI command(or export them from some router) and send it to devices throw API

In that case I don’t see any problem why you can’t write application that sends *.auto.rsc file to the routers via ftp.

Awesome! Thank you very very much :smiley: