Thank you very much. This is working good.Code:Select all:local rt [/ip/route get [find where gateway=11.22.33.44 and routing-table!=main] routing-table]
I forgot to say: I want to find out the the name of the routing-table over the route list. The only information i have is the gateway and it can not be the main-routing table.Your syntax is wrong, try:
:local a [/ip/route/get [find where gateway=x.x.x.x and routing-table=yyyy];
Exactly what I needed. Thank you very muchSomething like that?
BR.Code:Select all{ :local ipAdd 192.168.1.100/24 :set ipAdd [:toip [:pick $ipAdd 0 [:find $ipAdd "/"]]] :put $ipAdd } Output ==> 192.168.1.100
I am sorry. There was a mistake in the script. The problem was that there were no syntax-mistakes. I just made a logical mistake in a line. Thats why the whole script just did not work out.now that you've talked about it in vain, let us see it
I will ask any time needed. Thank youNo need to apologize, and feel free to ask for help if required.You are right. I am sorry for the confusion.
I tried it many times with different networks. Does not work too.I already explained the necessary steps in post #4 above. If the solution from post #2 is really not available (I don't have hAP ax2 to check myself).
I m sorry. I didnt want to appear like i m rude.This is a rude answer, if you were that good you didn't ask for help.My Code is already working the way it should work.