Hi Sir
the command is not working because you need to get and specify the entries id to run the set ip command.
In the following example, we read the list of radius entries with the assumptions that we are interested to the only one row occurring, and thus we use the id we get in the read , to build the set command to change the ip
the key code line is
$API->write('=.id='.$ARRAY[0]['.id'],false);
This code is working 100% and you can easily adapt it to your needings .
Here you have the working example (please adapt the class name).
<?php
require('api_mkt.php');
$API = new routeros_api();
$API->debug = true;
if ($API->connect('10.20.30.40', 'greencomputinuser', 'greencomputinpwd')) {
$API->write('/radius/getall');
$READ = $API->read(false);
$ARRAY = $API->parse_response($READ);
print_r($ARRAY);
$API->write('/radius/set',false);
$API->write('=.id='.$ARRAY[0]['.id'],false);
$API->write('=address=10.11.12.13');
$READ = $API->read(false);
$ARRAY = $API->parse_response($READ);
print_r($ARRAY);
$API->disconnect();
}
?>
Hoping this will help solving completing your task.
Let me hear good news!