Community discussions

MikroTik App

Search found 6 matches

by kaplunalex
Wed May 14, 2014 6:22 pm
Forum: Scripting
Topic: API Java monitor-traffic
Replies: 26
Views: 7426

Re: API Java monitor-traffic

When you say "nothing happens", what do you mean? It doesn't compile, or it compiles, but it doesn't output anything?
nothing output
by kaplunalex
Wed May 14, 2014 6:03 pm
Forum: Scripting
Topic: API Java monitor-traffic
Replies: 26
Views: 7426

Re: API Java monitor-traffic

//Near the top import me.legrange.mikrotik; //Within a method in your class ApiConnection con = ApiConnection.connect("10.0.1.1"); // connect to router con.login("admin","password"); // log in to router String tag = con.execute("/interface/monitor-traffic numbers=ether3-master-local .proplist=tx-bi...
by kaplunalex
Wed May 14, 2014 5:35 pm
Forum: Scripting
Topic: API Java monitor-traffic
Replies: 26
Views: 7426

Re: API Java monitor-traffic

Each time a sample is gathered, it's given to the client as a reply in the form of !re =rx-bits-per-second=<some number> =tx-bits-per-second=<some number> <more attributes> How exactly do you extract the values you want depends on the client you're using. With this client for example, you can acces...
by kaplunalex
Tue May 13, 2014 3:53 pm
Forum: Scripting
Topic: API Java monitor-traffic
Replies: 26
Views: 7426

API Java monitor-traffic

Hi?

Could some one show how using

ros code

/interface/monitor-traffic
=interface=ether3-master-local
write out data, I'm looking in WiKi and don't understand it. I want to get rx-bits-per-second and tx-bits-per-second
by kaplunalex
Mon May 12, 2014 3:24 pm
Forum: Scripting
Topic: Java API need examples
Replies: 3
Views: 1770

Re: Java API need examples

there is another Java implementation available and listed on the wiki API page. Use that one instead. Inial was just a crude write-up.
Could you give me URL to new Java implementation, pls
by kaplunalex
Mon May 12, 2014 12:11 pm
Forum: Scripting
Topic: Java API need examples
Replies: 3
Views: 1770

Java API need examples

Hi,

I couldn't understand how working Java API for mikrotik. If some one could give me some working examples, I've been very grateful