Community discussions

MikroTik App

Search found 2 matches

by dieler
Tue Oct 16, 2018 5:24 am
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 Try this.. this works for me package examples; import java.util.Map; import me.legrange.mikrotik.MikrotikApiException; import me.legrange.mikrotik.ResultListener; /**...
by dieler
Tue Oct 16, 2018 4:59 am
Forum: Scripting
Topic: API Java monitor-traffic
Replies: 26
Views: 7426

Re: API Java monitor-traffic

im new in java and i have the same issue public void Monitors() throws Exception { ApiConnection con = ApiConnection.connect(DatosRouter.ip); try { con.login(DatosRouter.user, DatosRouter.password); String id = con.execute("/interface/monitor-traffic interface=ether1 return tx-bits-per-second,rx-bit...