/queue simple move [find name=cached] 0
I can manually move the rule to position "0" in winbox but the script can only move it as far as the dynamic rules. I am using ROS3.0RC5.
/queue simple move [find name=cached] 0
So he proposes a script! Which is where we started with this anyway.Hello Alex,
Yes, it is working as designed, HotSpot queues are placed to the of the list.
It is possible to use 'on-login' and 'on-logout' script for the HotSpot user profile, when script is executed when any user logged in.
Identification is required for the 'queue simple' entry, in order script may find static 'queue' and place to the top,
you may use this script, that check for the priority (any other option might be used),
:foreach n in=[/queue simple find priority=1] do={ /queue simple move $n [:pick [/queue simple find] 0] }
Regards,
Sergejs
You can't use this sintaxis on scripting, use dinamic to find the positionI use this code in a hotspot login scriptto move a particular rule to the topmost position. The script executes fine but rule does not get to position "0". The rule always end up below the dynamic rules.Code: Select all/queue simple move [find name=cached] 0
I can manually move the rule to position "0" in winbox but the script can only move it as far as the dynamic rules. I am using ROS3.0RC5.
I think Mikrotik have fixed this already in RC11, at least now it works in my case.ok what about Mikrotik support ? is there any way to solve this problem ? any script to solve it !!!!
This does not work with dynamic queues created by user-manager or hotspot. The script cannot move "queue1" above any dynamic queues created by hotspot or user-manager.Latest version (3.10) simple script:
/queue simple move [find name="queue1"] 0
Checked all possible ways to execute it ( from terminal, scheduler, netwatch etc.) It works!
Exactly.This does not work with dynamic queues created by user-manager or hotspot. The script cannot move "queue1" above any dynamic queues created by hotspot or user-manager.Latest version (3.10) simple script:
/queue simple move [find name="queue1"] 0
Checked all possible ways to execute it ( from terminal, scheduler, netwatch etc.) It works!
/queue simple move [find name="cached"] 0
This issue had been fixed in ROS 3.11. This scriptnow works as expected.Code: Select all/queue simple move [find name="cached"] 0
Many thanks to the Mikrotik team for this fix.
This is broken again in ver3.24!
/queue simple move [find name=Catchall] 160
/queue simple move [/queue simple find name=catchall] [:len [/simple queue find]]
/queue simple move [/queue simple find name=catchall] [:len [/queue simple find]]
/queue simple move [find name="ITEM-TO-BE-MOVED"] 0
/queue simple print
/queue simple move [find name="ITEM-TO-BE-MOVED"] 0
I managed to get the following to workby doing thisCode: Select all/queue simple move [find name="ITEM-TO-BE-MOVED"] 0
It now moves the simple queue to the top as it does in the terminal, I know print is not the best thing to use in scripts however it solved my problem.Code: Select all/queue simple print /queue simple move [find name="ITEM-TO-BE-MOVED"] 0