Hi, it is possible to make function /queue simple move in API?
Please give me syntax.
Thanx
Hi, it is possible to make function /queue simple move in API?
Please give me syntax.
Thanx
/queue/simple/move
=.id=queue1
But, I need two variables. Queue whitch I need to move and Queue where I want to move ahad.
in console is :
/queue/simple/move “queue to move” “destination queue”
Thanx
any positive result?
/queue/simple/move
=.id=*7E
=.id=*1
move queue with id=*7E before queue with id=*1
does not work, the queue is moved to the end
all queues before run php
*19 - queue1
*1A - queue2
*1B - queue3
*1C - queue4
*1D - queue5
*1E - queue6
*1F - queue7
*20 - queue8
run php:
after run php:
*19 - queue1
*1A - queue2
*1C - queue4
*1D - queue5
*1E - queue6
*1F - queue7
*20 - queue8
*1B - queue3
as you can see, the queue has been moved to the end .. any idea ???
ok, some clarification.
this will move queue with .id to last position
/queue/simple/move
=.id=<queue id>
this will move queue witdh ID before queue with ID2
/queue/simple/move
=numbers=<queue id>
=destination=<queue id2>
this will move queues with ID, ID2, ID1 to the end in same order as in command
/queue/simple/move
=.id=<queue id>,<queue id2>,<queue id3>
in console we see:
> queue simple move
Reorders source list of items so that first has destination number and the rest follows it in given order.
<numbers> -- List of item numbers
<destination> --
yes, yes, yes
thank you…
thank you very much
using this command for change target-address:
if($linha[‘ip’] != $ip && $ip != “”){
require(‘includes/api/classeAPI.php’);
$API = new routeros_api();
$API->debug = true;
if ($API->connect($ip_mk,$user_mk,$pass_mk)){
$API->write(‘/queue/simple/set’,false);
$API->write(‘=numbers=’.$login.‘’,false);
$API->write(‘=target-address=’.$ip.‘’);
$API->read();
$API->disconnect();
} else {
die("Nao foi possivel conectar: ".$ip_mk);
}
}
response on v3.30 (RB411AH):
Connection attempt #1 to 189.75.174.52:8728… <<< [6] /login >>> [5/5 bytes read. >>> [5, 39] !done >>> [37/37 bytes read. >>> [37, 1] =ret=040a6caaeaf0610984b8def5df3a6df2 <<< [6] /login <<< [11] =name=admin <<< [44] =response=00db3d00d37f7ccd5ace78168ebabf903c >>> [5/5 bytes read. >>> [5, 1] !done Connected… <<< [17] /queue/simple/set <<< [33] =numbers=Felipe Nazario Lima Chen <<< [35] =target-address=10.2.2.9,10.2.2.100 >>> [5/5 bytes read. >>> [5, 35] !trap >>> [26/26 bytes read. >>> [26, 8] =message=unknown parameter >>> [5/5 bytes read. >>> [5, 1] !done Disconnected…
response on v3.23 (PC x86):
Connection attempt #1 to 200.138.161.132:8728… <<< [6] /login >>> [5/5 bytes read. >>> [5, 39] !done >>> [37/37 bytes read. >>> [37, 1] =ret=c6ce2fc945a3cc973a201996300594c5 <<< [6] /login <<< [11] =name=admin <<< [44] =response=000030986a1214543ff4dd978fa08049fd >>> [5/5 bytes read. >>> [5, 1] !done Connected… <<< [17] /queue/simple/set <<< [22] =numbers=Paulo Martins <<< [29] =target-address=192.168.96.14 >>> [5/5 bytes read. >>> [5, 1] !done Disconnected…
whats a problem with v3.30 on target-address parameter ? help please…
howwwwwwwwwwwww howwwwwwwwww
in v3.30 parameter “target-address” is changed to “target-addresses”
thankssssss all
actually, v3.23 simply allowed shortened parameter names (you can use ‘target-a’ in v3.23). as far as I remember, it was me who advised to remove that feature from API ![]()