Community discussions

MikroTik App

Search found 9 matches

by qinyurong
Tue Jan 28, 2014 8:43 am
Forum: Scripting
Topic: problem with JAVA API----cannot set ipaddress
Replies: 2
Views: 809

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

I upgrade to V6.7, it worked.
by qinyurong
Mon Jan 27, 2014 4:56 am
Forum: Scripting
Topic: problem with JAVA API----cannot set ipaddress
Replies: 2
Views: 809

problem with JAVA API----cannot set ipaddress

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 retur...
by qinyurong
Mon Jan 20, 2014 4:59 am
Forum: Scripting
Topic: how to find radio name, data rates and tx power?
Replies: 4
Views: 1706

Re: how to find radio name, data rates and tx power?

I got.

use this
aConn.sendCommand("/interface/wireless/print\n" + "=advanced=\n")

advanced is a parameter, not command.
by qinyurong
Fri Jan 17, 2014 10:11 am
Forum: Scripting
Topic: How to get radio name, data rates and Tx power?
Replies: 4
Views: 1381

Re: How to get radio name, data rates and Tx power?

Try also to add a "=details=" argument to your request.
Thank you!

Add "=detail=", I got the same output.
by qinyurong
Fri Jan 17, 2014 4:15 am
Forum: Scripting
Topic: How to get radio name, data rates and Tx power?
Replies: 4
Views: 1381

Re: How to get radio name, data rates and Tx power?

Try ask for them explicitly by using .proplist argument.
http://wiki.mikrotik.com/wiki/Manual:API#Query_word
see the OID section for .proplist example
thanks a lot!
by qinyurong
Fri Jan 17, 2014 4:03 am
Forum: Scripting
Topic: how to find radio name, data rates and tx power?
Replies: 4
Views: 1706

Re: how to find radio name, data rates and tx power?

Radio name: =.id=*10 =name=wlan1 =mtu=1500 TX POWER: interface wireless set wlan1 tx-power=something OTHER OPTIONS: interface wireless set wlan1 blablablablablablablablablabla adaptive-noise-immunity default-client-tx-limit ht-rxchains nv2-preshared-key supported-rates-a/g allow-sharedkey default-f...
by qinyurong
Thu Jan 16, 2014 10:50 am
Forum: Scripting
Topic: how to find radio name, data rates and tx power?
Replies: 4
Views: 1706

Re: how to find radio name, data rates and tx power?

Radio name: =.id=*10 =name=wlan1 =mtu=1500 TX POWER: interface wireless set wlan1 tx-power=something Thank you very much! I follow you advice,now I can set radio-name, tx-power. I program in JAVA. Command is aConn.sendCommand("/interface/wireless/set\n=.id=0" + "\n=radio-name=" + "ap1" + "\n=tx-pow...
by qinyurong
Tue Jan 14, 2014 9:31 am
Forum: Scripting
Topic: how to find radio name, data rates and tx power?
Replies: 4
Views: 1706

how to find radio name, data rates and tx power?

I run CLI /interface/wireless/print,but,where is the radio name of wlan1? And how to set data rates, Tx power? Thanks a lot for help run CLI /interface/wireless/print, the return is: !re =.id=*10 =name=wlan1 =mtu=1500 =l2mtu=2290 =mac-address=00:15:6D:74:05:74 =arp=enabled =interface-type=Atheros AR...
by qinyurong
Tue Jan 14, 2014 9:19 am
Forum: Scripting
Topic: How to get radio name, data rates and Tx power?
Replies: 4
Views: 1381

How to get radio name, data rates and Tx power?

Hello, I run CLI /interface/wireless/print,but,where is the radio name of wlan1? And how to set data rates, Tx power? Thanks a lot for help! run CLI /interface/wireless/print, the return is: !re =.id=*10 =name=wlan1 =mtu=1500 =l2mtu=2290 =mac-address=00:15:6D:74:05:74 =arp=enabled =interface-type=At...