Community discussions

MikroTik App
 
steger
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 79
Joined: Sat Jul 29, 2006 9:17 am

tracking route script question

Sat May 26, 2018 12:22 pm

hello there,

my healthcheck for the primary line is rip routingbased.
that means i receive a route (tracking route) if this route is present "primary is up"
if the route is not there the primary is failed.

i tried to do some scripting. (i am not a good scripter i guess)

may someone can helping me here?:

:local ripv2track [/ip route get [/ip route find rip] value-name=dst-address ];
:if ($ripv2track="empty") do={something} etc
how can i compare variables which are empty ? means nothing set? because route is not there?

or maybe someone from you do have already something like this in place and may can share me his script?

thank you!

christian

Who is online

Users browsing this forum: GoogleOther [Bot] and 69 guests