Community discussions

MikroTik App

Search found 5 matches

by Vehuel
Tue Jul 06, 2010 1:26 am
Forum: Scripting
Topic: "cannot get challenge"
Replies: 20
Views: 6506

Re: "cannot get challenge"

This is my supout.rif file from RouterOS 3.30. This routerboard sometimes show get challenge message or show message below Connection attempt #1 to 192.168.5.5:8728... <<< [6] /login >>> [5/5 bytes read. >>> [5, 0] !done Connection attempt #2 to 192.168.5.5:8728... <<< [6] /login >>> [5/5 bytes read...
by Vehuel
Thu Jun 24, 2010 12:32 am
Forum: Scripting
Topic: PHP API and /interface/monitor-traffic
Replies: 5
Views: 14043

Re: PHP API and /interface/monitor-traffic

Thank you.

How can I send "once"?
$API->write('/interface/monitor-traffic',false);
$API->write('=interface=wlan1',false);
$API->write('=once');
$ARRAY = $API->read();
by Vehuel
Wed Jun 23, 2010 10:13 pm
Forum: Scripting
Topic: PHP API and /interface/monitor-traffic
Replies: 5
Views: 14043

PHP API and /interface/monitor-traffic

Hi. I'm using code below to monitor traffic. BUT it show same information for all interfaces even if only one interface has clients. require('mikrotik.php'); $API = new routeros_api(); $API->debug = false; if ($API->connect('192.168.5.6', 'user', 'pass')) { //$API->write('/interface/wireless/registr...
by Vehuel
Fri Jun 18, 2010 4:26 pm
Forum: Scripting
Topic: How can I write script output to a file
Replies: 5
Views: 7019

Re: How can I write script output to a file

But can I append to a file?

I'll take a look at API.

Thank you.
by Vehuel
Thu Jun 17, 2010 11:58 pm
Forum: Scripting
Topic: How can I write script output to a file
Replies: 5
Views: 7019

How can I write script output to a file

I'm running Mikrotik 3.25 and have this script bellow. :local x 0 :foreach i in=[/interface wireless registration-table find] do { :put ($x . " :: " . [/interface wireless registration-table get $i interface] . " :: " . [/interface wireless registration-table get $i mac-address] ...