Hello
can you make the oid for simple queues (generated by radius) for each PPPoE user so that it will not change when the user disconnect and reconnect with the same user id
also there should be some logic to guess the oid
now everyone will think why i am asking this because i want to generate MRTG graphs for data uses(speed graph) for each user
Come on mikrotik guys please reply if this is possible or not
/queue simple print oid where dynamic
please read question before answring
mmc
February 4, 2015, 11:29am
5
static oid with dynamic interfaces?
my old php based workaround with routeros api:
$API = new routeros_api();
$API->debug = false;
if ($API->connect($ip[$a], 'user', 'pass')) {
$API->write('/ppp/active/print',false);
$API->write('=.proplist=name,address,uptime,caller-id,service');
$READ = $API->read(false);
$data = $API->parse_response($READ);
$API->write('/interface/print',false);
$API->write('?dynamic=yes',false);
$API->write('=stats=',false);
$API->write('=.proplist=name,rx-byte,tx-byte,rx-packet,tx-packet');
$READ = $API->read(false);
$data2 = $API->parse_response($READ);
$API->disconnect();
}
for($b=0; $b<=count($data); $b++){
for($c=0; $c<=count($data2); $c++){
if(strpos($data2[$c]['name'], $data[$b]['name']) && $data[$b] != NULL && $data2[$c] != NULL){
print_r($data[$b]); print_r($data2[$c]);
echo "######################################## \n\n\n";
}
}
}
No solved till now
we are just using workarounds
I managed to make graphs using api