Skip to content
Nick Otter edited this page Jun 27, 2013 · 2 revisions

Origonally from: http://wiki.mikrotik.com/wiki/API_PHP_class#Example_4

Find registration-table id for specified MAC

<?php

require_once "vendor/autoload.php";

use \RouterOS;

$API = new RouterOS\Core();

$ARRAY = $API->comm("/interface/wireless/registration-table/print", array(
  ".proplist"=> ".id",
  "?mac-address" => "00:0E:BB:DD:FF:FF",
));

print_r($ARRAY);
Clone this wiki locally