Community discussions

MikroTik App
 
qinyurong
just joined
Topic Author
Posts: 9
Joined: Wed Jan 08, 2014 10:42 am

problem with JAVA API----cannot set ipaddress

Mon Jan 27, 2014 4:56 am

I successed with Routeros version 6.4 api command is
/ip/address/set
=.id=0
=address=192.168.1.1/24
tag

but with routeros version 5.25 , I failed.
Routeros return the wrong msg ------ =message=no such item;

I use api command
/ip/address/set
=interface=mesh1
=address=192.168.1.1/24
tag
Routeros return no wrong message, but ipaddress unchanged.

I use api command
/ip/address/set
=interface=mesh1
=address=192.168.1.1/24
tag
Routeros return no wrong message, but ipaddress unchanged.



I use api command
/ip/address/set
=numbers=0
=address=192.168.1.1/24
tag
Routeros return wrong message-----=message=unknown parameter



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

Re: problem with JAVA API----cannot set ipaddress

Mon Jan 27, 2014 4:50 pm

I'm surprised you even managed to successfully do the first example. The API protocol does not support numbers - you need to supply IDs instead, which you can get with a "print" command.
 
qinyurong
just joined
Topic Author
Posts: 9
Joined: Wed Jan 08, 2014 10:42 am

Re: problem with JAVA API----cannot set ipaddress

Tue Jan 28, 2014 8:43 am

I upgrade to V6.7, it worked.

Who is online

Users browsing this forum: GoogleOther [Bot] and 14 guests