Complete DELPHI API client: update 4

please post here any news about unset =)

Hello,
how to send this comando to router using api “/interface wireless access-list add mac-address=00:11:22:33:44:55 interface=AP-1 authentication=yes forwarding=no comment= TESTE”

hm…

/interface/wireless/access-list/add
mac-address=00:11:22:33:44:55
interface=AP-1
authentication=yes
forwarding=no
comment= TESTE

should work

It works, you have to specify value-name
for example
/ip/route/unset
=.id=*1
=value-name=routing-mark

Hi Rodolfo,

I’ve download your last version of API and try to work it out on Delphi 2009. It just don’t work at all. MD5 library has been changed some how https://forums.codegear.com/thread.jspa?messageID=114098. Synapse library has also throwing some problems when i try to use.

As you can understand i’m not a Delphi fun but i need to work with your library. It will be much better if you can update your downloadable file with the proper .pas files.

Thanks for your work already.

Gokalp

I would also love to use it, but can’t even compile in D2009.
Are you still updating these units from time to time or plan to update to D2009?

thanks

Ekkas

I will try at the beginning of next week.

Thanks a lot. We’ll all appreiate it.

Well, is there any way to get ping response delay in ms? Is there an extra parameter to “/ping” to fetch full information?

Is there an way to set environment variables via API?

Why when I run scripts via API /system/script/run the environment variables remain unchangend?


Regards, Andrei.

Hello,

I am also very interested in full ping information from API.
Is there any way to fetch full information or is it possible to add in future versions?

Greetings
Manuel Ritter

lets wait for 5.0beta3 public release

in wiki you already can see new output format

http://wiki.mikrotik.com/wiki/API_command_notes#Ping_v5.x_and_newer

edit: it will not change for v4 thought.

I wonder if there is to build this api delphi XE2, I’m doing some tests and conseigo run this application in delphi 7 but not in XE2 realized … update the MD5 and sokets, according to the ICS v7. but the application returns me this message …

01/09/2012 11:56:58 - info 103 - connecting to 192.168.2.100
09.01.2012 11:56:58 - DEBUG 11001 - 192.168.2.100 tr_mkrouter.msend / login
09.01.2012 11:56:58 - DEBUG 11001 - 192.168.2.100 tr_mkrouter.msend / login
09.01.2012 11:56:58 - DEBUG 11001 - tr_mkrouter.msend = 192.168.2.100 name = admin
09.01.2012 11:56:58 - DEBUG 11001 - = 192.168.2.100 tr_mkrouter.msend response = 0072305e1275f4e0584561fb682e455939
01/09/2012 11:56:58 - # ERROR # 10008 - 192.168.2.100 tr_mkrouter.open opening router error =! Trap = message = can not log in

even with a valid password, the logs are OK RB disendo that there was a connection attempt api but login error!

Hello! I just downloaded the API for Delphi. I tested many commands with the example app but /system/reboot doesn’t work.

Any clue?

Thanks in advance!

/system/reboot works fine for me. at least on 6.0rc3 =)

/system reboot in 5.21 requires interactive confirmation as does /system upgrade

/system auto-upgrade requires interactive password

Using ROS scripting you cannot respond to these requests, rendering all scripts that use these commands useless. The right way to fix the problem is eliminate the interactive confirmation, or bypass it when called from a script rather than the console. This would take work by MT.

Alternatively, could someone write a binary that can run on a router that can deal with this? I am not a coder so don’t know what is involved.

/system reboot works fine for me in a script on a 5.21 x86 box

On mipsbe 411GL and 433 we get a prompt for Are you sure?

Scripts fail every time on this. Cannot put in a Y response.

I can try on a 751G tomorrow.

Sent from my Nexus 7 using Tapatalk 2

“/system reboot” in Terminal always required confirmation, and at least since long time ago it’s not requiring it in scripts. check that your script has necessary permissions

Works as expected on a 751G - I would have to agree with Chupaka and make sure the permissions are correct.

If you are using an API to send these commands, they are probably being interpreted as being interactive. I would try to send the commands via the script interface. This could be done via a rsc file or just run the /system script command to create the scripts to be run and either execute the script via /system script run or add a scheduler entry.